~charlesk/indicator-session/dont-use-deprecated-actiongroup-apis

« back to all changes in this revision

Viewing changes to src/backend-dbus/actions.h

  • Committer: Tarmac
  • Author(s): Charles Kerr, Lars Uebernickel
  • Date: 2013-07-12 14:58:31 UTC
  • mfrom: (384.2.112 ng-login1)
  • Revision ID: tarmac-20130712145831-n2bqrachsd9qa90n
This is the GMenu, login1 version of indicator-session.

This resubmission removes the prerequisite branch because the entire diff is contained in this ng-login1 branch.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * Authors:
 
5
 *   Charles Kerr <charles.kerr@canonical.com>
 
6
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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/>.
 
18
 */
 
19
 
 
20
#ifndef __INDICATOR_SESSION_ACTIONS_DBUS_H__
 
21
#define __INDICATOR_SESSION_ACTIONS_DBUS_H__
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
 
 
26
#include "../actions.h" /* parent class */
 
27
#include "dbus-login1-manager.h"
 
28
#include "dbus-login1-seat.h"
 
29
#include "dbus-display-manager.h"
 
30
 
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
#define INDICATOR_TYPE_SESSION_ACTIONS_DBUS          (indicator_session_actions_dbus_get_type())
 
35
#define INDICATOR_SESSION_ACTIONS_DBUS(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), INDICATOR_TYPE_SESSION_ACTIONS_DBUS, IndicatorSessionActionsDbus))
 
36
#define INDICATOR_SESSION_ACTIONS_DBUS_GET_CLASS(o)  (G_TYPE_INSTANCE_GET_CLASS ((o), INDICATOR_TYPE_SESSION_ACTIONS_DBUS, IndicatorSessionActionsDbusClass))
 
37
#define INDICATOR_IS_SESSION_ACTIONS_DBUS(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), INDICATOR_TYPE_SESSION_ACTIONS_DBUS))
 
38
 
 
39
typedef struct _IndicatorSessionActionsDbus        IndicatorSessionActionsDbus;
 
40
typedef struct _IndicatorSessionActionsDbusPriv    IndicatorSessionActionsDbusPriv;
 
41
typedef struct _IndicatorSessionActionsDbusClass   IndicatorSessionActionsDbusClass;
 
42
 
 
43
/**
 
44
 * An implementation of IndicatorSessionActions that gets its user information
 
45
 * from org.freedesktop.login1 org.freedesktop.DisplayManager over DBus.
 
46
 */
 
47
struct _IndicatorSessionActionsDbus
 
48
{
 
49
  /*< private >*/
 
50
  IndicatorSessionActions parent;
 
51
  IndicatorSessionActionsDbusPriv * priv;
 
52
};
 
53
 
 
54
struct _IndicatorSessionActionsDbusClass
 
55
{
 
56
  IndicatorSessionActionsClass parent_class;
 
57
};
 
58
 
 
59
GType indicator_session_actions_dbus_get_type (void);
 
60
 
 
61
IndicatorSessionActions * indicator_session_actions_dbus_new (void);
 
62
 
 
63
void indicator_session_actions_dbus_set_proxies (IndicatorSessionActionsDbus * self,
 
64
                                                 Login1Manager               * login1_manager,
 
65
                                                 Login1Seat                  * login1_seat,
 
66
                                                 DisplayManagerSeat          * dm_seat);
 
67
                                                 
 
68
 
 
69
G_END_DECLS
 
70
 
 
71
#endif /* __INDICATOR_SESSION_ACTIONS_DBUS_H__ */