Back to index

indicator-session  12.10.0
session-menu-mgr.h
Go to the documentation of this file.
00001 /*
00002 Copyright 2011 Canonical Ltd.
00003 
00004 Authors:
00005     Conor Curran <conor.curran@canonical.com>
00006 
00007 This program is free software: you can redistribute it and/or modify it 
00008 under the terms of the GNU General Public License version 3, as published 
00009 by the Free Software Foundation.
00010 
00011 This program is distributed in the hope that it will be useful, but 
00012 WITHOUT ANY WARRANTY; without even the implied warranties of 
00013 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00014 PURPOSE.  See the GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License along 
00017 with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 
00021 #ifndef _SESSION_MENU_MGR_H_
00022 #define _SESSION_MENU_MGR_H_
00023 
00024 #include <glib-object.h>
00025 
00026 #include "session-dbus.h"
00027 
00028 G_BEGIN_DECLS
00029 
00030 #define SESSION_TYPE_MENU_MGR             (session_menu_mgr_get_type ())
00031 #define SESSION_MENU_MGR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE_MENU_MGR, SessionMenuMgr))
00032 #define SESSION_MENU_MGR_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_TYPE_MENU_MGR, SessionMenuMgrClass))
00033 #define IS_SESSION_MENU_MGR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SESSION_TYPE_MENU_MGR))
00034 #define IS_SESSION_MENU_MGR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), SESSION_TYPE_MENU_MGR))
00035 #define SESSION_MENU_MGR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_TYPE_MENU_MGR, SessionMenuMgrClass))
00036 
00037 typedef struct _SessionMenuMgrClass SessionMenuMgrClass;
00038 typedef struct _SessionMenuMgr SessionMenuMgr;
00039 
00040 struct _SessionMenuMgrClass
00041 {
00042   GObjectClass parent_class;
00043 };
00044 
00045 GType session_menu_mgr_get_type (void) G_GNUC_CONST;
00046 
00047 SessionMenuMgr* session_menu_mgr_new (SessionDbus       * session_dbus,
00048                                       gboolean            greeter_mode);
00049 
00050 DbusmenuMenuitem* session_menu_mgr_get_menu (SessionMenuMgr * mgr);
00051 
00052 
00053 G_END_DECLS
00054 
00055 #endif /* _SESSION_MENU_MGR_H_ */