2
* Copyright 2013 Canonical Ltd.
5
* Charles Kerr <charles.kerr@canonical.com>
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.
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.
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/>.
20
#ifndef __INDICATOR_SESSION_ACTIONS_DBUS_H__
21
#define __INDICATOR_SESSION_ACTIONS_DBUS_H__
24
#include <glib-object.h>
26
#include "../actions.h" /* parent class */
27
#include "dbus-login1-manager.h"
28
#include "dbus-login1-seat.h"
29
#include "dbus-display-manager.h"
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))
39
typedef struct _IndicatorSessionActionsDbus IndicatorSessionActionsDbus;
40
typedef struct _IndicatorSessionActionsDbusPriv IndicatorSessionActionsDbusPriv;
41
typedef struct _IndicatorSessionActionsDbusClass IndicatorSessionActionsDbusClass;
44
* An implementation of IndicatorSessionActions that gets its user information
45
* from org.freedesktop.login1 org.freedesktop.DisplayManager over DBus.
47
struct _IndicatorSessionActionsDbus
50
IndicatorSessionActions parent;
51
IndicatorSessionActionsDbusPriv * priv;
54
struct _IndicatorSessionActionsDbusClass
56
IndicatorSessionActionsClass parent_class;
59
GType indicator_session_actions_dbus_get_type (void);
61
IndicatorSessionActions * indicator_session_actions_dbus_new (void);
63
void indicator_session_actions_dbus_set_proxies (IndicatorSessionActionsDbus * self,
64
Login1Manager * login1_manager,
65
Login1Seat * login1_seat,
66
DisplayManagerSeat * dm_seat);
71
#endif /* __INDICATOR_SESSION_ACTIONS_DBUS_H__ */