Back to index

indicator-session  12.10.0
Classes | Defines | Typedefs | Functions
dbus-display-manager.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  _DisplayManagerSeatIface
struct  _DisplayManagerSeatProxy
struct  _DisplayManagerSeatProxyClass
struct  _DisplayManagerSeatSkeleton
struct  _DisplayManagerSeatSkeletonClass

Defines

#define TYPE_DISPLAY_MANAGER_SEAT   (display_manager_seat_get_type ())
#define DISPLAY_MANAGER_SEAT(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT, DisplayManagerSeat))
#define IS_DISPLAY_MANAGER_SEAT(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT))
#define DISPLAY_MANAGER_SEAT_GET_IFACE(o)   (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_DISPLAY_MANAGER_SEAT, DisplayManagerSeatIface))
#define TYPE_DISPLAY_MANAGER_SEAT_PROXY   (display_manager_seat_proxy_get_type ())
#define DISPLAY_MANAGER_SEAT_PROXY(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxy))
#define DISPLAY_MANAGER_SEAT_PROXY_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxyClass))
#define DISPLAY_MANAGER_SEAT_PROXY_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxyClass))
#define IS_DISPLAY_MANAGER_SEAT_PROXY(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY))
#define IS_DISPLAY_MANAGER_SEAT_PROXY_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DISPLAY_MANAGER_SEAT_PROXY))
#define TYPE_DISPLAY_MANAGER_SEAT_SKELETON   (display_manager_seat_skeleton_get_type ())
#define DISPLAY_MANAGER_SEAT_SKELETON(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeleton))
#define DISPLAY_MANAGER_SEAT_SKELETON_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeletonClass))
#define DISPLAY_MANAGER_SEAT_SKELETON_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeletonClass))
#define IS_DISPLAY_MANAGER_SEAT_SKELETON(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON))
#define IS_DISPLAY_MANAGER_SEAT_SKELETON_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DISPLAY_MANAGER_SEAT_SKELETON))

Typedefs

typedef struct _DisplayManagerSeat
typedef struct _DisplayManagerSeatIface
typedef struct _DisplayManagerSeatProxy
typedef struct _DisplayManagerSeatProxyClass
typedef struct _DisplayManagerSeatProxyPrivate
typedef struct _DisplayManagerSeatSkeleton
typedef struct _DisplayManagerSeatSkeletonClass
typedef struct _DisplayManagerSeatSkeletonPrivate

Functions

GType display_manager_seat_get_type (void) G_GNUC_CONST
GDBusInterfaceInfo * display_manager_seat_interface_info (void)
 display_manager_seat_interface_info:
guint display_manager_seat_override_properties (GObjectClass *klass, guint property_id_begin)
 display_manager_seat_override_properties: : The class structure for a #GObject-derived class.
void display_manager_seat_complete_switch_to_greeter (DisplayManagerSeat *object, GDBusMethodInvocation *invocation)
 display_manager_seat_complete_switch_to_greeter: : A #DisplayManagerSeat.
void display_manager_seat_complete_switch_to_user (DisplayManagerSeat *object, GDBusMethodInvocation *invocation)
 display_manager_seat_complete_switch_to_user: : A #DisplayManagerSeat.
void display_manager_seat_complete_switch_to_guest (DisplayManagerSeat *object, GDBusMethodInvocation *invocation)
 display_manager_seat_complete_switch_to_guest: : A #DisplayManagerSeat.
void display_manager_seat_complete_lock (DisplayManagerSeat *object, GDBusMethodInvocation *invocation)
 display_manager_seat_complete_lock: : A #DisplayManagerSeat.
void display_manager_seat_call_switch_to_greeter (DisplayManagerSeat *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 display_manager_seat_call_switch_to_greeter: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_switch_to_greeter_finish (DisplayManagerSeat *proxy, GAsyncResult *res, GError **error)
 display_manager_seat_call_switch_to_greeter_finish: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_switch_to_greeter_sync (DisplayManagerSeat *proxy, GCancellable *cancellable, GError **error)
 display_manager_seat_call_switch_to_greeter_sync: : A #DisplayManagerSeatProxy.
void display_manager_seat_call_switch_to_user (DisplayManagerSeat *proxy, const gchar *arg_username, const gchar *arg_session_name, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 display_manager_seat_call_switch_to_user: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_switch_to_user_finish (DisplayManagerSeat *proxy, GAsyncResult *res, GError **error)
 display_manager_seat_call_switch_to_user_finish: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_switch_to_user_sync (DisplayManagerSeat *proxy, const gchar *arg_username, const gchar *arg_session_name, GCancellable *cancellable, GError **error)
 display_manager_seat_call_switch_to_user_sync: : A #DisplayManagerSeatProxy.
void display_manager_seat_call_switch_to_guest (DisplayManagerSeat *proxy, const gchar *arg_session_name, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 display_manager_seat_call_switch_to_guest: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_switch_to_guest_finish (DisplayManagerSeat *proxy, GAsyncResult *res, GError **error)
 display_manager_seat_call_switch_to_guest_finish: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_switch_to_guest_sync (DisplayManagerSeat *proxy, const gchar *arg_session_name, GCancellable *cancellable, GError **error)
 display_manager_seat_call_switch_to_guest_sync: : A #DisplayManagerSeatProxy.
void display_manager_seat_call_lock (DisplayManagerSeat *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 display_manager_seat_call_lock: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_lock_finish (DisplayManagerSeat *proxy, GAsyncResult *res, GError **error)
 display_manager_seat_call_lock_finish: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_call_lock_sync (DisplayManagerSeat *proxy, GCancellable *cancellable, GError **error)
 display_manager_seat_call_lock_sync: : A #DisplayManagerSeatProxy.
gboolean display_manager_seat_get_can_switch (DisplayManagerSeat *object)
 display_manager_seat_get_can_switch: (skip) : A #DisplayManagerSeat.
void display_manager_seat_set_can_switch (DisplayManagerSeat *object, gboolean value)
 display_manager_seat_set_can_switch: (skip) : A #DisplayManagerSeat.
gboolean display_manager_seat_get_has_guest_account (DisplayManagerSeat *object)
 display_manager_seat_get_has_guest_account: (skip) : A #DisplayManagerSeat.
void display_manager_seat_set_has_guest_account (DisplayManagerSeat *object, gboolean value)
 display_manager_seat_set_has_guest_account: (skip) : A #DisplayManagerSeat.
const gchar *const * display_manager_seat_get_sessions (DisplayManagerSeat *object)
 display_manager_seat_get_sessions: (skip) : A #DisplayManagerSeat.
gchar ** display_manager_seat_dup_sessions (DisplayManagerSeat *object)
 display_manager_seat_dup_sessions: (skip) : A #DisplayManagerSeat.
void display_manager_seat_set_sessions (DisplayManagerSeat *object, const gchar *const *value)
 display_manager_seat_set_sessions: (skip) : A #DisplayManagerSeat.
GType display_manager_seat_proxy_get_type (void) G_GNUC_CONST
void display_manager_seat_proxy_new (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
DisplayManagerSeat * display_manager_seat_proxy_new_finish (GAsyncResult *res, GError **error)
 display_manager_seat_proxy_new_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to display_manager_seat_proxy_new().
DisplayManagerSeat * display_manager_seat_proxy_new_sync (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
void display_manager_seat_proxy_new_for_bus (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
DisplayManagerSeat * display_manager_seat_proxy_new_for_bus_finish (GAsyncResult *res, GError **error)
 display_manager_seat_proxy_new_for_bus_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to display_manager_seat_proxy_new_for_bus().
DisplayManagerSeat * display_manager_seat_proxy_new_for_bus_sync (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
GType display_manager_seat_skeleton_get_type (void) G_GNUC_CONST
DisplayManagerSeat * display_manager_seat_skeleton_new (void)
 display_manager_seat_skeleton_new:

Class Documentation

struct _DisplayManagerSeatProxy

Definition at line 182 of file dbus-display-manager.h.

Class Members
GDBusProxy parent_instance
DisplayManagerSeatProxyPrivate * priv
struct _DisplayManagerSeatProxyClass

Definition at line 189 of file dbus-display-manager.h.

Class Members
GDBusProxyClass parent_class
struct _DisplayManagerSeatSkeleton

Definition at line 248 of file dbus-display-manager.h.

Class Members
GDBusInterfaceSkeleton parent_instance
DisplayManagerSeatSkeletonPrivate * priv
struct _DisplayManagerSeatSkeletonClass

Definition at line 255 of file dbus-display-manager.h.

Class Members
GDBusInterfaceSkeletonClass parent_class

Define Documentation

#define DISPLAY_MANAGER_SEAT (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT, DisplayManagerSeat))

Definition at line 19 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_GET_IFACE (   o)    (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_DISPLAY_MANAGER_SEAT, DisplayManagerSeatIface))

Definition at line 21 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_PROXY (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxy))

Definition at line 172 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_PROXY_CLASS (   k)    (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxyClass))

Definition at line 173 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_PROXY_GET_CLASS (   o)    (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY, DisplayManagerSeatProxyClass))

Definition at line 174 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_SKELETON (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeleton))

Definition at line 238 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_SKELETON_CLASS (   k)    (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeletonClass))

Definition at line 239 of file dbus-display-manager.h.

#define DISPLAY_MANAGER_SEAT_SKELETON_GET_CLASS (   o)    (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON, DisplayManagerSeatSkeletonClass))

Definition at line 240 of file dbus-display-manager.h.

#define IS_DISPLAY_MANAGER_SEAT (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT))

Definition at line 20 of file dbus-display-manager.h.

#define IS_DISPLAY_MANAGER_SEAT_PROXY (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT_PROXY))

Definition at line 175 of file dbus-display-manager.h.

#define IS_DISPLAY_MANAGER_SEAT_PROXY_CLASS (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DISPLAY_MANAGER_SEAT_PROXY))

Definition at line 176 of file dbus-display-manager.h.

#define IS_DISPLAY_MANAGER_SEAT_SKELETON (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_DISPLAY_MANAGER_SEAT_SKELETON))

Definition at line 241 of file dbus-display-manager.h.

#define IS_DISPLAY_MANAGER_SEAT_SKELETON_CLASS (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DISPLAY_MANAGER_SEAT_SKELETON))

Definition at line 242 of file dbus-display-manager.h.

Definition at line 18 of file dbus-display-manager.h.

Definition at line 171 of file dbus-display-manager.h.

Definition at line 237 of file dbus-display-manager.h.


Typedef Documentation

typedef struct _DisplayManagerSeat

Definition at line 24 of file dbus-display-manager.h.

typedef struct _DisplayManagerSeatIface

Definition at line 25 of file dbus-display-manager.h.

typedef struct _DisplayManagerSeatProxy

Definition at line 178 of file dbus-display-manager.h.

Definition at line 179 of file dbus-display-manager.h.

Definition at line 180 of file dbus-display-manager.h.

Definition at line 244 of file dbus-display-manager.h.

Definition at line 245 of file dbus-display-manager.h.

Definition at line 246 of file dbus-display-manager.h.


Function Documentation

void display_manager_seat_call_lock ( DisplayManagerSeat *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

display_manager_seat_call_lock: : A #DisplayManagerSeatProxy.

: (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-DisplayManager-Seat.Lock">Lock()</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 display_manager_seat_call_lock_finish() to get the result of the operation.

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

Definition at line 937 of file dbus-display-manager.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Lock",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean display_manager_seat_call_lock_finish ( DisplayManagerSeat *  proxy,
GAsyncResult *  res,
GError **  error 
)

display_manager_seat_call_lock_finish: : A #DisplayManagerSeatProxy.

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

Finishes an operation started with display_manager_seat_call_lock().

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

Definition at line 964 of file dbus-display-manager.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 display_manager_seat_call_lock_sync ( DisplayManagerSeat *  proxy,
GCancellable *  cancellable,
GError **  error 
)

display_manager_seat_call_lock_sync: : A #DisplayManagerSeatProxy.

: (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

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

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

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

Definition at line 993 of file dbus-display-manager.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Lock",
    g_variant_new ("()"),
    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 display_manager_seat_call_switch_to_greeter ( DisplayManagerSeat *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

display_manager_seat_call_switch_to_greeter: : A #DisplayManagerSeatProxy.

: (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-DisplayManager-Seat.SwitchToGreeter">SwitchToGreeter()</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 display_manager_seat_call_switch_to_greeter_finish() to get the result of the operation.

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

Definition at line 643 of file dbus-display-manager.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SwitchToGreeter",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean display_manager_seat_call_switch_to_greeter_finish ( DisplayManagerSeat *  proxy,
GAsyncResult *  res,
GError **  error 
)

display_manager_seat_call_switch_to_greeter_finish: : A #DisplayManagerSeatProxy.

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

Finishes an operation started with display_manager_seat_call_switch_to_greeter().

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

Definition at line 670 of file dbus-display-manager.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 display_manager_seat_call_switch_to_greeter_sync ( DisplayManagerSeat *  proxy,
GCancellable *  cancellable,
GError **  error 
)

display_manager_seat_call_switch_to_greeter_sync: : A #DisplayManagerSeatProxy.

: (allow-none): A #GCancellable or NULL. : Return location for error or NULL.

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

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

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

Definition at line 699 of file dbus-display-manager.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SwitchToGreeter",
    g_variant_new ("()"),
    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;
}

Here is the caller graph for this function:

void display_manager_seat_call_switch_to_guest ( DisplayManagerSeat *  proxy,
const gchar *  arg_session_name,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

display_manager_seat_call_switch_to_guest: : A #DisplayManagerSeatProxy.

: 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-DisplayManager-Seat.SwitchToGuest">SwitchToGuest()</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 display_manager_seat_call_switch_to_guest_finish() to get the result of the operation.

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

Definition at line 840 of file dbus-display-manager.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SwitchToGuest",
    g_variant_new ("(s)",
                   arg_session_name),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean display_manager_seat_call_switch_to_guest_finish ( DisplayManagerSeat *  proxy,
GAsyncResult *  res,
GError **  error 
)

display_manager_seat_call_switch_to_guest_finish: : A #DisplayManagerSeatProxy.

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

Finishes an operation started with display_manager_seat_call_switch_to_guest().

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

Definition at line 869 of file dbus-display-manager.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 display_manager_seat_call_switch_to_guest_sync ( DisplayManagerSeat *  proxy,
const gchar *  arg_session_name,
GCancellable *  cancellable,
GError **  error 
)

display_manager_seat_call_switch_to_guest_sync: : A #DisplayManagerSeatProxy.

: 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-DisplayManager-Seat.SwitchToGuest">SwitchToGuest()</link> D-Bus method on . The calling thread is blocked until a reply is received.

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

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

Definition at line 899 of file dbus-display-manager.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SwitchToGuest",
    g_variant_new ("(s)",
                   arg_session_name),
    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;
}

Here is the caller graph for this function:

void display_manager_seat_call_switch_to_user ( DisplayManagerSeat *  proxy,
const gchar *  arg_username,
const gchar *  arg_session_name,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

display_manager_seat_call_switch_to_user: : A #DisplayManagerSeatProxy.

: 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-DisplayManager-Seat.SwitchToUser">SwitchToUser()</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 display_manager_seat_call_switch_to_user_finish() to get the result of the operation.

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

Definition at line 737 of file dbus-display-manager.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SwitchToUser",
    g_variant_new ("(ss)",
                   arg_username,
                   arg_session_name),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean display_manager_seat_call_switch_to_user_finish ( DisplayManagerSeat *  proxy,
GAsyncResult *  res,
GError **  error 
)

display_manager_seat_call_switch_to_user_finish: : A #DisplayManagerSeatProxy.

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

Finishes an operation started with display_manager_seat_call_switch_to_user().

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

Definition at line 768 of file dbus-display-manager.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 display_manager_seat_call_switch_to_user_sync ( DisplayManagerSeat *  proxy,
const gchar *  arg_username,
const gchar *  arg_session_name,
GCancellable *  cancellable,
GError **  error 
)

display_manager_seat_call_switch_to_user_sync: : A #DisplayManagerSeatProxy.

: 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-DisplayManager-Seat.SwitchToUser">SwitchToUser()</link> D-Bus method on . The calling thread is blocked until a reply is received.

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

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

Definition at line 799 of file dbus-display-manager.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SwitchToUser",
    g_variant_new ("(ss)",
                   arg_username,
                   arg_session_name),
    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;
}

Here is the caller graph for this function:

void display_manager_seat_complete_lock ( DisplayManagerSeat *  object,
GDBusMethodInvocation *  invocation 
)

display_manager_seat_complete_lock: : A #DisplayManagerSeat.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DisplayManager-Seat.Lock">Lock()</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 1079 of file dbus-display-manager.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void display_manager_seat_complete_switch_to_greeter ( DisplayManagerSeat *  object,
GDBusMethodInvocation *  invocation 
)

display_manager_seat_complete_switch_to_greeter: : A #DisplayManagerSeat.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DisplayManager-Seat.SwitchToGreeter">SwitchToGreeter()</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 1025 of file dbus-display-manager.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void display_manager_seat_complete_switch_to_guest ( DisplayManagerSeat *  object,
GDBusMethodInvocation *  invocation 
)

display_manager_seat_complete_switch_to_guest: : A #DisplayManagerSeat.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DisplayManager-Seat.SwitchToGuest">SwitchToGuest()</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 1061 of file dbus-display-manager.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void display_manager_seat_complete_switch_to_user ( DisplayManagerSeat *  object,
GDBusMethodInvocation *  invocation 
)

display_manager_seat_complete_switch_to_user: : A #DisplayManagerSeat.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-DisplayManager-Seat.SwitchToUser">SwitchToUser()</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 1043 of file dbus-display-manager.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
gchar** display_manager_seat_dup_sessions ( DisplayManagerSeat *  object)

display_manager_seat_dup_sessions: (skip) : A #DisplayManagerSeat.

Gets a copy of the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.Sessions">"Sessions"</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_strfreev().

Definition at line 607 of file dbus-display-manager.c.

{
  gchar **value;
  g_object_get (G_OBJECT (object), "sessions", &value, NULL);
  return value;
}
gboolean display_manager_seat_get_can_switch ( DisplayManagerSeat *  object)

display_manager_seat_get_can_switch: (skip) : A #DisplayManagerSeat.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.CanSwitch">"CanSwitch"</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: The property value.

Definition at line 527 of file dbus-display-manager.c.

{
  return DISPLAY_MANAGER_SEAT_GET_IFACE (object)->get_can_switch (object);
}
gboolean display_manager_seat_get_has_guest_account ( DisplayManagerSeat *  object)

display_manager_seat_get_has_guest_account: (skip) : A #DisplayManagerSeat.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.HasGuestAccount">"HasGuestAccount"</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: The property value.

Definition at line 558 of file dbus-display-manager.c.

{
  return DISPLAY_MANAGER_SEAT_GET_IFACE (object)->get_has_guest_account (object);
}

Here is the caller graph for this function:

const gchar* const* display_manager_seat_get_sessions ( DisplayManagerSeat *  object)

display_manager_seat_get_sessions: (skip) : A #DisplayManagerSeat.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.Sessions">"Sessions"</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 display_manager_seat_dup_sessions() 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 591 of file dbus-display-manager.c.

{
  return DISPLAY_MANAGER_SEAT_GET_IFACE (object)->get_sessions (object);
}
GDBusInterfaceInfo* display_manager_seat_interface_info ( void  )

display_manager_seat_interface_info:

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

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

Definition at line 342 of file dbus-display-manager.c.

{
  return (GDBusInterfaceInfo *) &_display_manager_seat_interface_info;
}

Here is the caller graph for this function:

guint display_manager_seat_override_properties ( GObjectClass *  klass,
guint  property_id_begin 
)

display_manager_seat_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 #DisplayManagerSeat interface for a concrete class. The properties are overridden in the order they are defined.

Returns: The last property id.

Definition at line 358 of file dbus-display-manager.c.

{
  g_object_class_override_property (klass, property_id_begin++, "can-switch");
  g_object_class_override_property (klass, property_id_begin++, "has-guest-account");
  g_object_class_override_property (klass, property_id_begin++, "sessions");
  return property_id_begin - 1;
}

Here is the caller graph for this function:

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

Definition at line 1350 of file dbus-display-manager.c.

{
  g_async_initable_new_async (TYPE_DISPLAY_MANAGER_SEAT_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.DisplayManager.Seat", NULL);
}
DisplayManagerSeat* display_manager_seat_proxy_new_finish ( GAsyncResult *  res,
GError **  error 
)

display_manager_seat_proxy_new_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to display_manager_seat_proxy_new().

: Return location for error or NULL

Finishes an operation started with display_manager_seat_proxy_new().

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

Definition at line 1372 of file dbus-display-manager.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 DISPLAY_MANAGER_SEAT (ret);
  else
    return NULL;
}
void display_manager_seat_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 1440 of file dbus-display-manager.c.

{
  g_async_initable_new_async (TYPE_DISPLAY_MANAGER_SEAT_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.DisplayManager.Seat", NULL);
}
DisplayManagerSeat* display_manager_seat_proxy_new_for_bus_finish ( GAsyncResult *  res,
GError **  error 
)

display_manager_seat_proxy_new_for_bus_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to display_manager_seat_proxy_new_for_bus().

: Return location for error or NULL

Finishes an operation started with display_manager_seat_proxy_new_for_bus().

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

Definition at line 1462 of file dbus-display-manager.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 DISPLAY_MANAGER_SEAT (ret);
  else
    return NULL;
}
DisplayManagerSeat* display_manager_seat_proxy_new_for_bus_sync ( GBusType  bus_type,
GDBusProxyFlags  flags,
const gchar *  name,
const gchar *  object_path,
GCancellable *  cancellable,
GError **  error 
)

Definition at line 1495 of file dbus-display-manager.c.

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

Here is the caller graph for this function:

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

Definition at line 1405 of file dbus-display-manager.c.

{
  GInitable *ret;
  ret = g_initable_new (TYPE_DISPLAY_MANAGER_SEAT_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.DisplayManager.Seat", NULL);
  if (ret != NULL)
    return DISPLAY_MANAGER_SEAT (ret);
  else
    return NULL;
}
void display_manager_seat_set_can_switch ( DisplayManagerSeat *  object,
gboolean  value 
)

display_manager_seat_set_can_switch: (skip) : A #DisplayManagerSeat.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.CanSwitch">"CanSwitch"</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 542 of file dbus-display-manager.c.

{
  g_object_set (G_OBJECT (object), "can-switch", value, NULL);
}
void display_manager_seat_set_has_guest_account ( DisplayManagerSeat *  object,
gboolean  value 
)

display_manager_seat_set_has_guest_account: (skip) : A #DisplayManagerSeat.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.HasGuestAccount">"HasGuestAccount"</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 573 of file dbus-display-manager.c.

{
  g_object_set (G_OBJECT (object), "has-guest-account", value, NULL);
}
void display_manager_seat_set_sessions ( DisplayManagerSeat *  object,
const gchar *const *  value 
)

display_manager_seat_set_sessions: (skip) : A #DisplayManagerSeat.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-DisplayManager-Seat.Sessions">"Sessions"</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 624 of file dbus-display-manager.c.

{
  g_object_set (G_OBJECT (object), "sessions", value, NULL);
}
DisplayManagerSeat* display_manager_seat_skeleton_new ( void  )

display_manager_seat_skeleton_new:

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

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

Definition at line 1982 of file dbus-display-manager.c.

{
  return DISPLAY_MANAGER_SEAT (g_object_new (TYPE_DISPLAY_MANAGER_SEAT_SKELETON, NULL));
}