2
The Dbus object on the bus for the indicator.
4
Copyright 2010 Canonical Ltd.
7
Ted Gould <ted@canonical.com>
9
This program is free software: you can redistribute it and/or modify it
10
under the terms of the GNU General Public License version 3, as published
11
by the Free Software Foundation.
13
This program is distributed in the hope that it will be useful, but
14
WITHOUT ANY WARRANTY; without even the implied warranties of
15
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
16
PURPOSE. See the GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License along
19
with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __SESSION_DBUS_H__
23
#define __SESSION_DBUS_H__
26
#include <glib-object.h>
30
#define SESSION_DBUS_TYPE (session_dbus_get_type ())
31
#define SESSION_DBUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_DBUS_TYPE, SessionDbus))
32
#define SESSION_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_DBUS_TYPE, SessionDbusClass))
33
#define IS_SESSION_DBUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SESSION_DBUS_TYPE))
34
#define IS_SESSION_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SESSION_DBUS_TYPE))
35
#define SESSION_DBUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_DBUS_TYPE, SessionDbusClass))
37
typedef struct _SessionDbus SessionDbus;
38
typedef struct _SessionDbusClass SessionDbusClass;
40
struct _SessionDbusClass {
41
GObjectClass parent_class;
42
void (*icon_updated) (SessionDbus * session, gchar * icon, gpointer user_data);
49
GType session_dbus_get_type (void);
50
SessionDbus * session_dbus_new (void);
51
void session_dbus_set_name (SessionDbus * session, const gchar * name);
52
void session_dbus_set_users_real_name (SessionDbus * session, const gchar * name);
53
void session_dbus_restart_required (SessionDbus* session);