Back to index

indicator-session  12.10.0
dbus-display-manager.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_DISPLAY_MANAGER_H__
00008 #define __DBUS_DISPLAY_MANAGER_H__
00009 
00010 #include <gio/gio.h>
00011 
00012 G_BEGIN_DECLS
00013 
00014 
00015 /* ------------------------------------------------------------------------ */
00016 /* Declarations for org.freedesktop.DisplayManager.Seat */
00017 
00018 #define TYPE_DISPLAY_MANAGER_SEAT (display_manager_seat_get_type ())
00019 #define DISPLAY_MANAGER_SEAT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT, DisplayManagerSeat))
00020 #define IS_DISPLAY_MANAGER_SEAT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT))
00021 #define DISPLAY_MANAGER_SEAT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_DISPLAY_MANAGER_SEAT, DisplayManagerSeatIface))
00022 
00023 struct _DisplayManagerSeat;
00024 typedef struct _DisplayManagerSeat DisplayManagerSeat;
00025 typedef struct _DisplayManagerSeatIface DisplayManagerSeatIface;
00026 
00027 struct _DisplayManagerSeatIface
00028 {
00029   GTypeInterface parent_iface;
00030 
00031 
00032   gboolean (*handle_lock) (
00033     DisplayManagerSeat *object,
00034     GDBusMethodInvocation *invocation);
00035 
00036   gboolean (*handle_switch_to_greeter) (
00037     DisplayManagerSeat *object,
00038     GDBusMethodInvocation *invocation);
00039 
00040   gboolean (*handle_switch_to_guest) (
00041     DisplayManagerSeat *object,
00042     GDBusMethodInvocation *invocation,
00043     const gchar *arg_session_name);
00044 
00045   gboolean (*handle_switch_to_user) (
00046     DisplayManagerSeat *object,
00047     GDBusMethodInvocation *invocation,
00048     const gchar *arg_username,
00049     const gchar *arg_session_name);
00050 
00051   gboolean  (*get_can_switch) (DisplayManagerSeat *object);
00052 
00053   gboolean  (*get_has_guest_account) (DisplayManagerSeat *object);
00054 
00055   const gchar *const * (*get_sessions) (DisplayManagerSeat *object);
00056 
00057 };
00058 
00059 GType display_manager_seat_get_type (void) G_GNUC_CONST;
00060 
00061 GDBusInterfaceInfo *display_manager_seat_interface_info (void);
00062 guint display_manager_seat_override_properties (GObjectClass *klass, guint property_id_begin);
00063 
00064 
00065 /* D-Bus method call completion functions: */
00066 void display_manager_seat_complete_switch_to_greeter (
00067     DisplayManagerSeat *object,
00068     GDBusMethodInvocation *invocation);
00069 
00070 void display_manager_seat_complete_switch_to_user (
00071     DisplayManagerSeat *object,
00072     GDBusMethodInvocation *invocation);
00073 
00074 void display_manager_seat_complete_switch_to_guest (
00075     DisplayManagerSeat *object,
00076     GDBusMethodInvocation *invocation);
00077 
00078 void display_manager_seat_complete_lock (
00079     DisplayManagerSeat *object,
00080     GDBusMethodInvocation *invocation);
00081 
00082 
00083 
00084 /* D-Bus method calls: */
00085 void display_manager_seat_call_switch_to_greeter (
00086     DisplayManagerSeat *proxy,
00087     GCancellable *cancellable,
00088     GAsyncReadyCallback callback,
00089     gpointer user_data);
00090 
00091 gboolean display_manager_seat_call_switch_to_greeter_finish (
00092     DisplayManagerSeat *proxy,
00093     GAsyncResult *res,
00094     GError **error);
00095 
00096 gboolean display_manager_seat_call_switch_to_greeter_sync (
00097     DisplayManagerSeat *proxy,
00098     GCancellable *cancellable,
00099     GError **error);
00100 
00101 void display_manager_seat_call_switch_to_user (
00102     DisplayManagerSeat *proxy,
00103     const gchar *arg_username,
00104     const gchar *arg_session_name,
00105     GCancellable *cancellable,
00106     GAsyncReadyCallback callback,
00107     gpointer user_data);
00108 
00109 gboolean display_manager_seat_call_switch_to_user_finish (
00110     DisplayManagerSeat *proxy,
00111     GAsyncResult *res,
00112     GError **error);
00113 
00114 gboolean display_manager_seat_call_switch_to_user_sync (
00115     DisplayManagerSeat *proxy,
00116     const gchar *arg_username,
00117     const gchar *arg_session_name,
00118     GCancellable *cancellable,
00119     GError **error);
00120 
00121 void display_manager_seat_call_switch_to_guest (
00122     DisplayManagerSeat *proxy,
00123     const gchar *arg_session_name,
00124     GCancellable *cancellable,
00125     GAsyncReadyCallback callback,
00126     gpointer user_data);
00127 
00128 gboolean display_manager_seat_call_switch_to_guest_finish (
00129     DisplayManagerSeat *proxy,
00130     GAsyncResult *res,
00131     GError **error);
00132 
00133 gboolean display_manager_seat_call_switch_to_guest_sync (
00134     DisplayManagerSeat *proxy,
00135     const gchar *arg_session_name,
00136     GCancellable *cancellable,
00137     GError **error);
00138 
00139 void display_manager_seat_call_lock (
00140     DisplayManagerSeat *proxy,
00141     GCancellable *cancellable,
00142     GAsyncReadyCallback callback,
00143     gpointer user_data);
00144 
00145 gboolean display_manager_seat_call_lock_finish (
00146     DisplayManagerSeat *proxy,
00147     GAsyncResult *res,
00148     GError **error);
00149 
00150 gboolean display_manager_seat_call_lock_sync (
00151     DisplayManagerSeat *proxy,
00152     GCancellable *cancellable,
00153     GError **error);
00154 
00155 
00156 
00157 /* D-Bus property accessors: */
00158 gboolean display_manager_seat_get_can_switch (DisplayManagerSeat *object);
00159 void display_manager_seat_set_can_switch (DisplayManagerSeat *object, gboolean value);
00160 
00161 gboolean display_manager_seat_get_has_guest_account (DisplayManagerSeat *object);
00162 void display_manager_seat_set_has_guest_account (DisplayManagerSeat *object, gboolean value);
00163 
00164 const gchar *const *display_manager_seat_get_sessions (DisplayManagerSeat *object);
00165 gchar **display_manager_seat_dup_sessions (DisplayManagerSeat *object);
00166 void display_manager_seat_set_sessions (DisplayManagerSeat *object, const gchar *const *value);
00167 
00168 
00169 /* ---- */
00170 
00171 #define TYPE_DISPLAY_MANAGER_SEAT_PROXY (display_manager_seat_proxy_get_type ())
00172 #define DISPLAY_MANAGER_SEAT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxy))
00173 #define DISPLAY_MANAGER_SEAT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxyClass))
00174 #define DISPLAY_MANAGER_SEAT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxyClass))
00175 #define IS_DISPLAY_MANAGER_SEAT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY))
00176 #define IS_DISPLAY_MANAGER_SEAT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DISPLAY_MANAGER_SEAT_PROXY))
00177 
00178 typedef struct _DisplayManagerSeatProxy DisplayManagerSeatProxy;
00179 typedef struct _DisplayManagerSeatProxyClass DisplayManagerSeatProxyClass;
00180 typedef struct _DisplayManagerSeatProxyPrivate DisplayManagerSeatProxyPrivate;
00181 
00182 struct _DisplayManagerSeatProxy
00183 {
00184   /*< private >*/
00185   GDBusProxy parent_instance;
00186   DisplayManagerSeatProxyPrivate *priv;
00187 };
00188 
00189 struct _DisplayManagerSeatProxyClass
00190 {
00191   GDBusProxyClass parent_class;
00192 };
00193 
00194 GType display_manager_seat_proxy_get_type (void) G_GNUC_CONST;
00195 
00196 void display_manager_seat_proxy_new (
00197     GDBusConnection     *connection,
00198     GDBusProxyFlags      flags,
00199     const gchar         *name,
00200     const gchar         *object_path,
00201     GCancellable        *cancellable,
00202     GAsyncReadyCallback  callback,
00203     gpointer             user_data);
00204 DisplayManagerSeat *display_manager_seat_proxy_new_finish (
00205     GAsyncResult        *res,
00206     GError             **error);
00207 DisplayManagerSeat *display_manager_seat_proxy_new_sync (
00208     GDBusConnection     *connection,
00209     GDBusProxyFlags      flags,
00210     const gchar         *name,
00211     const gchar         *object_path,
00212     GCancellable        *cancellable,
00213     GError             **error);
00214 
00215 void display_manager_seat_proxy_new_for_bus (
00216     GBusType             bus_type,
00217     GDBusProxyFlags      flags,
00218     const gchar         *name,
00219     const gchar         *object_path,
00220     GCancellable        *cancellable,
00221     GAsyncReadyCallback  callback,
00222     gpointer             user_data);
00223 DisplayManagerSeat *display_manager_seat_proxy_new_for_bus_finish (
00224     GAsyncResult        *res,
00225     GError             **error);
00226 DisplayManagerSeat *display_manager_seat_proxy_new_for_bus_sync (
00227     GBusType             bus_type,
00228     GDBusProxyFlags      flags,
00229     const gchar         *name,
00230     const gchar         *object_path,
00231     GCancellable        *cancellable,
00232     GError             **error);
00233 
00234 
00235 /* ---- */
00236 
00237 #define TYPE_DISPLAY_MANAGER_SEAT_SKELETON (display_manager_seat_skeleton_get_type ())
00238 #define DISPLAY_MANAGER_SEAT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeleton))
00239 #define DISPLAY_MANAGER_SEAT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeletonClass))
00240 #define DISPLAY_MANAGER_SEAT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeletonClass))
00241 #define IS_DISPLAY_MANAGER_SEAT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON))
00242 #define IS_DISPLAY_MANAGER_SEAT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DISPLAY_MANAGER_SEAT_SKELETON))
00243 
00244 typedef struct _DisplayManagerSeatSkeleton DisplayManagerSeatSkeleton;
00245 typedef struct _DisplayManagerSeatSkeletonClass DisplayManagerSeatSkeletonClass;
00246 typedef struct _DisplayManagerSeatSkeletonPrivate DisplayManagerSeatSkeletonPrivate;
00247 
00248 struct _DisplayManagerSeatSkeleton
00249 {
00250   /*< private >*/
00251   GDBusInterfaceSkeleton parent_instance;
00252   DisplayManagerSeatSkeletonPrivate *priv;
00253 };
00254 
00255 struct _DisplayManagerSeatSkeletonClass
00256 {
00257   GDBusInterfaceSkeletonClass parent_class;
00258 };
00259 
00260 GType display_manager_seat_skeleton_get_type (void) G_GNUC_CONST;
00261 
00262 DisplayManagerSeat *display_manager_seat_skeleton_new (void);
00263 
00264 
00265 G_END_DECLS
00266 
00267 #endif /* __DBUS_DISPLAY_MANAGER_H__ */