~mefrio-g/+junk/indicator-session-pantheon-shutdown

« back to all changes in this revision

Viewing changes to src/device-menu-mgr.h

  • Committer: cody at elementaryos
  • Date: 2012-12-10 00:13:38 UTC
  • Revision ID: cody@elementaryos.org-20121210001338-379sxx4jo6r003d6
Initial import, version 0.3.96-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2011 Canonical Ltd.
 
3
 
 
4
Authors:
 
5
    Conor Curran <conor.curran@canonical.com>
 
6
 
 
7
This program is free software: you can redistribute it and/or modify it 
 
8
under the terms of the GNU General Public License version 3, as published 
 
9
by the Free Software Foundation.
 
10
 
 
11
This program is distributed in the hope that it will be useful, but 
 
12
WITHOUT ANY WARRANTY; without even the implied warranties of 
 
13
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
14
PURPOSE.  See the GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License along 
 
17
with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
 
 
21
#ifndef _DEVICE_MENU_MGR_H_
 
22
#define _DEVICE_MENU_MGR_H_
 
23
 
 
24
#include <glib-object.h>
 
25
 
 
26
#include "session-dbus.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define DEVICE_TYPE_MENU_MGR             (device_menu_mgr_get_type ())
 
31
#define DEVICE_MENU_MGR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEVICE_TYPE_MENU_MGR, DeviceMenuMgr))
 
32
#define DEVICE_MENU_MGR_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), DEVICE_TYPE_MENU_MGR, DeviceMenuMgrClass))
 
33
#define DEVICE_IS_MENU_MGR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEVICE_TYPE_MENU_MGR))
 
34
#define DEVICE_IS_MENU_MGR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), DEVICE_TYPE_MENU_MGR))
 
35
#define DEVICE_MENU_MGR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), DEVICE_TYPE_MENU_MGR, DeviceMenuMgrClass))
 
36
 
 
37
typedef struct _DeviceMenuMgrClass DeviceMenuMgrClass;
 
38
typedef struct _DeviceMenuMgr DeviceMenuMgr;
 
39
 
 
40
struct _DeviceMenuMgrClass
 
41
{
 
42
        GObjectClass parent_class;
 
43
};
 
44
 
 
45
GType device_menu_mgr_get_type (void) G_GNUC_CONST;
 
46
 
 
47
DeviceMenuMgr* device_menu_mgr_new (SessionDbus* session_dbus, gboolean greeter_mode);
 
48
 
 
49
DbusmenuMenuitem* device_mgr_get_root_item (DeviceMenuMgr* self);
 
50
 
 
51
G_END_DECLS
 
52
 
 
53
#endif /* _DEVICE_MENU_MGR_H_ */