~ubuntu-branches/ubuntu/vivid/gnome-flashback/vivid

« back to all changes in this revision

Viewing changes to gnome-flashback/libend-session-dialog/dbus-end-session-dialog.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Shachnev
  • Date: 2014-09-19 17:09:43 UTC
  • Revision ID: package-import@ubuntu.com-20140919170943-oboafsedi6z69951
Tags: upstream-3.10.0
ImportĀ upstreamĀ versionĀ 3.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Generated by gdbus-codegen 2.41.4. DO NOT EDIT.
 
3
 *
 
4
 * The license of this code is the same as for the source it was derived from.
 
5
 */
 
6
 
 
7
#ifndef __DBUS_END_SESSION_DIALOG_H__
 
8
#define __DBUS_END_SESSION_DIALOG_H__
 
9
 
 
10
#include <gio/gio.h>
 
11
 
 
12
G_BEGIN_DECLS
 
13
 
 
14
 
 
15
/* ------------------------------------------------------------------------ */
 
16
/* Declarations for org.gnome.SessionManager.EndSessionDialog */
 
17
 
 
18
#define DBUS_TYPE_END_SESSION_DIALOG (dbus_end_session_dialog_get_type ())
 
19
#define DBUS_END_SESSION_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_END_SESSION_DIALOG, DBusEndSessionDialog))
 
20
#define DBUS_IS_END_SESSION_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_END_SESSION_DIALOG))
 
21
#define DBUS_END_SESSION_DIALOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), DBUS_TYPE_END_SESSION_DIALOG, DBusEndSessionDialogIface))
 
22
 
 
23
struct _DBusEndSessionDialog;
 
24
typedef struct _DBusEndSessionDialog DBusEndSessionDialog;
 
25
typedef struct _DBusEndSessionDialogIface DBusEndSessionDialogIface;
 
26
 
 
27
struct _DBusEndSessionDialogIface
 
28
{
 
29
  GTypeInterface parent_iface;
 
30
 
 
31
 
 
32
  gboolean (*handle_open) (
 
33
    DBusEndSessionDialog *object,
 
34
    GDBusMethodInvocation *invocation,
 
35
    guint arg_type,
 
36
    guint arg_timestamp,
 
37
    guint arg_seconds_to_stay_open,
 
38
    const gchar *const *arg_inhibitor_object_paths);
 
39
 
 
40
  void (*canceled) (
 
41
    DBusEndSessionDialog *object);
 
42
 
 
43
  void (*closed) (
 
44
    DBusEndSessionDialog *object);
 
45
 
 
46
  void (*confirmed_logout) (
 
47
    DBusEndSessionDialog *object);
 
48
 
 
49
  void (*confirmed_reboot) (
 
50
    DBusEndSessionDialog *object);
 
51
 
 
52
  void (*confirmed_shutdown) (
 
53
    DBusEndSessionDialog *object);
 
54
 
 
55
};
 
56
 
 
57
GType dbus_end_session_dialog_get_type (void) G_GNUC_CONST;
 
58
 
 
59
GDBusInterfaceInfo *dbus_end_session_dialog_interface_info (void);
 
60
guint dbus_end_session_dialog_override_properties (GObjectClass *klass, guint property_id_begin);
 
61
 
 
62
 
 
63
/* D-Bus method call completion functions: */
 
64
void dbus_end_session_dialog_complete_open (
 
65
    DBusEndSessionDialog *object,
 
66
    GDBusMethodInvocation *invocation);
 
67
 
 
68
 
 
69
 
 
70
/* D-Bus signal emissions functions: */
 
71
void dbus_end_session_dialog_emit_confirmed_logout (
 
72
    DBusEndSessionDialog *object);
 
73
 
 
74
void dbus_end_session_dialog_emit_confirmed_reboot (
 
75
    DBusEndSessionDialog *object);
 
76
 
 
77
void dbus_end_session_dialog_emit_confirmed_shutdown (
 
78
    DBusEndSessionDialog *object);
 
79
 
 
80
void dbus_end_session_dialog_emit_canceled (
 
81
    DBusEndSessionDialog *object);
 
82
 
 
83
void dbus_end_session_dialog_emit_closed (
 
84
    DBusEndSessionDialog *object);
 
85
 
 
86
 
 
87
 
 
88
/* D-Bus method calls: */
 
89
void dbus_end_session_dialog_call_open (
 
90
    DBusEndSessionDialog *proxy,
 
91
    guint arg_type,
 
92
    guint arg_timestamp,
 
93
    guint arg_seconds_to_stay_open,
 
94
    const gchar *const *arg_inhibitor_object_paths,
 
95
    GCancellable *cancellable,
 
96
    GAsyncReadyCallback callback,
 
97
    gpointer user_data);
 
98
 
 
99
gboolean dbus_end_session_dialog_call_open_finish (
 
100
    DBusEndSessionDialog *proxy,
 
101
    GAsyncResult *res,
 
102
    GError **error);
 
103
 
 
104
gboolean dbus_end_session_dialog_call_open_sync (
 
105
    DBusEndSessionDialog *proxy,
 
106
    guint arg_type,
 
107
    guint arg_timestamp,
 
108
    guint arg_seconds_to_stay_open,
 
109
    const gchar *const *arg_inhibitor_object_paths,
 
110
    GCancellable *cancellable,
 
111
    GError **error);
 
112
 
 
113
 
 
114
 
 
115
/* ---- */
 
116
 
 
117
#define DBUS_TYPE_END_SESSION_DIALOG_PROXY (dbus_end_session_dialog_proxy_get_type ())
 
118
#define DBUS_END_SESSION_DIALOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_END_SESSION_DIALOG_PROXY, DBusEndSessionDialogProxy))
 
119
#define DBUS_END_SESSION_DIALOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DBUS_TYPE_END_SESSION_DIALOG_PROXY, DBusEndSessionDialogProxyClass))
 
120
#define DBUS_END_SESSION_DIALOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DBUS_TYPE_END_SESSION_DIALOG_PROXY, DBusEndSessionDialogProxyClass))
 
121
#define DBUS_IS_END_SESSION_DIALOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_END_SESSION_DIALOG_PROXY))
 
122
#define DBUS_IS_END_SESSION_DIALOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DBUS_TYPE_END_SESSION_DIALOG_PROXY))
 
123
 
 
124
typedef struct _DBusEndSessionDialogProxy DBusEndSessionDialogProxy;
 
125
typedef struct _DBusEndSessionDialogProxyClass DBusEndSessionDialogProxyClass;
 
126
typedef struct _DBusEndSessionDialogProxyPrivate DBusEndSessionDialogProxyPrivate;
 
127
 
 
128
struct _DBusEndSessionDialogProxy
 
129
{
 
130
  /*< private >*/
 
131
  GDBusProxy parent_instance;
 
132
  DBusEndSessionDialogProxyPrivate *priv;
 
133
};
 
134
 
 
135
struct _DBusEndSessionDialogProxyClass
 
136
{
 
137
  GDBusProxyClass parent_class;
 
138
};
 
139
 
 
140
GType dbus_end_session_dialog_proxy_get_type (void) G_GNUC_CONST;
 
141
 
 
142
void dbus_end_session_dialog_proxy_new (
 
143
    GDBusConnection     *connection,
 
144
    GDBusProxyFlags      flags,
 
145
    const gchar         *name,
 
146
    const gchar         *object_path,
 
147
    GCancellable        *cancellable,
 
148
    GAsyncReadyCallback  callback,
 
149
    gpointer             user_data);
 
150
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_finish (
 
151
    GAsyncResult        *res,
 
152
    GError             **error);
 
153
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_sync (
 
154
    GDBusConnection     *connection,
 
155
    GDBusProxyFlags      flags,
 
156
    const gchar         *name,
 
157
    const gchar         *object_path,
 
158
    GCancellable        *cancellable,
 
159
    GError             **error);
 
160
 
 
161
void dbus_end_session_dialog_proxy_new_for_bus (
 
162
    GBusType             bus_type,
 
163
    GDBusProxyFlags      flags,
 
164
    const gchar         *name,
 
165
    const gchar         *object_path,
 
166
    GCancellable        *cancellable,
 
167
    GAsyncReadyCallback  callback,
 
168
    gpointer             user_data);
 
169
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_for_bus_finish (
 
170
    GAsyncResult        *res,
 
171
    GError             **error);
 
172
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_for_bus_sync (
 
173
    GBusType             bus_type,
 
174
    GDBusProxyFlags      flags,
 
175
    const gchar         *name,
 
176
    const gchar         *object_path,
 
177
    GCancellable        *cancellable,
 
178
    GError             **error);
 
179
 
 
180
 
 
181
/* ---- */
 
182
 
 
183
#define DBUS_TYPE_END_SESSION_DIALOG_SKELETON (dbus_end_session_dialog_skeleton_get_type ())
 
184
#define DBUS_END_SESSION_DIALOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_END_SESSION_DIALOG_SKELETON, DBusEndSessionDialogSkeleton))
 
185
#define DBUS_END_SESSION_DIALOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DBUS_TYPE_END_SESSION_DIALOG_SKELETON, DBusEndSessionDialogSkeletonClass))
 
186
#define DBUS_END_SESSION_DIALOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DBUS_TYPE_END_SESSION_DIALOG_SKELETON, DBusEndSessionDialogSkeletonClass))
 
187
#define DBUS_IS_END_SESSION_DIALOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_END_SESSION_DIALOG_SKELETON))
 
188
#define DBUS_IS_END_SESSION_DIALOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DBUS_TYPE_END_SESSION_DIALOG_SKELETON))
 
189
 
 
190
typedef struct _DBusEndSessionDialogSkeleton DBusEndSessionDialogSkeleton;
 
191
typedef struct _DBusEndSessionDialogSkeletonClass DBusEndSessionDialogSkeletonClass;
 
192
typedef struct _DBusEndSessionDialogSkeletonPrivate DBusEndSessionDialogSkeletonPrivate;
 
193
 
 
194
struct _DBusEndSessionDialogSkeleton
 
195
{
 
196
  /*< private >*/
 
197
  GDBusInterfaceSkeleton parent_instance;
 
198
  DBusEndSessionDialogSkeletonPrivate *priv;
 
199
};
 
200
 
 
201
struct _DBusEndSessionDialogSkeletonClass
 
202
{
 
203
  GDBusInterfaceSkeletonClass parent_class;
 
204
};
 
205
 
 
206
GType dbus_end_session_dialog_skeleton_get_type (void) G_GNUC_CONST;
 
207
 
 
208
DBusEndSessionDialog *dbus_end_session_dialog_skeleton_new (void);
 
209
 
 
210
 
 
211
G_END_DECLS
 
212
 
 
213
#endif /* __DBUS_END_SESSION_DIALOG_H__ */