Back to index

indicator-session  12.10.0
Classes | Defines | Typedefs | Functions
dbus-accounts.h File Reference
#include <gio/gio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _AccountsIface
struct  _AccountsProxy
struct  _AccountsProxyClass
struct  _AccountsSkeleton
struct  _AccountsSkeletonClass

Defines

#define TYPE_ACCOUNTS   (accounts_get_type ())
#define ACCOUNTS(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS, Accounts))
#define IS_ACCOUNTS(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS))
#define ACCOUNTS_GET_IFACE(o)   (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ACCOUNTS, AccountsIface))
#define TYPE_ACCOUNTS_PROXY   (accounts_proxy_get_type ())
#define ACCOUNTS_PROXY(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS_PROXY, AccountsProxy))
#define ACCOUNTS_PROXY_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ACCOUNTS_PROXY, AccountsProxyClass))
#define ACCOUNTS_PROXY_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ACCOUNTS_PROXY, AccountsProxyClass))
#define IS_ACCOUNTS_PROXY(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS_PROXY))
#define IS_ACCOUNTS_PROXY_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ACCOUNTS_PROXY))
#define TYPE_ACCOUNTS_SKELETON   (accounts_skeleton_get_type ())
#define ACCOUNTS_SKELETON(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS_SKELETON, AccountsSkeleton))
#define ACCOUNTS_SKELETON_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ACCOUNTS_SKELETON, AccountsSkeletonClass))
#define ACCOUNTS_SKELETON_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ACCOUNTS_SKELETON, AccountsSkeletonClass))
#define IS_ACCOUNTS_SKELETON(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS_SKELETON))
#define IS_ACCOUNTS_SKELETON_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ACCOUNTS_SKELETON))

Typedefs

typedef struct _Accounts
typedef struct _AccountsIface
typedef struct _AccountsProxy
typedef struct _AccountsProxyClass
typedef struct _AccountsProxyPrivate
typedef struct _AccountsSkeleton
typedef struct _AccountsSkeletonClass
typedef struct _AccountsSkeletonPrivate

Functions

GType accounts_get_type (void) G_GNUC_CONST
GDBusInterfaceInfo * accounts_interface_info (void)
 accounts_interface_info:
guint accounts_override_properties (GObjectClass *klass, guint property_id_begin)
 accounts_override_properties: : The class structure for a #GObject-derived class.
void accounts_complete_list_cached_users (Accounts *object, GDBusMethodInvocation *invocation, const gchar *const *users)
 accounts_complete_list_cached_users: : A #Accounts.
void accounts_complete_find_user_by_id (Accounts *object, GDBusMethodInvocation *invocation, const gchar *user)
 accounts_complete_find_user_by_id: : A #Accounts.
void accounts_complete_find_user_by_name (Accounts *object, GDBusMethodInvocation *invocation, const gchar *user)
 accounts_complete_find_user_by_name: : A #Accounts.
void accounts_complete_create_user (Accounts *object, GDBusMethodInvocation *invocation, const gchar *user)
 accounts_complete_create_user: : A #Accounts.
void accounts_complete_delete_user (Accounts *object, GDBusMethodInvocation *invocation)
 accounts_complete_delete_user: : A #Accounts.
void accounts_emit_user_added (Accounts *object, const gchar *arg_user)
 accounts_emit_user_added: : A #Accounts.
void accounts_emit_user_deleted (Accounts *object, const gchar *arg_user)
 accounts_emit_user_deleted: : A #Accounts.
void accounts_emit_user_changed (Accounts *object, const gchar *arg_user)
 accounts_emit_user_changed: : A #Accounts.
void accounts_call_list_cached_users (Accounts *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 accounts_call_list_cached_users: : A #AccountsProxy.
gboolean accounts_call_list_cached_users_finish (Accounts *proxy, gchar ***out_users, GAsyncResult *res, GError **error)
 accounts_call_list_cached_users_finish: : A #AccountsProxy.
gboolean accounts_call_list_cached_users_sync (Accounts *proxy, gchar ***out_users, GCancellable *cancellable, GError **error)
 accounts_call_list_cached_users_sync: : A #AccountsProxy.
void accounts_call_find_user_by_id (Accounts *proxy, gint64 arg_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 accounts_call_find_user_by_id: : A #AccountsProxy.
gboolean accounts_call_find_user_by_id_finish (Accounts *proxy, gchar **out_user, GAsyncResult *res, GError **error)
 accounts_call_find_user_by_id_finish: : A #AccountsProxy.
gboolean accounts_call_find_user_by_id_sync (Accounts *proxy, gint64 arg_id, gchar **out_user, GCancellable *cancellable, GError **error)
 accounts_call_find_user_by_id_sync: : A #AccountsProxy.
void accounts_call_find_user_by_name (Accounts *proxy, const gchar *arg_name, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 accounts_call_find_user_by_name: : A #AccountsProxy.
gboolean accounts_call_find_user_by_name_finish (Accounts *proxy, gchar **out_user, GAsyncResult *res, GError **error)
 accounts_call_find_user_by_name_finish: : A #AccountsProxy.
gboolean accounts_call_find_user_by_name_sync (Accounts *proxy, const gchar *arg_name, gchar **out_user, GCancellable *cancellable, GError **error)
 accounts_call_find_user_by_name_sync: : A #AccountsProxy.
void accounts_call_create_user (Accounts *proxy, const gchar *arg_name, const gchar *arg_fullname, gint arg_accountType, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 accounts_call_create_user: : A #AccountsProxy.
gboolean accounts_call_create_user_finish (Accounts *proxy, gchar **out_user, GAsyncResult *res, GError **error)
 accounts_call_create_user_finish: : A #AccountsProxy.
gboolean accounts_call_create_user_sync (Accounts *proxy, const gchar *arg_name, const gchar *arg_fullname, gint arg_accountType, gchar **out_user, GCancellable *cancellable, GError **error)
 accounts_call_create_user_sync: : A #AccountsProxy.
void accounts_call_delete_user (Accounts *proxy, gint64 arg_id, gboolean arg_removeFiles, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 accounts_call_delete_user: : A #AccountsProxy.
gboolean accounts_call_delete_user_finish (Accounts *proxy, GAsyncResult *res, GError **error)
 accounts_call_delete_user_finish: : A #AccountsProxy.
gboolean accounts_call_delete_user_sync (Accounts *proxy, gint64 arg_id, gboolean arg_removeFiles, GCancellable *cancellable, GError **error)
 accounts_call_delete_user_sync: : A #AccountsProxy.
const gchar * accounts_get_daemon_version (Accounts *object)
 accounts_get_daemon_version: (skip) : A #Accounts.
gchar * accounts_dup_daemon_version (Accounts *object)
 accounts_dup_daemon_version: (skip) : A #Accounts.
void accounts_set_daemon_version (Accounts *object, const gchar *value)
 accounts_set_daemon_version: (skip) : A #Accounts.
GType accounts_proxy_get_type (void) G_GNUC_CONST
void accounts_proxy_new (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Accounts * accounts_proxy_new_finish (GAsyncResult *res, GError **error)
 accounts_proxy_new_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_proxy_new().
Accounts * accounts_proxy_new_sync (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
void accounts_proxy_new_for_bus (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Accounts * accounts_proxy_new_for_bus_finish (GAsyncResult *res, GError **error)
 accounts_proxy_new_for_bus_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_proxy_new_for_bus().
Accounts * accounts_proxy_new_for_bus_sync (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
GType accounts_skeleton_get_type (void) G_GNUC_CONST
Accounts * accounts_skeleton_new (void)
 accounts_skeleton_new:

Class Documentation

struct _AccountsProxy

Definition at line 248 of file dbus-accounts.h.

Class Members
GDBusProxy parent_instance
AccountsProxyPrivate * priv
struct _AccountsProxyClass

Definition at line 255 of file dbus-accounts.h.

Class Members
GDBusProxyClass parent_class
struct _AccountsSkeleton

Definition at line 314 of file dbus-accounts.h.

Class Members
GDBusInterfaceSkeleton parent_instance
AccountsSkeletonPrivate * priv
struct _AccountsSkeletonClass

Definition at line 321 of file dbus-accounts.h.

Class Members
GDBusInterfaceSkeletonClass parent_class

Define Documentation

#define ACCOUNTS (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS, Accounts))

Definition at line 19 of file dbus-accounts.h.

#define ACCOUNTS_GET_IFACE (   o)    (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ACCOUNTS, AccountsIface))

Definition at line 21 of file dbus-accounts.h.

#define ACCOUNTS_PROXY (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS_PROXY, AccountsProxy))

Definition at line 238 of file dbus-accounts.h.

#define ACCOUNTS_PROXY_CLASS (   k)    (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ACCOUNTS_PROXY, AccountsProxyClass))

Definition at line 239 of file dbus-accounts.h.

#define ACCOUNTS_PROXY_GET_CLASS (   o)    (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ACCOUNTS_PROXY, AccountsProxyClass))

Definition at line 240 of file dbus-accounts.h.

#define ACCOUNTS_SKELETON (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ACCOUNTS_SKELETON, AccountsSkeleton))

Definition at line 304 of file dbus-accounts.h.

#define ACCOUNTS_SKELETON_CLASS (   k)    (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ACCOUNTS_SKELETON, AccountsSkeletonClass))

Definition at line 305 of file dbus-accounts.h.

#define ACCOUNTS_SKELETON_GET_CLASS (   o)    (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ACCOUNTS_SKELETON, AccountsSkeletonClass))

Definition at line 306 of file dbus-accounts.h.

#define IS_ACCOUNTS (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS))

Definition at line 20 of file dbus-accounts.h.

#define IS_ACCOUNTS_PROXY (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS_PROXY))

Definition at line 241 of file dbus-accounts.h.

#define IS_ACCOUNTS_PROXY_CLASS (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ACCOUNTS_PROXY))

Definition at line 242 of file dbus-accounts.h.

#define IS_ACCOUNTS_SKELETON (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ACCOUNTS_SKELETON))

Definition at line 307 of file dbus-accounts.h.

#define IS_ACCOUNTS_SKELETON_CLASS (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ACCOUNTS_SKELETON))

Definition at line 308 of file dbus-accounts.h.

#define TYPE_ACCOUNTS   (accounts_get_type ())

Definition at line 18 of file dbus-accounts.h.

Definition at line 237 of file dbus-accounts.h.

Definition at line 303 of file dbus-accounts.h.


Typedef Documentation

typedef struct _Accounts

Definition at line 24 of file dbus-accounts.h.

typedef struct _AccountsIface

Definition at line 25 of file dbus-accounts.h.

typedef struct _AccountsProxy

Definition at line 244 of file dbus-accounts.h.

typedef struct _AccountsProxyClass

Definition at line 245 of file dbus-accounts.h.

typedef struct _AccountsProxyPrivate

Definition at line 246 of file dbus-accounts.h.

typedef struct _AccountsSkeleton

Definition at line 310 of file dbus-accounts.h.

typedef struct _AccountsSkeletonClass

Definition at line 311 of file dbus-accounts.h.

typedef struct _AccountsSkeletonPrivate

Definition at line 312 of file dbus-accounts.h.


Function Documentation

void accounts_call_create_user ( Accounts *  proxy,
const gchar *  arg_name,
const gchar *  arg_fullname,
gint  arg_accountType,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

accounts_call_create_user: : A #AccountsProxy.

: Argument to pass with the method invocation. : Argument to pass with the method invocation. : Argument to pass with the method invocation. : (allow-none): A #GCancellable or NULL. : A #GAsyncReadyCallback to call when the request is satisfied or NULL. : User data to pass to .

Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.CreateUser">CreateUser()</link> D-Bus method on . When the operation is finished, will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from. You can then call accounts_call_create_user_finish() to get the result of the operation.

See accounts_call_create_user_sync() for the synchronous, blocking version of this method.

Definition at line 1284 of file dbus-accounts.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "CreateUser",
    g_variant_new ("(ssi)",
                   arg_name,
                   arg_fullname,
                   arg_accountType),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean accounts_call_create_user_finish ( Accounts *  proxy,
gchar **  out_user,
GAsyncResult *  res,
GError **  error 
)

accounts_call_create_user_finish: : A #AccountsProxy.

: (out): Return location for return parameter or NULL to ignore. : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_call_create_user(). : Return location for error or NULL.

Finishes an operation started with accounts_call_create_user().

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1318 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_user);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean accounts_call_create_user_sync ( Accounts *  proxy,
const gchar *  arg_name,
const gchar *  arg_fullname,
gint  arg_accountType,
gchar **  out_user,
GCancellable *  cancellable,
GError **  error 
)

accounts_call_create_user_sync: : A #AccountsProxy.

: Argument to pass with the method invocation. : Argument to pass with the method invocation. : Argument to pass with the method invocation. : (out): Return location for return parameter or NULL to ignore. : (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.CreateUser">CreateUser()</link> D-Bus method on . The calling thread is blocked until a reply is received.

See accounts_call_create_user() for the asynchronous version of this method.

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1353 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "CreateUser",
    g_variant_new ("(ssi)",
                   arg_name,
                   arg_fullname,
                   arg_accountType),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_user);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
void accounts_call_delete_user ( Accounts *  proxy,
gint64  arg_id,
gboolean  arg_removeFiles,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

accounts_call_delete_user: : A #AccountsProxy.

: Argument to pass with the method invocation. : Argument to pass with the method invocation. : (allow-none): A #GCancellable or NULL. : A #GAsyncReadyCallback to call when the request is satisfied or NULL. : User data to pass to .

Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.DeleteUser">DeleteUser()</link> D-Bus method on . When the operation is finished, will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from. You can then call accounts_call_delete_user_finish() to get the result of the operation.

See accounts_call_delete_user_sync() for the synchronous, blocking version of this method.

Definition at line 1399 of file dbus-accounts.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "DeleteUser",
    g_variant_new ("(xb)",
                   arg_id,
                   arg_removeFiles),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean accounts_call_delete_user_finish ( Accounts *  proxy,
GAsyncResult *  res,
GError **  error 
)

accounts_call_delete_user_finish: : A #AccountsProxy.

: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_call_delete_user(). : Return location for error or NULL.

Finishes an operation started with accounts_call_delete_user().

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1430 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "()");
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean accounts_call_delete_user_sync ( Accounts *  proxy,
gint64  arg_id,
gboolean  arg_removeFiles,
GCancellable *  cancellable,
GError **  error 
)

accounts_call_delete_user_sync: : A #AccountsProxy.

: Argument to pass with the method invocation. : Argument to pass with the method invocation. : (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.DeleteUser">DeleteUser()</link> D-Bus method on . The calling thread is blocked until a reply is received.

See accounts_call_delete_user() for the asynchronous version of this method.

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1461 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "DeleteUser",
    g_variant_new ("(xb)",
                   arg_id,
                   arg_removeFiles),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "()");
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
void accounts_call_find_user_by_id ( Accounts *  proxy,
gint64  arg_id,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

accounts_call_find_user_by_id: : A #AccountsProxy.

: Argument to pass with the method invocation. : (allow-none): A #GCancellable or NULL. : A #GAsyncReadyCallback to call when the request is satisfied or NULL. : User data to pass to .

Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.FindUserById">FindUserById()</link> D-Bus method on . When the operation is finished, will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from. You can then call accounts_call_find_user_by_id_finish() to get the result of the operation.

See accounts_call_find_user_by_id_sync() for the synchronous, blocking version of this method.

Definition at line 1074 of file dbus-accounts.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "FindUserById",
    g_variant_new ("(x)",
                   arg_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean accounts_call_find_user_by_id_finish ( Accounts *  proxy,
gchar **  out_user,
GAsyncResult *  res,
GError **  error 
)

accounts_call_find_user_by_id_finish: : A #AccountsProxy.

: (out): Return location for return parameter or NULL to ignore. : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_call_find_user_by_id(). : Return location for error or NULL.

Finishes an operation started with accounts_call_find_user_by_id().

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1104 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_user);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean accounts_call_find_user_by_id_sync ( Accounts *  proxy,
gint64  arg_id,
gchar **  out_user,
GCancellable *  cancellable,
GError **  error 
)

accounts_call_find_user_by_id_sync: : A #AccountsProxy.

: Argument to pass with the method invocation. : (out): Return location for return parameter or NULL to ignore. : (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.FindUserById">FindUserById()</link> D-Bus method on . The calling thread is blocked until a reply is received.

See accounts_call_find_user_by_id() for the asynchronous version of this method.

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1137 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "FindUserById",
    g_variant_new ("(x)",
                   arg_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_user);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
void accounts_call_find_user_by_name ( Accounts *  proxy,
const gchar *  arg_name,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

accounts_call_find_user_by_name: : A #AccountsProxy.

: Argument to pass with the method invocation. : (allow-none): A #GCancellable or NULL. : A #GAsyncReadyCallback to call when the request is satisfied or NULL. : User data to pass to .

Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.FindUserByName">FindUserByName()</link> D-Bus method on . When the operation is finished, will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from. You can then call accounts_call_find_user_by_name_finish() to get the result of the operation.

See accounts_call_find_user_by_name_sync() for the synchronous, blocking version of this method.

Definition at line 1178 of file dbus-accounts.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "FindUserByName",
    g_variant_new ("(s)",
                   arg_name),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean accounts_call_find_user_by_name_finish ( Accounts *  proxy,
gchar **  out_user,
GAsyncResult *  res,
GError **  error 
)

accounts_call_find_user_by_name_finish: : A #AccountsProxy.

: (out): Return location for return parameter or NULL to ignore. : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_call_find_user_by_name(). : Return location for error or NULL.

Finishes an operation started with accounts_call_find_user_by_name().

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1208 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_user);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean accounts_call_find_user_by_name_sync ( Accounts *  proxy,
const gchar *  arg_name,
gchar **  out_user,
GCancellable *  cancellable,
GError **  error 
)

accounts_call_find_user_by_name_sync: : A #AccountsProxy.

: Argument to pass with the method invocation. : (out): Return location for return parameter or NULL to ignore. : (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.FindUserByName">FindUserByName()</link> D-Bus method on . The calling thread is blocked until a reply is received.

See accounts_call_find_user_by_name() for the asynchronous version of this method.

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1241 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "FindUserByName",
    g_variant_new ("(s)",
                   arg_name),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_user);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
void accounts_call_list_cached_users ( Accounts *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

accounts_call_list_cached_users: : A #AccountsProxy.

: (allow-none): A #GCancellable or NULL. : A #GAsyncReadyCallback to call when the request is satisfied or NULL. : User data to pass to .

Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.ListCachedUsers">ListCachedUsers()</link> D-Bus method on . When the operation is finished, will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from. You can then call accounts_call_list_cached_users_finish() to get the result of the operation.

See accounts_call_list_cached_users_sync() for the synchronous, blocking version of this method.

Definition at line 975 of file dbus-accounts.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListCachedUsers",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean accounts_call_list_cached_users_finish ( Accounts *  proxy,
gchar ***  out_users,
GAsyncResult *  res,
GError **  error 
)

accounts_call_list_cached_users_finish: : A #AccountsProxy.

: (out): Return location for return parameter or NULL to ignore. : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_call_list_cached_users(). : Return location for error or NULL.

Finishes an operation started with accounts_call_list_cached_users().

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1003 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^ao)",
                 out_users);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean accounts_call_list_cached_users_sync ( Accounts *  proxy,
gchar ***  out_users,
GCancellable *  cancellable,
GError **  error 
)

accounts_call_list_cached_users_sync: : A #AccountsProxy.

: (out): Return location for return parameter or NULL to ignore. : (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Accounts.ListCachedUsers">ListCachedUsers()</link> D-Bus method on . The calling thread is blocked until a reply is received.

See accounts_call_list_cached_users() for the asynchronous version of this method.

Returns: (skip): TRUE if the call succeded, FALSE if is set.

Definition at line 1035 of file dbus-accounts.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListCachedUsers",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^ao)",
                 out_users);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

Here is the caller graph for this function:

void accounts_complete_create_user ( Accounts *  object,
GDBusMethodInvocation *  invocation,
const gchar *  user 
)

accounts_complete_create_user: : A #Accounts.

: (transfer full): A #GDBusMethodInvocation. : Parameter to return.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Accounts.CreateUser">CreateUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free , you cannot use it afterwards.

Definition at line 1561 of file dbus-accounts.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(o)",
                   user));
}
void accounts_complete_delete_user ( Accounts *  object,
GDBusMethodInvocation *  invocation 
)

accounts_complete_delete_user: : A #Accounts.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Accounts.DeleteUser">DeleteUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free , you cannot use it afterwards.

Definition at line 1581 of file dbus-accounts.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void accounts_complete_find_user_by_id ( Accounts *  object,
GDBusMethodInvocation *  invocation,
const gchar *  user 
)

accounts_complete_find_user_by_id: : A #Accounts.

: (transfer full): A #GDBusMethodInvocation. : Parameter to return.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Accounts.FindUserById">FindUserById()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free , you cannot use it afterwards.

Definition at line 1519 of file dbus-accounts.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(o)",
                   user));
}
void accounts_complete_find_user_by_name ( Accounts *  object,
GDBusMethodInvocation *  invocation,
const gchar *  user 
)

accounts_complete_find_user_by_name: : A #Accounts.

: (transfer full): A #GDBusMethodInvocation. : Parameter to return.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Accounts.FindUserByName">FindUserByName()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free , you cannot use it afterwards.

Definition at line 1540 of file dbus-accounts.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(o)",
                   user));
}
void accounts_complete_list_cached_users ( Accounts *  object,
GDBusMethodInvocation *  invocation,
const gchar *const *  users 
)

accounts_complete_list_cached_users: : A #Accounts.

: (transfer full): A #GDBusMethodInvocation. : Parameter to return.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Accounts.ListCachedUsers">ListCachedUsers()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free , you cannot use it afterwards.

Definition at line 1498 of file dbus-accounts.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(^ao)",
                   users));
}
gchar* accounts_dup_daemon_version ( Accounts *  object)

accounts_dup_daemon_version: (skip) : A #Accounts.

Gets a copy of the <link linkend="gdbus-property-org-freedesktop-Accounts.DaemonVersion">"DaemonVersion"</link> D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Returns: (transfer full): The property value or NULL if the property is not set. The returned value should be freed with g_free().

Definition at line 894 of file dbus-accounts.c.

{
  gchar *value;
  g_object_get (G_OBJECT (object), "daemon-version", &value, NULL);
  return value;
}
void accounts_emit_user_added ( Accounts *  object,
const gchar *  arg_user 
)

accounts_emit_user_added: : A #Accounts.

: Argument to pass with the signal.

Emits the <link linkend="gdbus-signal-org-freedesktop-Accounts.UserAdded">"UserAdded"</link> D-Bus signal.

Definition at line 924 of file dbus-accounts.c.

{
  g_signal_emit_by_name (object, "user-added", arg_user);
}
void accounts_emit_user_changed ( Accounts *  object,
const gchar *  arg_user 
)

accounts_emit_user_changed: : A #Accounts.

: Argument to pass with the signal.

Emits the <link linkend="gdbus-signal-org-freedesktop-Accounts.UserChanged">"UserChanged"</link> D-Bus signal.

Definition at line 954 of file dbus-accounts.c.

{
  g_signal_emit_by_name (object, "user-changed", arg_user);
}
void accounts_emit_user_deleted ( Accounts *  object,
const gchar *  arg_user 
)

accounts_emit_user_deleted: : A #Accounts.

: Argument to pass with the signal.

Emits the <link linkend="gdbus-signal-org-freedesktop-Accounts.UserDeleted">"UserDeleted"</link> D-Bus signal.

Definition at line 939 of file dbus-accounts.c.

{
  g_signal_emit_by_name (object, "user-deleted", arg_user);
}
const gchar* accounts_get_daemon_version ( Accounts *  object)

accounts_get_daemon_version: (skip) : A #Accounts.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-Accounts.DaemonVersion">"DaemonVersion"</link> D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

<warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where was constructed. Use accounts_dup_daemon_version() if on another thread.</warning>

Returns: (transfer none): The property value or NULL if the property is not set. Do not free the returned value, it belongs to .

Definition at line 878 of file dbus-accounts.c.

{
  return ACCOUNTS_GET_IFACE (object)->get_daemon_version (object);
}
GType accounts_get_type ( void  )
GDBusInterfaceInfo* accounts_interface_info ( void  )

accounts_interface_info:

Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-Accounts.top_of_page">org.freedesktop.Accounts</link> D-Bus interface.

Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.

Definition at line 625 of file dbus-accounts.c.

{
  return (GDBusInterfaceInfo *) &_accounts_interface_info;
}

Here is the caller graph for this function:

guint accounts_override_properties ( GObjectClass *  klass,
guint  property_id_begin 
)

accounts_override_properties: : The class structure for a #GObject-derived class.

: The property id to assign to the first overridden property.

Overrides all #GObject properties in the #Accounts interface for a concrete class. The properties are overridden in the order they are defined.

Returns: The last property id.

Definition at line 641 of file dbus-accounts.c.

{
  g_object_class_override_property (klass, property_id_begin++, "daemon-version");
  return property_id_begin - 1;
}

Here is the caller graph for this function:

GType accounts_proxy_get_type ( void  )
void accounts_proxy_new ( GDBusConnection *  connection,
GDBusProxyFlags  flags,
const gchar *  name,
const gchar *  object_path,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

Definition at line 1820 of file dbus-accounts.c.

{
  g_async_initable_new_async (TYPE_ACCOUNTS_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Accounts", NULL);
}
Accounts* accounts_proxy_new_finish ( GAsyncResult *  res,
GError **  error 
)

accounts_proxy_new_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_proxy_new().

: Return location for error or NULL

Finishes an operation started with accounts_proxy_new().

Returns: (transfer full) (type AccountsProxy): The constructed proxy object or NULL if is set.

Definition at line 1842 of file dbus-accounts.c.

{
  GObject *ret;
  GObject *source_object;
  source_object = g_async_result_get_source_object (res);
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
  g_object_unref (source_object);
  if (ret != NULL)
    return ACCOUNTS (ret);
  else
    return NULL;
}
void accounts_proxy_new_for_bus ( GBusType  bus_type,
GDBusProxyFlags  flags,
const gchar *  name,
const gchar *  object_path,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

Definition at line 1910 of file dbus-accounts.c.

{
  g_async_initable_new_async (TYPE_ACCOUNTS_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Accounts", NULL);
}
Accounts* accounts_proxy_new_for_bus_finish ( GAsyncResult *  res,
GError **  error 
)

accounts_proxy_new_for_bus_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to accounts_proxy_new_for_bus().

: Return location for error or NULL

Finishes an operation started with accounts_proxy_new_for_bus().

Returns: (transfer full) (type AccountsProxy): The constructed proxy object or NULL if is set.

Definition at line 1932 of file dbus-accounts.c.

{
  GObject *ret;
  GObject *source_object;
  source_object = g_async_result_get_source_object (res);
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
  g_object_unref (source_object);
  if (ret != NULL)
    return ACCOUNTS (ret);
  else
    return NULL;
}
Accounts* accounts_proxy_new_for_bus_sync ( GBusType  bus_type,
GDBusProxyFlags  flags,
const gchar *  name,
const gchar *  object_path,
GCancellable *  cancellable,
GError **  error 
)

Definition at line 1965 of file dbus-accounts.c.

{
  GInitable *ret;
  ret = g_initable_new (TYPE_ACCOUNTS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Accounts", NULL);
  if (ret != NULL)
    return ACCOUNTS (ret);
  else
    return NULL;
}

Here is the caller graph for this function:

Accounts* accounts_proxy_new_sync ( GDBusConnection *  connection,
GDBusProxyFlags  flags,
const gchar *  name,
const gchar *  object_path,
GCancellable *  cancellable,
GError **  error 
)

Definition at line 1875 of file dbus-accounts.c.

{
  GInitable *ret;
  ret = g_initable_new (TYPE_ACCOUNTS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Accounts", NULL);
  if (ret != NULL)
    return ACCOUNTS (ret);
  else
    return NULL;
}
void accounts_set_daemon_version ( Accounts *  object,
const gchar *  value 
)

accounts_set_daemon_version: (skip) : A #Accounts.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-Accounts.DaemonVersion">"DaemonVersion"</link> D-Bus property to .

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

Definition at line 911 of file dbus-accounts.c.

{
  g_object_set (G_OBJECT (object), "daemon-version", value, NULL);
}
GType accounts_skeleton_get_type ( void  )
Accounts* accounts_skeleton_new ( void  )

accounts_skeleton_new:

Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Accounts.top_of_page">org.freedesktop.Accounts</link>.

Returns: (transfer full) (type AccountsSkeleton): The skeleton object.

Definition at line 2501 of file dbus-accounts.c.

{
  return ACCOUNTS (g_object_new (TYPE_ACCOUNTS_SKELETON, NULL));
}