~ci-train-bot/indicator-session/indicator-session-ubuntu-zesty-2188

« back to all changes in this revision

Viewing changes to src/session-dbus.h

  • Committer: Charles Kerr
  • Date: 2013-03-22 21:34:34 UTC
  • mto: (384.2.29 ng)
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130322213434-a85qbob8bi4fvfx2
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
The Dbus object on the bus for the indicator.
3
 
 
4
 
Copyright 2010 Canonical Ltd.
5
 
 
6
 
Authors:
7
 
    Ted Gould <ted@canonical.com>
8
 
 
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.
12
 
 
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.
17
 
 
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/>.
20
 
*/
21
 
 
22
 
#ifndef __SESSION_DBUS_H__
23
 
#define __SESSION_DBUS_H__
24
 
 
25
 
#include <glib.h>
26
 
#include <glib-object.h>
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
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))
36
 
 
37
 
typedef struct _SessionDbus      SessionDbus;
38
 
typedef struct _SessionDbusClass SessionDbusClass;
39
 
 
40
 
struct _SessionDbusClass {
41
 
        GObjectClass parent_class;
42
 
        void (*icon_updated) (SessionDbus * session, gchar * icon, gpointer user_data);
43
 
};
44
 
 
45
 
struct _SessionDbus {
46
 
        GObject parent;
47
 
};
48
 
 
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);
54
 
G_END_DECLS
55
 
 
56
 
#endif