Back to index

indicator-session  12.10.0
dbus-accounts.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_ACCOUNTS_H__
00008 #define __DBUS_ACCOUNTS_H__
00009 
00010 #include <gio/gio.h>
00011 
00012 G_BEGIN_DECLS
00013 
00014 
00015 /* ------------------------------------------------------------------------ */
00016 /* Declarations for org.freedesktop.Accounts */
00017 
00018 #define TYPE_ACCOUNTS (accounts_get_type ())
00019 #define ACCOUNTS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS, Accounts))
00020 #define IS_ACCOUNTS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS))
00021 #define ACCOUNTS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ACCOUNTS, AccountsIface))
00022 
00023 struct _Accounts;
00024 typedef struct _Accounts Accounts;
00025 typedef struct _AccountsIface AccountsIface;
00026 
00027 struct _AccountsIface
00028 {
00029   GTypeInterface parent_iface;
00030 
00031 
00032 
00033   gboolean (*handle_create_user) (
00034     Accounts *object,
00035     GDBusMethodInvocation *invocation,
00036     const gchar *arg_name,
00037     const gchar *arg_fullname,
00038     gint arg_accountType);
00039 
00040   gboolean (*handle_delete_user) (
00041     Accounts *object,
00042     GDBusMethodInvocation *invocation,
00043     gint64 arg_id,
00044     gboolean arg_removeFiles);
00045 
00046   gboolean (*handle_find_user_by_id) (
00047     Accounts *object,
00048     GDBusMethodInvocation *invocation,
00049     gint64 arg_id);
00050 
00051   gboolean (*handle_find_user_by_name) (
00052     Accounts *object,
00053     GDBusMethodInvocation *invocation,
00054     const gchar *arg_name);
00055 
00056   gboolean (*handle_list_cached_users) (
00057     Accounts *object,
00058     GDBusMethodInvocation *invocation);
00059 
00060   const gchar * (*get_daemon_version) (Accounts *object);
00061 
00062   void (*user_added) (
00063     Accounts *object,
00064     const gchar *arg_user);
00065 
00066   void (*user_changed) (
00067     Accounts *object,
00068     const gchar *arg_user);
00069 
00070   void (*user_deleted) (
00071     Accounts *object,
00072     const gchar *arg_user);
00073 
00074 };
00075 
00076 GType accounts_get_type (void) G_GNUC_CONST;
00077 
00078 GDBusInterfaceInfo *accounts_interface_info (void);
00079 guint accounts_override_properties (GObjectClass *klass, guint property_id_begin);
00080 
00081 
00082 /* D-Bus method call completion functions: */
00083 void accounts_complete_list_cached_users (
00084     Accounts *object,
00085     GDBusMethodInvocation *invocation,
00086     const gchar *const *users);
00087 
00088 void accounts_complete_find_user_by_id (
00089     Accounts *object,
00090     GDBusMethodInvocation *invocation,
00091     const gchar *user);
00092 
00093 void accounts_complete_find_user_by_name (
00094     Accounts *object,
00095     GDBusMethodInvocation *invocation,
00096     const gchar *user);
00097 
00098 void accounts_complete_create_user (
00099     Accounts *object,
00100     GDBusMethodInvocation *invocation,
00101     const gchar *user);
00102 
00103 void accounts_complete_delete_user (
00104     Accounts *object,
00105     GDBusMethodInvocation *invocation);
00106 
00107 
00108 
00109 /* D-Bus signal emissions functions: */
00110 void accounts_emit_user_added (
00111     Accounts *object,
00112     const gchar *arg_user);
00113 
00114 void accounts_emit_user_deleted (
00115     Accounts *object,
00116     const gchar *arg_user);
00117 
00118 void accounts_emit_user_changed (
00119     Accounts *object,
00120     const gchar *arg_user);
00121 
00122 
00123 
00124 /* D-Bus method calls: */
00125 void accounts_call_list_cached_users (
00126     Accounts *proxy,
00127     GCancellable *cancellable,
00128     GAsyncReadyCallback callback,
00129     gpointer user_data);
00130 
00131 gboolean accounts_call_list_cached_users_finish (
00132     Accounts *proxy,
00133     gchar ***out_users,
00134     GAsyncResult *res,
00135     GError **error);
00136 
00137 gboolean accounts_call_list_cached_users_sync (
00138     Accounts *proxy,
00139     gchar ***out_users,
00140     GCancellable *cancellable,
00141     GError **error);
00142 
00143 void accounts_call_find_user_by_id (
00144     Accounts *proxy,
00145     gint64 arg_id,
00146     GCancellable *cancellable,
00147     GAsyncReadyCallback callback,
00148     gpointer user_data);
00149 
00150 gboolean accounts_call_find_user_by_id_finish (
00151     Accounts *proxy,
00152     gchar **out_user,
00153     GAsyncResult *res,
00154     GError **error);
00155 
00156 gboolean accounts_call_find_user_by_id_sync (
00157     Accounts *proxy,
00158     gint64 arg_id,
00159     gchar **out_user,
00160     GCancellable *cancellable,
00161     GError **error);
00162 
00163 void accounts_call_find_user_by_name (
00164     Accounts *proxy,
00165     const gchar *arg_name,
00166     GCancellable *cancellable,
00167     GAsyncReadyCallback callback,
00168     gpointer user_data);
00169 
00170 gboolean accounts_call_find_user_by_name_finish (
00171     Accounts *proxy,
00172     gchar **out_user,
00173     GAsyncResult *res,
00174     GError **error);
00175 
00176 gboolean accounts_call_find_user_by_name_sync (
00177     Accounts *proxy,
00178     const gchar *arg_name,
00179     gchar **out_user,
00180     GCancellable *cancellable,
00181     GError **error);
00182 
00183 void accounts_call_create_user (
00184     Accounts *proxy,
00185     const gchar *arg_name,
00186     const gchar *arg_fullname,
00187     gint arg_accountType,
00188     GCancellable *cancellable,
00189     GAsyncReadyCallback callback,
00190     gpointer user_data);
00191 
00192 gboolean accounts_call_create_user_finish (
00193     Accounts *proxy,
00194     gchar **out_user,
00195     GAsyncResult *res,
00196     GError **error);
00197 
00198 gboolean accounts_call_create_user_sync (
00199     Accounts *proxy,
00200     const gchar *arg_name,
00201     const gchar *arg_fullname,
00202     gint arg_accountType,
00203     gchar **out_user,
00204     GCancellable *cancellable,
00205     GError **error);
00206 
00207 void accounts_call_delete_user (
00208     Accounts *proxy,
00209     gint64 arg_id,
00210     gboolean arg_removeFiles,
00211     GCancellable *cancellable,
00212     GAsyncReadyCallback callback,
00213     gpointer user_data);
00214 
00215 gboolean accounts_call_delete_user_finish (
00216     Accounts *proxy,
00217     GAsyncResult *res,
00218     GError **error);
00219 
00220 gboolean accounts_call_delete_user_sync (
00221     Accounts *proxy,
00222     gint64 arg_id,
00223     gboolean arg_removeFiles,
00224     GCancellable *cancellable,
00225     GError **error);
00226 
00227 
00228 
00229 /* D-Bus property accessors: */
00230 const gchar *accounts_get_daemon_version (Accounts *object);
00231 gchar *accounts_dup_daemon_version (Accounts *object);
00232 void accounts_set_daemon_version (Accounts *object, const gchar *value);
00233 
00234 
00235 /* ---- */
00236 
00237 #define TYPE_ACCOUNTS_PROXY (accounts_proxy_get_type ())
00238 #define ACCOUNTS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS_PROXY, AccountsProxy))
00239 #define ACCOUNTS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ACCOUNTS_PROXY, AccountsProxyClass))
00240 #define ACCOUNTS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ACCOUNTS_PROXY, AccountsProxyClass))
00241 #define IS_ACCOUNTS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS_PROXY))
00242 #define IS_ACCOUNTS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ACCOUNTS_PROXY))
00243 
00244 typedef struct _AccountsProxy AccountsProxy;
00245 typedef struct _AccountsProxyClass AccountsProxyClass;
00246 typedef struct _AccountsProxyPrivate AccountsProxyPrivate;
00247 
00248 struct _AccountsProxy
00249 {
00250   /*< private >*/
00251   GDBusProxy parent_instance;
00252   AccountsProxyPrivate *priv;
00253 };
00254 
00255 struct _AccountsProxyClass
00256 {
00257   GDBusProxyClass parent_class;
00258 };
00259 
00260 GType accounts_proxy_get_type (void) G_GNUC_CONST;
00261 
00262 void accounts_proxy_new (
00263     GDBusConnection     *connection,
00264     GDBusProxyFlags      flags,
00265     const gchar         *name,
00266     const gchar         *object_path,
00267     GCancellable        *cancellable,
00268     GAsyncReadyCallback  callback,
00269     gpointer             user_data);
00270 Accounts *accounts_proxy_new_finish (
00271     GAsyncResult        *res,
00272     GError             **error);
00273 Accounts *accounts_proxy_new_sync (
00274     GDBusConnection     *connection,
00275     GDBusProxyFlags      flags,
00276     const gchar         *name,
00277     const gchar         *object_path,
00278     GCancellable        *cancellable,
00279     GError             **error);
00280 
00281 void accounts_proxy_new_for_bus (
00282     GBusType             bus_type,
00283     GDBusProxyFlags      flags,
00284     const gchar         *name,
00285     const gchar         *object_path,
00286     GCancellable        *cancellable,
00287     GAsyncReadyCallback  callback,
00288     gpointer             user_data);
00289 Accounts *accounts_proxy_new_for_bus_finish (
00290     GAsyncResult        *res,
00291     GError             **error);
00292 Accounts *accounts_proxy_new_for_bus_sync (
00293     GBusType             bus_type,
00294     GDBusProxyFlags      flags,
00295     const gchar         *name,
00296     const gchar         *object_path,
00297     GCancellable        *cancellable,
00298     GError             **error);
00299 
00300 
00301 /* ---- */
00302 
00303 #define TYPE_ACCOUNTS_SKELETON (accounts_skeleton_get_type ())
00304 #define ACCOUNTS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS_SKELETON, AccountsSkeleton))
00305 #define ACCOUNTS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ACCOUNTS_SKELETON, AccountsSkeletonClass))
00306 #define ACCOUNTS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ACCOUNTS_SKELETON, AccountsSkeletonClass))
00307 #define IS_ACCOUNTS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS_SKELETON))
00308 #define IS_ACCOUNTS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ACCOUNTS_SKELETON))
00309 
00310 typedef struct _AccountsSkeleton AccountsSkeleton;
00311 typedef struct _AccountsSkeletonClass AccountsSkeletonClass;
00312 typedef struct _AccountsSkeletonPrivate AccountsSkeletonPrivate;
00313 
00314 struct _AccountsSkeleton
00315 {
00316   /*< private >*/
00317   GDBusInterfaceSkeleton parent_instance;
00318   AccountsSkeletonPrivate *priv;
00319 };
00320 
00321 struct _AccountsSkeletonClass
00322 {
00323   GDBusInterfaceSkeletonClass parent_class;
00324 };
00325 
00326 GType accounts_skeleton_get_type (void) G_GNUC_CONST;
00327 
00328 Accounts *accounts_skeleton_new (void);
00329 
00330 
00331 G_END_DECLS
00332 
00333 #endif /* __DBUS_ACCOUNTS_H__ */