2
* Generated by gdbus-codegen 2.41.4. DO NOT EDIT.
4
* The license of this code is the same as for the source it was derived from.
7
#ifndef __DBUS_END_SESSION_DIALOG_H__
8
#define __DBUS_END_SESSION_DIALOG_H__
15
/* ------------------------------------------------------------------------ */
16
/* Declarations for org.gnome.SessionManager.EndSessionDialog */
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))
23
struct _DBusEndSessionDialog;
24
typedef struct _DBusEndSessionDialog DBusEndSessionDialog;
25
typedef struct _DBusEndSessionDialogIface DBusEndSessionDialogIface;
27
struct _DBusEndSessionDialogIface
29
GTypeInterface parent_iface;
32
gboolean (*handle_open) (
33
DBusEndSessionDialog *object,
34
GDBusMethodInvocation *invocation,
37
guint arg_seconds_to_stay_open,
38
const gchar *const *arg_inhibitor_object_paths);
41
DBusEndSessionDialog *object);
44
DBusEndSessionDialog *object);
46
void (*confirmed_logout) (
47
DBusEndSessionDialog *object);
49
void (*confirmed_reboot) (
50
DBusEndSessionDialog *object);
52
void (*confirmed_shutdown) (
53
DBusEndSessionDialog *object);
57
GType dbus_end_session_dialog_get_type (void) G_GNUC_CONST;
59
GDBusInterfaceInfo *dbus_end_session_dialog_interface_info (void);
60
guint dbus_end_session_dialog_override_properties (GObjectClass *klass, guint property_id_begin);
63
/* D-Bus method call completion functions: */
64
void dbus_end_session_dialog_complete_open (
65
DBusEndSessionDialog *object,
66
GDBusMethodInvocation *invocation);
70
/* D-Bus signal emissions functions: */
71
void dbus_end_session_dialog_emit_confirmed_logout (
72
DBusEndSessionDialog *object);
74
void dbus_end_session_dialog_emit_confirmed_reboot (
75
DBusEndSessionDialog *object);
77
void dbus_end_session_dialog_emit_confirmed_shutdown (
78
DBusEndSessionDialog *object);
80
void dbus_end_session_dialog_emit_canceled (
81
DBusEndSessionDialog *object);
83
void dbus_end_session_dialog_emit_closed (
84
DBusEndSessionDialog *object);
88
/* D-Bus method calls: */
89
void dbus_end_session_dialog_call_open (
90
DBusEndSessionDialog *proxy,
93
guint arg_seconds_to_stay_open,
94
const gchar *const *arg_inhibitor_object_paths,
95
GCancellable *cancellable,
96
GAsyncReadyCallback callback,
99
gboolean dbus_end_session_dialog_call_open_finish (
100
DBusEndSessionDialog *proxy,
104
gboolean dbus_end_session_dialog_call_open_sync (
105
DBusEndSessionDialog *proxy,
108
guint arg_seconds_to_stay_open,
109
const gchar *const *arg_inhibitor_object_paths,
110
GCancellable *cancellable,
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))
124
typedef struct _DBusEndSessionDialogProxy DBusEndSessionDialogProxy;
125
typedef struct _DBusEndSessionDialogProxyClass DBusEndSessionDialogProxyClass;
126
typedef struct _DBusEndSessionDialogProxyPrivate DBusEndSessionDialogProxyPrivate;
128
struct _DBusEndSessionDialogProxy
131
GDBusProxy parent_instance;
132
DBusEndSessionDialogProxyPrivate *priv;
135
struct _DBusEndSessionDialogProxyClass
137
GDBusProxyClass parent_class;
140
GType dbus_end_session_dialog_proxy_get_type (void) G_GNUC_CONST;
142
void dbus_end_session_dialog_proxy_new (
143
GDBusConnection *connection,
144
GDBusProxyFlags flags,
146
const gchar *object_path,
147
GCancellable *cancellable,
148
GAsyncReadyCallback callback,
150
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_finish (
153
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_sync (
154
GDBusConnection *connection,
155
GDBusProxyFlags flags,
157
const gchar *object_path,
158
GCancellable *cancellable,
161
void dbus_end_session_dialog_proxy_new_for_bus (
163
GDBusProxyFlags flags,
165
const gchar *object_path,
166
GCancellable *cancellable,
167
GAsyncReadyCallback callback,
169
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_for_bus_finish (
172
DBusEndSessionDialog *dbus_end_session_dialog_proxy_new_for_bus_sync (
174
GDBusProxyFlags flags,
176
const gchar *object_path,
177
GCancellable *cancellable,
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))
190
typedef struct _DBusEndSessionDialogSkeleton DBusEndSessionDialogSkeleton;
191
typedef struct _DBusEndSessionDialogSkeletonClass DBusEndSessionDialogSkeletonClass;
192
typedef struct _DBusEndSessionDialogSkeletonPrivate DBusEndSessionDialogSkeletonPrivate;
194
struct _DBusEndSessionDialogSkeleton
197
GDBusInterfaceSkeleton parent_instance;
198
DBusEndSessionDialogSkeletonPrivate *priv;
201
struct _DBusEndSessionDialogSkeletonClass
203
GDBusInterfaceSkeletonClass parent_class;
206
GType dbus_end_session_dialog_skeleton_get_type (void) G_GNUC_CONST;
208
DBusEndSessionDialog *dbus_end_session_dialog_skeleton_new (void);
213
#endif /* __DBUS_END_SESSION_DIALOG_H__ */