2
Copyright 2011 Canonical Ltd.
5
Conor Curran <conor.curran@canonical.com>
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.
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.
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/>.
21
#ifndef _DEVICE_MENU_MGR_H_
22
#define _DEVICE_MENU_MGR_H_
24
#include <glib-object.h>
26
#include "session-dbus.h"
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))
37
typedef struct _DeviceMenuMgrClass DeviceMenuMgrClass;
38
typedef struct _DeviceMenuMgr DeviceMenuMgr;
40
struct _DeviceMenuMgrClass
42
GObjectClass parent_class;
45
GType device_menu_mgr_get_type (void) G_GNUC_CONST;
47
DeviceMenuMgr* device_menu_mgr_new (SessionDbus* session_dbus, gboolean greeter_mode);
49
DbusmenuMenuitem* device_mgr_get_root_item (DeviceMenuMgr* self);
53
#endif /* _DEVICE_MENU_MGR_H_ */