~ctf/unity-settings-daemon/bug1389099_mic_volume_icons

« back to all changes in this revision

Viewing changes to plugins/orientation/gsd-orientation-manager.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-02-07 11:44:36 UTC
  • Revision ID: package-import@ubuntu.com-20140207114436-7t5u3yvwc4ul7w3e
Tags: upstream-14.04.0
ImportĀ upstreamĀ versionĀ 14.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
 
4
 * Copyright (C) 2010 Red Hat, Inc.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __GSD_ORIENTATION_MANAGER_H
 
23
#define __GSD_ORIENTATION_MANAGER_H
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define GSD_TYPE_ORIENTATION_MANAGER         (gsd_orientation_manager_get_type ())
 
30
#define GSD_ORIENTATION_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GSD_TYPE_ORIENTATION_MANAGER, GsdOrientationManager))
 
31
#define GSD_ORIENTATION_MANAGER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GSD_TYPE_ORIENTATION_MANAGER, GsdOrientationManagerClass))
 
32
#define GSD_IS_ORIENTATION_MANAGER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSD_TYPE_ORIENTATION_MANAGER))
 
33
#define GSD_IS_ORIENTATION_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GSD_TYPE_ORIENTATION_MANAGER))
 
34
#define GSD_ORIENTATION_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSD_TYPE_ORIENTATION_MANAGER, GsdOrientationManagerClass))
 
35
 
 
36
typedef struct GsdOrientationManagerPrivate GsdOrientationManagerPrivate;
 
37
 
 
38
typedef struct
 
39
{
 
40
        GObject                     parent;
 
41
        GsdOrientationManagerPrivate *priv;
 
42
} GsdOrientationManager;
 
43
 
 
44
typedef struct
 
45
{
 
46
        GObjectClass   parent_class;
 
47
} GsdOrientationManagerClass;
 
48
 
 
49
GType                   gsd_orientation_manager_get_type            (void);
 
50
 
 
51
GsdOrientationManager *       gsd_orientation_manager_new                 (void);
 
52
gboolean                gsd_orientation_manager_start               (GsdOrientationManager *manager,
 
53
                                                               GError         **error);
 
54
void                    gsd_orientation_manager_stop                (GsdOrientationManager *manager);
 
55
 
 
56
G_END_DECLS
 
57
 
 
58
#endif /* __GSD_ORIENTATION_MANAGER_H */