Back to index

indicator-session  12.10.0
dbus-consolekit-seat.h
Go to the documentation of this file.
00001 /*
00002  * Generated by gdbus-codegen 2.33.3. DO NOT EDIT.
00003  *
00004  * The license of this code is the same as for the source it was derived from.
00005  */
00006 
00007 #ifndef __DBUS_CONSOLEKIT_SEAT_H__
00008 #define __DBUS_CONSOLEKIT_SEAT_H__
00009 
00010 #include <gio/gio.h>
00011 
00012 G_BEGIN_DECLS
00013 
00014 
00015 /* ------------------------------------------------------------------------ */
00016 /* Declarations for org.freedesktop.ConsoleKit.Seat */
00017 
00018 #define TYPE_CONSOLE_KIT_SEAT (console_kit_seat_get_type ())
00019 #define CONSOLE_KIT_SEAT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONSOLE_KIT_SEAT, ConsoleKitSeat))
00020 #define IS_CONSOLE_KIT_SEAT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONSOLE_KIT_SEAT))
00021 #define CONSOLE_KIT_SEAT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONSOLE_KIT_SEAT, ConsoleKitSeatIface))
00022 
00023 struct _ConsoleKitSeat;
00024 typedef struct _ConsoleKitSeat ConsoleKitSeat;
00025 typedef struct _ConsoleKitSeatIface ConsoleKitSeatIface;
00026 
00027 struct _ConsoleKitSeatIface
00028 {
00029   GTypeInterface parent_iface;
00030 
00031 
00032   gboolean (*handle_activate_session) (
00033     ConsoleKitSeat *object,
00034     GDBusMethodInvocation *invocation,
00035     const gchar *arg_ssid);
00036 
00037   gboolean (*handle_can_activate_sessions) (
00038     ConsoleKitSeat *object,
00039     GDBusMethodInvocation *invocation);
00040 
00041   gboolean (*handle_get_active_session) (
00042     ConsoleKitSeat *object,
00043     GDBusMethodInvocation *invocation);
00044 
00045   gboolean (*handle_get_devices) (
00046     ConsoleKitSeat *object,
00047     GDBusMethodInvocation *invocation);
00048 
00049   gboolean (*handle_get_id) (
00050     ConsoleKitSeat *object,
00051     GDBusMethodInvocation *invocation);
00052 
00053   gboolean (*handle_get_sessions) (
00054     ConsoleKitSeat *object,
00055     GDBusMethodInvocation *invocation);
00056 
00057   void (*active_session_changed) (
00058     ConsoleKitSeat *object,
00059     const gchar *arg_ssid);
00060 
00061   void (*device_added) (
00062     ConsoleKitSeat *object,
00063     GVariant *arg_device);
00064 
00065   void (*device_removed) (
00066     ConsoleKitSeat *object,
00067     GVariant *arg_device);
00068 
00069   void (*session_added) (
00070     ConsoleKitSeat *object,
00071     const gchar *arg_ssid);
00072 
00073   void (*session_removed) (
00074     ConsoleKitSeat *object,
00075     const gchar *arg_ssid);
00076 
00077 };
00078 
00079 GType console_kit_seat_get_type (void) G_GNUC_CONST;
00080 
00081 GDBusInterfaceInfo *console_kit_seat_interface_info (void);
00082 guint console_kit_seat_override_properties (GObjectClass *klass, guint property_id_begin);
00083 
00084 
00085 /* D-Bus method call completion functions: */
00086 void console_kit_seat_complete_get_id (
00087     ConsoleKitSeat *object,
00088     GDBusMethodInvocation *invocation,
00089     const gchar *sid);
00090 
00091 void console_kit_seat_complete_get_sessions (
00092     ConsoleKitSeat *object,
00093     GDBusMethodInvocation *invocation,
00094     const gchar *const *sessions);
00095 
00096 void console_kit_seat_complete_get_devices (
00097     ConsoleKitSeat *object,
00098     GDBusMethodInvocation *invocation,
00099     GVariant *devices);
00100 
00101 void console_kit_seat_complete_get_active_session (
00102     ConsoleKitSeat *object,
00103     GDBusMethodInvocation *invocation,
00104     const gchar *ssid);
00105 
00106 void console_kit_seat_complete_can_activate_sessions (
00107     ConsoleKitSeat *object,
00108     GDBusMethodInvocation *invocation,
00109     gboolean can_activate);
00110 
00111 void console_kit_seat_complete_activate_session (
00112     ConsoleKitSeat *object,
00113     GDBusMethodInvocation *invocation);
00114 
00115 
00116 
00117 /* D-Bus signal emissions functions: */
00118 void console_kit_seat_emit_active_session_changed (
00119     ConsoleKitSeat *object,
00120     const gchar *arg_ssid);
00121 
00122 void console_kit_seat_emit_session_added (
00123     ConsoleKitSeat *object,
00124     const gchar *arg_ssid);
00125 
00126 void console_kit_seat_emit_session_removed (
00127     ConsoleKitSeat *object,
00128     const gchar *arg_ssid);
00129 
00130 void console_kit_seat_emit_device_added (
00131     ConsoleKitSeat *object,
00132     GVariant *arg_device);
00133 
00134 void console_kit_seat_emit_device_removed (
00135     ConsoleKitSeat *object,
00136     GVariant *arg_device);
00137 
00138 
00139 
00140 /* D-Bus method calls: */
00141 void console_kit_seat_call_get_id (
00142     ConsoleKitSeat *proxy,
00143     GCancellable *cancellable,
00144     GAsyncReadyCallback callback,
00145     gpointer user_data);
00146 
00147 gboolean console_kit_seat_call_get_id_finish (
00148     ConsoleKitSeat *proxy,
00149     gchar **out_sid,
00150     GAsyncResult *res,
00151     GError **error);
00152 
00153 gboolean console_kit_seat_call_get_id_sync (
00154     ConsoleKitSeat *proxy,
00155     gchar **out_sid,
00156     GCancellable *cancellable,
00157     GError **error);
00158 
00159 void console_kit_seat_call_get_sessions (
00160     ConsoleKitSeat *proxy,
00161     GCancellable *cancellable,
00162     GAsyncReadyCallback callback,
00163     gpointer user_data);
00164 
00165 gboolean console_kit_seat_call_get_sessions_finish (
00166     ConsoleKitSeat *proxy,
00167     gchar ***out_sessions,
00168     GAsyncResult *res,
00169     GError **error);
00170 
00171 gboolean console_kit_seat_call_get_sessions_sync (
00172     ConsoleKitSeat *proxy,
00173     gchar ***out_sessions,
00174     GCancellable *cancellable,
00175     GError **error);
00176 
00177 void console_kit_seat_call_get_devices (
00178     ConsoleKitSeat *proxy,
00179     GCancellable *cancellable,
00180     GAsyncReadyCallback callback,
00181     gpointer user_data);
00182 
00183 gboolean console_kit_seat_call_get_devices_finish (
00184     ConsoleKitSeat *proxy,
00185     GVariant **out_devices,
00186     GAsyncResult *res,
00187     GError **error);
00188 
00189 gboolean console_kit_seat_call_get_devices_sync (
00190     ConsoleKitSeat *proxy,
00191     GVariant **out_devices,
00192     GCancellable *cancellable,
00193     GError **error);
00194 
00195 void console_kit_seat_call_get_active_session (
00196     ConsoleKitSeat *proxy,
00197     GCancellable *cancellable,
00198     GAsyncReadyCallback callback,
00199     gpointer user_data);
00200 
00201 gboolean console_kit_seat_call_get_active_session_finish (
00202     ConsoleKitSeat *proxy,
00203     gchar **out_ssid,
00204     GAsyncResult *res,
00205     GError **error);
00206 
00207 gboolean console_kit_seat_call_get_active_session_sync (
00208     ConsoleKitSeat *proxy,
00209     gchar **out_ssid,
00210     GCancellable *cancellable,
00211     GError **error);
00212 
00213 void console_kit_seat_call_can_activate_sessions (
00214     ConsoleKitSeat *proxy,
00215     GCancellable *cancellable,
00216     GAsyncReadyCallback callback,
00217     gpointer user_data);
00218 
00219 gboolean console_kit_seat_call_can_activate_sessions_finish (
00220     ConsoleKitSeat *proxy,
00221     gboolean *out_can_activate,
00222     GAsyncResult *res,
00223     GError **error);
00224 
00225 gboolean console_kit_seat_call_can_activate_sessions_sync (
00226     ConsoleKitSeat *proxy,
00227     gboolean *out_can_activate,
00228     GCancellable *cancellable,
00229     GError **error);
00230 
00231 void console_kit_seat_call_activate_session (
00232     ConsoleKitSeat *proxy,
00233     const gchar *arg_ssid,
00234     GCancellable *cancellable,
00235     GAsyncReadyCallback callback,
00236     gpointer user_data);
00237 
00238 gboolean console_kit_seat_call_activate_session_finish (
00239     ConsoleKitSeat *proxy,
00240     GAsyncResult *res,
00241     GError **error);
00242 
00243 gboolean console_kit_seat_call_activate_session_sync (
00244     ConsoleKitSeat *proxy,
00245     const gchar *arg_ssid,
00246     GCancellable *cancellable,
00247     GError **error);
00248 
00249 
00250 
00251 /* ---- */
00252 
00253 #define TYPE_CONSOLE_KIT_SEAT_PROXY (console_kit_seat_proxy_get_type ())
00254 #define CONSOLE_KIT_SEAT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONSOLE_KIT_SEAT_PROXY, ConsoleKitSeatProxy))
00255 #define CONSOLE_KIT_SEAT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONSOLE_KIT_SEAT_PROXY, ConsoleKitSeatProxyClass))
00256 #define CONSOLE_KIT_SEAT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONSOLE_KIT_SEAT_PROXY, ConsoleKitSeatProxyClass))
00257 #define IS_CONSOLE_KIT_SEAT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONSOLE_KIT_SEAT_PROXY))
00258 #define IS_CONSOLE_KIT_SEAT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONSOLE_KIT_SEAT_PROXY))
00259 
00260 typedef struct _ConsoleKitSeatProxy ConsoleKitSeatProxy;
00261 typedef struct _ConsoleKitSeatProxyClass ConsoleKitSeatProxyClass;
00262 typedef struct _ConsoleKitSeatProxyPrivate ConsoleKitSeatProxyPrivate;
00263 
00264 struct _ConsoleKitSeatProxy
00265 {
00266   /*< private >*/
00267   GDBusProxy parent_instance;
00268   ConsoleKitSeatProxyPrivate *priv;
00269 };
00270 
00271 struct _ConsoleKitSeatProxyClass
00272 {
00273   GDBusProxyClass parent_class;
00274 };
00275 
00276 GType console_kit_seat_proxy_get_type (void) G_GNUC_CONST;
00277 
00278 void console_kit_seat_proxy_new (
00279     GDBusConnection     *connection,
00280     GDBusProxyFlags      flags,
00281     const gchar         *name,
00282     const gchar         *object_path,
00283     GCancellable        *cancellable,
00284     GAsyncReadyCallback  callback,
00285     gpointer             user_data);
00286 ConsoleKitSeat *console_kit_seat_proxy_new_finish (
00287     GAsyncResult        *res,
00288     GError             **error);
00289 ConsoleKitSeat *console_kit_seat_proxy_new_sync (
00290     GDBusConnection     *connection,
00291     GDBusProxyFlags      flags,
00292     const gchar         *name,
00293     const gchar         *object_path,
00294     GCancellable        *cancellable,
00295     GError             **error);
00296 
00297 void console_kit_seat_proxy_new_for_bus (
00298     GBusType             bus_type,
00299     GDBusProxyFlags      flags,
00300     const gchar         *name,
00301     const gchar         *object_path,
00302     GCancellable        *cancellable,
00303     GAsyncReadyCallback  callback,
00304     gpointer             user_data);
00305 ConsoleKitSeat *console_kit_seat_proxy_new_for_bus_finish (
00306     GAsyncResult        *res,
00307     GError             **error);
00308 ConsoleKitSeat *console_kit_seat_proxy_new_for_bus_sync (
00309     GBusType             bus_type,
00310     GDBusProxyFlags      flags,
00311     const gchar         *name,
00312     const gchar         *object_path,
00313     GCancellable        *cancellable,
00314     GError             **error);
00315 
00316 
00317 /* ---- */
00318 
00319 #define TYPE_CONSOLE_KIT_SEAT_SKELETON (console_kit_seat_skeleton_get_type ())
00320 #define CONSOLE_KIT_SEAT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONSOLE_KIT_SEAT_SKELETON, ConsoleKitSeatSkeleton))
00321 #define CONSOLE_KIT_SEAT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONSOLE_KIT_SEAT_SKELETON, ConsoleKitSeatSkeletonClass))
00322 #define CONSOLE_KIT_SEAT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONSOLE_KIT_SEAT_SKELETON, ConsoleKitSeatSkeletonClass))
00323 #define IS_CONSOLE_KIT_SEAT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONSOLE_KIT_SEAT_SKELETON))
00324 #define IS_CONSOLE_KIT_SEAT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONSOLE_KIT_SEAT_SKELETON))
00325 
00326 typedef struct _ConsoleKitSeatSkeleton ConsoleKitSeatSkeleton;
00327 typedef struct _ConsoleKitSeatSkeletonClass ConsoleKitSeatSkeletonClass;
00328 typedef struct _ConsoleKitSeatSkeletonPrivate ConsoleKitSeatSkeletonPrivate;
00329 
00330 struct _ConsoleKitSeatSkeleton
00331 {
00332   /*< private >*/
00333   GDBusInterfaceSkeleton parent_instance;
00334   ConsoleKitSeatSkeletonPrivate *priv;
00335 };
00336 
00337 struct _ConsoleKitSeatSkeletonClass
00338 {
00339   GDBusInterfaceSkeletonClass parent_class;
00340 };
00341 
00342 GType console_kit_seat_skeleton_get_type (void) G_GNUC_CONST;
00343 
00344 ConsoleKitSeat *console_kit_seat_skeleton_new (void);
00345 
00346 
00347 G_END_DECLS
00348 
00349 #endif /* __DBUS_CONSOLEKIT_SEAT_H__ */