Back to index

indicator-session  12.10.0
session-dbus.h
Go to the documentation of this file.
00001 /*
00002 The Dbus object on the bus for the indicator.
00003 
00004 Copyright 2010 Canonical Ltd.
00005 
00006 Authors:
00007     Ted Gould <ted@canonical.com>
00008 
00009 This program is free software: you can redistribute it and/or modify it 
00010 under the terms of the GNU General Public License version 3, as published 
00011 by the Free Software Foundation.
00012 
00013 This program is distributed in the hope that it will be useful, but 
00014 WITHOUT ANY WARRANTY; without even the implied warranties of 
00015 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00016 PURPOSE.  See the GNU General Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License along 
00019 with this program.  If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 
00022 #ifndef __SESSION_DBUS_H__
00023 #define __SESSION_DBUS_H__
00024 
00025 #include <glib.h>
00026 #include <glib-object.h>
00027 
00028 G_BEGIN_DECLS
00029 
00030 #define SESSION_DBUS_TYPE            (session_dbus_get_type ())
00031 #define SESSION_DBUS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_DBUS_TYPE, SessionDbus))
00032 #define SESSION_DBUS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_DBUS_TYPE, SessionDbusClass))
00033 #define IS_SESSION_DBUS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SESSION_DBUS_TYPE))
00034 #define IS_SESSION_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SESSION_DBUS_TYPE))
00035 #define SESSION_DBUS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_DBUS_TYPE, SessionDbusClass))
00036 
00037 typedef struct _SessionDbus      SessionDbus;
00038 typedef struct _SessionDbusClass SessionDbusClass;
00039 
00040 struct _SessionDbusClass {
00041        GObjectClass parent_class;
00042        void (*icon_updated) (SessionDbus * session, gchar * icon, gpointer user_data);
00043 };
00044 
00045 struct _SessionDbus {
00046        GObject parent;
00047 };
00048 
00049 GType session_dbus_get_type (void);
00050 SessionDbus * session_dbus_new (void);
00051 void session_dbus_set_name (SessionDbus * session, const gchar * name);
00052 void session_dbus_set_users_real_name (SessionDbus * session, const gchar * name);
00053 void session_dbus_restart_required (SessionDbus* session);
00054 G_END_DECLS
00055 
00056 #endif