Back to index

indicator-session  12.10.0
Classes | Defines | Typedefs | Functions
dbus-upower.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  _DBusUPowerIface
struct  _DBusUPowerProxy
struct  _DBusUPowerProxyClass
struct  _DBusUPowerSkeleton
struct  _DBusUPowerSkeletonClass

Defines

#define DBUS_TYPE_UPOWER   (dbus_upower_get_type ())
#define DBUS_UPOWER(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_UPOWER, DBusUPower))
#define DBUS_IS_UPOWER(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_UPOWER))
#define DBUS_UPOWER_GET_IFACE(o)   (G_TYPE_INSTANCE_GET_INTERFACE ((o), DBUS_TYPE_UPOWER, DBusUPowerIface))
#define DBUS_TYPE_UPOWER_PROXY   (dbus_upower_proxy_get_type ())
#define DBUS_UPOWER_PROXY(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_UPOWER_PROXY, DBusUPowerProxy))
#define DBUS_UPOWER_PROXY_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), DBUS_TYPE_UPOWER_PROXY, DBusUPowerProxyClass))
#define DBUS_UPOWER_PROXY_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), DBUS_TYPE_UPOWER_PROXY, DBusUPowerProxyClass))
#define DBUS_IS_UPOWER_PROXY(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_UPOWER_PROXY))
#define DBUS_IS_UPOWER_PROXY_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), DBUS_TYPE_UPOWER_PROXY))
#define DBUS_TYPE_UPOWER_SKELETON   (dbus_upower_skeleton_get_type ())
#define DBUS_UPOWER_SKELETON(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_UPOWER_SKELETON, DBusUPowerSkeleton))
#define DBUS_UPOWER_SKELETON_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), DBUS_TYPE_UPOWER_SKELETON, DBusUPowerSkeletonClass))
#define DBUS_UPOWER_SKELETON_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), DBUS_TYPE_UPOWER_SKELETON, DBusUPowerSkeletonClass))
#define DBUS_IS_UPOWER_SKELETON(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_UPOWER_SKELETON))
#define DBUS_IS_UPOWER_SKELETON_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), DBUS_TYPE_UPOWER_SKELETON))

Typedefs

typedef struct _DBusUPower
typedef struct _DBusUPowerIface
typedef struct _DBusUPowerProxy
typedef struct _DBusUPowerProxyClass
typedef struct _DBusUPowerProxyPrivate
typedef struct _DBusUPowerSkeleton
typedef struct _DBusUPowerSkeletonClass
typedef struct _DBusUPowerSkeletonPrivate

Functions

GType dbus_upower_get_type (void) G_GNUC_CONST
GDBusInterfaceInfo * dbus_upower_interface_info (void)
 dbus_upower_interface_info:
guint dbus_upower_override_properties (GObjectClass *klass, guint property_id_begin)
 dbus_upower_override_properties: : The class structure for a #GObject-derived class.
void dbus_upower_complete_enumerate_devices (DBusUPower *object, GDBusMethodInvocation *invocation, const gchar *const *devices)
 dbus_upower_complete_enumerate_devices: : A #DBusUPower.
void dbus_upower_complete_about_to_sleep (DBusUPower *object, GDBusMethodInvocation *invocation)
 dbus_upower_complete_about_to_sleep: : A #DBusUPower.
void dbus_upower_complete_suspend (DBusUPower *object, GDBusMethodInvocation *invocation)
 dbus_upower_complete_suspend: : A #DBusUPower.
void dbus_upower_complete_suspend_allowed (DBusUPower *object, GDBusMethodInvocation *invocation, gboolean allowed)
 dbus_upower_complete_suspend_allowed: : A #DBusUPower.
void dbus_upower_complete_hibernate (DBusUPower *object, GDBusMethodInvocation *invocation)
 dbus_upower_complete_hibernate: : A #DBusUPower.
void dbus_upower_complete_hibernate_allowed (DBusUPower *object, GDBusMethodInvocation *invocation, gboolean allowed)
 dbus_upower_complete_hibernate_allowed: : A #DBusUPower.
void dbus_upower_emit_device_added (DBusUPower *object, const gchar *arg_device)
 dbus_upower_emit_device_added: : A #DBusUPower.
void dbus_upower_emit_device_removed (DBusUPower *object, const gchar *arg_device)
 dbus_upower_emit_device_removed: : A #DBusUPower.
void dbus_upower_emit_device_changed (DBusUPower *object, const gchar *arg_device)
 dbus_upower_emit_device_changed: : A #DBusUPower.
void dbus_upower_emit_changed (DBusUPower *object)
 dbus_upower_emit_changed: : A #DBusUPower.
void dbus_upower_emit_sleeping (DBusUPower *object)
 dbus_upower_emit_sleeping: : A #DBusUPower.
void dbus_upower_emit_resuming (DBusUPower *object)
 dbus_upower_emit_resuming: : A #DBusUPower.
void dbus_upower_call_enumerate_devices (DBusUPower *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 dbus_upower_call_enumerate_devices: : A #DBusUPowerProxy.
gboolean dbus_upower_call_enumerate_devices_finish (DBusUPower *proxy, gchar ***out_devices, GAsyncResult *res, GError **error)
 dbus_upower_call_enumerate_devices_finish: : A #DBusUPowerProxy.
gboolean dbus_upower_call_enumerate_devices_sync (DBusUPower *proxy, gchar ***out_devices, GCancellable *cancellable, GError **error)
 dbus_upower_call_enumerate_devices_sync: : A #DBusUPowerProxy.
void dbus_upower_call_about_to_sleep (DBusUPower *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 dbus_upower_call_about_to_sleep: : A #DBusUPowerProxy.
gboolean dbus_upower_call_about_to_sleep_finish (DBusUPower *proxy, GAsyncResult *res, GError **error)
 dbus_upower_call_about_to_sleep_finish: : A #DBusUPowerProxy.
gboolean dbus_upower_call_about_to_sleep_sync (DBusUPower *proxy, GCancellable *cancellable, GError **error)
 dbus_upower_call_about_to_sleep_sync: : A #DBusUPowerProxy.
void dbus_upower_call_suspend (DBusUPower *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 dbus_upower_call_suspend: : A #DBusUPowerProxy.
gboolean dbus_upower_call_suspend_finish (DBusUPower *proxy, GAsyncResult *res, GError **error)
 dbus_upower_call_suspend_finish: : A #DBusUPowerProxy.
gboolean dbus_upower_call_suspend_sync (DBusUPower *proxy, GCancellable *cancellable, GError **error)
 dbus_upower_call_suspend_sync: : A #DBusUPowerProxy.
void dbus_upower_call_suspend_allowed (DBusUPower *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 dbus_upower_call_suspend_allowed: : A #DBusUPowerProxy.
gboolean dbus_upower_call_suspend_allowed_finish (DBusUPower *proxy, gboolean *out_allowed, GAsyncResult *res, GError **error)
 dbus_upower_call_suspend_allowed_finish: : A #DBusUPowerProxy.
gboolean dbus_upower_call_suspend_allowed_sync (DBusUPower *proxy, gboolean *out_allowed, GCancellable *cancellable, GError **error)
 dbus_upower_call_suspend_allowed_sync: : A #DBusUPowerProxy.
void dbus_upower_call_hibernate (DBusUPower *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 dbus_upower_call_hibernate: : A #DBusUPowerProxy.
gboolean dbus_upower_call_hibernate_finish (DBusUPower *proxy, GAsyncResult *res, GError **error)
 dbus_upower_call_hibernate_finish: : A #DBusUPowerProxy.
gboolean dbus_upower_call_hibernate_sync (DBusUPower *proxy, GCancellable *cancellable, GError **error)
 dbus_upower_call_hibernate_sync: : A #DBusUPowerProxy.
void dbus_upower_call_hibernate_allowed (DBusUPower *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 dbus_upower_call_hibernate_allowed: : A #DBusUPowerProxy.
gboolean dbus_upower_call_hibernate_allowed_finish (DBusUPower *proxy, gboolean *out_allowed, GAsyncResult *res, GError **error)
 dbus_upower_call_hibernate_allowed_finish: : A #DBusUPowerProxy.
gboolean dbus_upower_call_hibernate_allowed_sync (DBusUPower *proxy, gboolean *out_allowed, GCancellable *cancellable, GError **error)
 dbus_upower_call_hibernate_allowed_sync: : A #DBusUPowerProxy.
const gchar * dbus_upower_get_daemon_version (DBusUPower *object)
 dbus_upower_get_daemon_version: (skip) : A #DBusUPower.
gchar * dbus_upower_dup_daemon_version (DBusUPower *object)
 dbus_upower_dup_daemon_version: (skip) : A #DBusUPower.
void dbus_upower_set_daemon_version (DBusUPower *object, const gchar *value)
 dbus_upower_set_daemon_version: (skip) : A #DBusUPower.
gboolean dbus_upower_get_can_suspend (DBusUPower *object)
 dbus_upower_get_can_suspend: (skip) : A #DBusUPower.
void dbus_upower_set_can_suspend (DBusUPower *object, gboolean value)
 dbus_upower_set_can_suspend: (skip) : A #DBusUPower.
gboolean dbus_upower_get_can_hibernate (DBusUPower *object)
 dbus_upower_get_can_hibernate: (skip) : A #DBusUPower.
void dbus_upower_set_can_hibernate (DBusUPower *object, gboolean value)
 dbus_upower_set_can_hibernate: (skip) : A #DBusUPower.
gboolean dbus_upower_get_on_battery (DBusUPower *object)
 dbus_upower_get_on_battery: (skip) : A #DBusUPower.
void dbus_upower_set_on_battery (DBusUPower *object, gboolean value)
 dbus_upower_set_on_battery: (skip) : A #DBusUPower.
gboolean dbus_upower_get_on_low_battery (DBusUPower *object)
 dbus_upower_get_on_low_battery: (skip) : A #DBusUPower.
void dbus_upower_set_on_low_battery (DBusUPower *object, gboolean value)
 dbus_upower_set_on_low_battery: (skip) : A #DBusUPower.
gboolean dbus_upower_get_lid_is_closed (DBusUPower *object)
 dbus_upower_get_lid_is_closed: (skip) : A #DBusUPower.
void dbus_upower_set_lid_is_closed (DBusUPower *object, gboolean value)
 dbus_upower_set_lid_is_closed: (skip) : A #DBusUPower.
gboolean dbus_upower_get_lid_is_present (DBusUPower *object)
 dbus_upower_get_lid_is_present: (skip) : A #DBusUPower.
void dbus_upower_set_lid_is_present (DBusUPower *object, gboolean value)
 dbus_upower_set_lid_is_present: (skip) : A #DBusUPower.
GType dbus_upower_proxy_get_type (void) G_GNUC_CONST
void dbus_upower_proxy_new (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
DBusUPower * dbus_upower_proxy_new_finish (GAsyncResult *res, GError **error)
 dbus_upower_proxy_new_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to dbus_upower_proxy_new().
DBusUPower * dbus_upower_proxy_new_sync (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
void dbus_upower_proxy_new_for_bus (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
DBusUPower * dbus_upower_proxy_new_for_bus_finish (GAsyncResult *res, GError **error)
 dbus_upower_proxy_new_for_bus_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to dbus_upower_proxy_new_for_bus().
DBusUPower * dbus_upower_proxy_new_for_bus_sync (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
GType dbus_upower_skeleton_get_type (void) G_GNUC_CONST
DBusUPower * dbus_upower_skeleton_new (void)
 dbus_upower_skeleton_new:

Class Documentation

struct _DBusUPowerProxy

Definition at line 296 of file dbus-upower.h.

Class Members
GDBusProxy parent_instance
DBusUPowerProxyPrivate * priv
struct _DBusUPowerProxyClass

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

Class Members
GDBusProxyClass parent_class
struct _DBusUPowerSkeleton

Definition at line 362 of file dbus-upower.h.

Class Members
GDBusInterfaceSkeleton parent_instance
DBusUPowerSkeletonPrivate * priv
struct _DBusUPowerSkeletonClass

Definition at line 369 of file dbus-upower.h.

Class Members
GDBusInterfaceSkeletonClass parent_class

Define Documentation

#define DBUS_IS_UPOWER (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_UPOWER))

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

#define DBUS_IS_UPOWER_PROXY (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_UPOWER_PROXY))

Definition at line 289 of file dbus-upower.h.

#define DBUS_IS_UPOWER_PROXY_CLASS (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), DBUS_TYPE_UPOWER_PROXY))

Definition at line 290 of file dbus-upower.h.

#define DBUS_IS_UPOWER_SKELETON (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), DBUS_TYPE_UPOWER_SKELETON))

Definition at line 355 of file dbus-upower.h.

#define DBUS_IS_UPOWER_SKELETON_CLASS (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), DBUS_TYPE_UPOWER_SKELETON))

Definition at line 356 of file dbus-upower.h.

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

Definition at line 285 of file dbus-upower.h.

Definition at line 351 of file dbus-upower.h.

#define DBUS_UPOWER (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_UPOWER, DBusUPower))

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

#define DBUS_UPOWER_GET_IFACE (   o)    (G_TYPE_INSTANCE_GET_INTERFACE ((o), DBUS_TYPE_UPOWER, DBusUPowerIface))

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

#define DBUS_UPOWER_PROXY (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_UPOWER_PROXY, DBusUPowerProxy))

Definition at line 286 of file dbus-upower.h.

#define DBUS_UPOWER_PROXY_CLASS (   k)    (G_TYPE_CHECK_CLASS_CAST ((k), DBUS_TYPE_UPOWER_PROXY, DBusUPowerProxyClass))

Definition at line 287 of file dbus-upower.h.

#define DBUS_UPOWER_PROXY_GET_CLASS (   o)    (G_TYPE_INSTANCE_GET_CLASS ((o), DBUS_TYPE_UPOWER_PROXY, DBusUPowerProxyClass))

Definition at line 288 of file dbus-upower.h.

#define DBUS_UPOWER_SKELETON (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), DBUS_TYPE_UPOWER_SKELETON, DBusUPowerSkeleton))

Definition at line 352 of file dbus-upower.h.

#define DBUS_UPOWER_SKELETON_CLASS (   k)    (G_TYPE_CHECK_CLASS_CAST ((k), DBUS_TYPE_UPOWER_SKELETON, DBusUPowerSkeletonClass))

Definition at line 353 of file dbus-upower.h.

#define DBUS_UPOWER_SKELETON_GET_CLASS (   o)    (G_TYPE_INSTANCE_GET_CLASS ((o), DBUS_TYPE_UPOWER_SKELETON, DBusUPowerSkeletonClass))

Definition at line 354 of file dbus-upower.h.


Typedef Documentation

typedef struct _DBusUPower

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

typedef struct _DBusUPowerIface

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

typedef struct _DBusUPowerProxy

Definition at line 292 of file dbus-upower.h.

typedef struct _DBusUPowerProxyClass

Definition at line 293 of file dbus-upower.h.

typedef struct _DBusUPowerProxyPrivate

Definition at line 294 of file dbus-upower.h.

typedef struct _DBusUPowerSkeleton

Definition at line 358 of file dbus-upower.h.

typedef struct _DBusUPowerSkeletonClass

Definition at line 359 of file dbus-upower.h.

Definition at line 360 of file dbus-upower.h.


Function Documentation

void dbus_upower_call_about_to_sleep ( DBusUPower *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

dbus_upower_call_about_to_sleep: : A #DBusUPowerProxy.

: (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-UPower.AboutToSleep">AboutToSleep()</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 dbus_upower_call_about_to_sleep_finish() to get the result of the operation.

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

Definition at line 1455 of file dbus-upower.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "AboutToSleep",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean dbus_upower_call_about_to_sleep_finish ( DBusUPower *  proxy,
GAsyncResult *  res,
GError **  error 
)

dbus_upower_call_about_to_sleep_finish: : A #DBusUPowerProxy.

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

Finishes an operation started with dbus_upower_call_about_to_sleep().

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

Definition at line 1482 of file dbus-upower.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 dbus_upower_call_about_to_sleep_sync ( DBusUPower *  proxy,
GCancellable *  cancellable,
GError **  error 
)

dbus_upower_call_about_to_sleep_sync: : A #DBusUPowerProxy.

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

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

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

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

Definition at line 1511 of file dbus-upower.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "AboutToSleep",
    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 dbus_upower_call_enumerate_devices ( DBusUPower *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

dbus_upower_call_enumerate_devices: : A #DBusUPowerProxy.

: (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-UPower.EnumerateDevices">EnumerateDevices()</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 dbus_upower_call_enumerate_devices_finish() to get the result of the operation.

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

Definition at line 1357 of file dbus-upower.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "EnumerateDevices",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean dbus_upower_call_enumerate_devices_finish ( DBusUPower *  proxy,
gchar ***  out_devices,
GAsyncResult *  res,
GError **  error 
)

dbus_upower_call_enumerate_devices_finish: : A #DBusUPowerProxy.

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

Finishes an operation started with dbus_upower_call_enumerate_devices().

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

Definition at line 1385 of file dbus-upower.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_devices);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean dbus_upower_call_enumerate_devices_sync ( DBusUPower *  proxy,
gchar ***  out_devices,
GCancellable *  cancellable,
GError **  error 
)

dbus_upower_call_enumerate_devices_sync: : A #DBusUPowerProxy.

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

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

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

Definition at line 1417 of file dbus-upower.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "EnumerateDevices",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^ao)",
                 out_devices);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
void dbus_upower_call_hibernate ( DBusUPower *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

dbus_upower_call_hibernate: : A #DBusUPowerProxy.

: (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-UPower.Hibernate">Hibernate()</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 dbus_upower_call_hibernate_finish() to get the result of the operation.

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

Definition at line 1737 of file dbus-upower.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Hibernate",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
void dbus_upower_call_hibernate_allowed ( DBusUPower *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

dbus_upower_call_hibernate_allowed: : A #DBusUPowerProxy.

: (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-UPower.HibernateAllowed">HibernateAllowed()</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 dbus_upower_call_hibernate_allowed_finish() to get the result of the operation.

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

Definition at line 1829 of file dbus-upower.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "HibernateAllowed",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean dbus_upower_call_hibernate_allowed_finish ( DBusUPower *  proxy,
gboolean *  out_allowed,
GAsyncResult *  res,
GError **  error 
)

dbus_upower_call_hibernate_allowed_finish: : A #DBusUPowerProxy.

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

Finishes an operation started with dbus_upower_call_hibernate_allowed().

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

Definition at line 1857 of file dbus-upower.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(b)",
                 out_allowed);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean dbus_upower_call_hibernate_allowed_sync ( DBusUPower *  proxy,
gboolean *  out_allowed,
GCancellable *  cancellable,
GError **  error 
)

dbus_upower_call_hibernate_allowed_sync: : A #DBusUPowerProxy.

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

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

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

Definition at line 1889 of file dbus-upower.c.

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

Here is the caller graph for this function:

gboolean dbus_upower_call_hibernate_finish ( DBusUPower *  proxy,
GAsyncResult *  res,
GError **  error 
)

dbus_upower_call_hibernate_finish: : A #DBusUPowerProxy.

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

Finishes an operation started with dbus_upower_call_hibernate().

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

Definition at line 1764 of file dbus-upower.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 dbus_upower_call_hibernate_sync ( DBusUPower *  proxy,
GCancellable *  cancellable,
GError **  error 
)

dbus_upower_call_hibernate_sync: : A #DBusUPowerProxy.

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

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

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

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

Definition at line 1793 of file dbus-upower.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Hibernate",
    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 dbus_upower_call_suspend ( DBusUPower *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

dbus_upower_call_suspend: : A #DBusUPowerProxy.

: (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-UPower.Suspend">Suspend()</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 dbus_upower_call_suspend_finish() to get the result of the operation.

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

Definition at line 1547 of file dbus-upower.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Suspend",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
void dbus_upower_call_suspend_allowed ( DBusUPower *  proxy,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

dbus_upower_call_suspend_allowed: : A #DBusUPowerProxy.

: (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-UPower.SuspendAllowed">SuspendAllowed()</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 dbus_upower_call_suspend_allowed_finish() to get the result of the operation.

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

Definition at line 1639 of file dbus-upower.c.

{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SuspendAllowed",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}
gboolean dbus_upower_call_suspend_allowed_finish ( DBusUPower *  proxy,
gboolean *  out_allowed,
GAsyncResult *  res,
GError **  error 
)

dbus_upower_call_suspend_allowed_finish: : A #DBusUPowerProxy.

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

Finishes an operation started with dbus_upower_call_suspend_allowed().

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

Definition at line 1667 of file dbus-upower.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(b)",
                 out_allowed);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}
gboolean dbus_upower_call_suspend_allowed_sync ( DBusUPower *  proxy,
gboolean *  out_allowed,
GCancellable *  cancellable,
GError **  error 
)

dbus_upower_call_suspend_allowed_sync: : A #DBusUPowerProxy.

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

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

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

Definition at line 1699 of file dbus-upower.c.

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

Here is the caller graph for this function:

gboolean dbus_upower_call_suspend_finish ( DBusUPower *  proxy,
GAsyncResult *  res,
GError **  error 
)

dbus_upower_call_suspend_finish: : A #DBusUPowerProxy.

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

Finishes an operation started with dbus_upower_call_suspend().

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

Definition at line 1574 of file dbus-upower.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 dbus_upower_call_suspend_sync ( DBusUPower *  proxy,
GCancellable *  cancellable,
GError **  error 
)

dbus_upower_call_suspend_sync: : A #DBusUPowerProxy.

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

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

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

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

Definition at line 1603 of file dbus-upower.c.

{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Suspend",
    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 dbus_upower_complete_about_to_sleep ( DBusUPower *  object,
GDBusMethodInvocation *  invocation 
)

dbus_upower_complete_about_to_sleep: : A #DBusUPower.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UPower.AboutToSleep">AboutToSleep()</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 1944 of file dbus-upower.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void dbus_upower_complete_enumerate_devices ( DBusUPower *  object,
GDBusMethodInvocation *  invocation,
const gchar *const *  devices 
)

dbus_upower_complete_enumerate_devices: : A #DBusUPower.

: (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-UPower.EnumerateDevices">EnumerateDevices()</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 1924 of file dbus-upower.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(^ao)",
                   devices));
}
void dbus_upower_complete_hibernate ( DBusUPower *  object,
GDBusMethodInvocation *  invocation 
)

dbus_upower_complete_hibernate: : A #DBusUPower.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UPower.Hibernate">Hibernate()</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 2001 of file dbus-upower.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void dbus_upower_complete_hibernate_allowed ( DBusUPower *  object,
GDBusMethodInvocation *  invocation,
gboolean  allowed 
)

dbus_upower_complete_hibernate_allowed: : A #DBusUPower.

: (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-UPower.HibernateAllowed">HibernateAllowed()</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 2020 of file dbus-upower.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(b)",
                   allowed));
}
void dbus_upower_complete_suspend ( DBusUPower *  object,
GDBusMethodInvocation *  invocation 
)

dbus_upower_complete_suspend: : A #DBusUPower.

: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-UPower.Suspend">Suspend()</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 1962 of file dbus-upower.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}
void dbus_upower_complete_suspend_allowed ( DBusUPower *  object,
GDBusMethodInvocation *  invocation,
gboolean  allowed 
)

dbus_upower_complete_suspend_allowed: : A #DBusUPower.

: (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-UPower.SuspendAllowed">SuspendAllowed()</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 1981 of file dbus-upower.c.

{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(b)",
                   allowed));
}
gchar* dbus_upower_dup_daemon_version ( DBusUPower *  object)

dbus_upower_dup_daemon_version: (skip) : A #DBusUPower.

Gets a copy of the <link linkend="gdbus-property-org-freedesktop-UPower.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 1051 of file dbus-upower.c.

{
  gchar *value;
  g_object_get (G_OBJECT (object), "daemon-version", &value, NULL);
  return value;
}
void dbus_upower_emit_changed ( DBusUPower *  object)

dbus_upower_emit_changed: : A #DBusUPower.

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

Definition at line 1311 of file dbus-upower.c.

{
  g_signal_emit_by_name (object, "changed");
}
void dbus_upower_emit_device_added ( DBusUPower *  object,
const gchar *  arg_device 
)

dbus_upower_emit_device_added: : A #DBusUPower.

: Argument to pass with the signal.

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

Definition at line 1267 of file dbus-upower.c.

{
  g_signal_emit_by_name (object, "device-added", arg_device);
}
void dbus_upower_emit_device_changed ( DBusUPower *  object,
const gchar *  arg_device 
)

dbus_upower_emit_device_changed: : A #DBusUPower.

: Argument to pass with the signal.

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

Definition at line 1297 of file dbus-upower.c.

{
  g_signal_emit_by_name (object, "device-changed", arg_device);
}
void dbus_upower_emit_device_removed ( DBusUPower *  object,
const gchar *  arg_device 
)

dbus_upower_emit_device_removed: : A #DBusUPower.

: Argument to pass with the signal.

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

Definition at line 1282 of file dbus-upower.c.

{
  g_signal_emit_by_name (object, "device-removed", arg_device);
}
void dbus_upower_emit_resuming ( DBusUPower *  object)

dbus_upower_emit_resuming: : A #DBusUPower.

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

Definition at line 1337 of file dbus-upower.c.

{
  g_signal_emit_by_name (object, "resuming");
}
void dbus_upower_emit_sleeping ( DBusUPower *  object)

dbus_upower_emit_sleeping: : A #DBusUPower.

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

Definition at line 1324 of file dbus-upower.c.

{
  g_signal_emit_by_name (object, "sleeping");
}
gboolean dbus_upower_get_can_hibernate ( DBusUPower *  object)

dbus_upower_get_can_hibernate: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.CanHibernate">"CanHibernate"</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 1115 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_can_hibernate (object);
}

Here is the caller graph for this function:

gboolean dbus_upower_get_can_suspend ( DBusUPower *  object)

dbus_upower_get_can_suspend: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.CanSuspend">"CanSuspend"</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 1084 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_can_suspend (object);
}

Here is the caller graph for this function:

const gchar* dbus_upower_get_daemon_version ( DBusUPower *  object)

dbus_upower_get_daemon_version: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.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 dbus_upower_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 1035 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_daemon_version (object);
}
gboolean dbus_upower_get_lid_is_closed ( DBusUPower *  object)

dbus_upower_get_lid_is_closed: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.LidIsClosed">"LidIsClosed"</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 1208 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_lid_is_closed (object);
}
gboolean dbus_upower_get_lid_is_present ( DBusUPower *  object)

dbus_upower_get_lid_is_present: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.LidIsPresent">"LidIsPresent"</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 1239 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_lid_is_present (object);
}
gboolean dbus_upower_get_on_battery ( DBusUPower *  object)

dbus_upower_get_on_battery: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.OnBattery">"OnBattery"</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 1146 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_on_battery (object);
}
gboolean dbus_upower_get_on_low_battery ( DBusUPower *  object)

dbus_upower_get_on_low_battery: (skip) : A #DBusUPower.

Gets the value of the <link linkend="gdbus-property-org-freedesktop-UPower.OnLowBattery">"OnLowBattery"</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 1177 of file dbus-upower.c.

{
  return DBUS_UPOWER_GET_IFACE (object)->get_on_low_battery (object);
}
GType dbus_upower_get_type ( void  )
GDBusInterfaceInfo* dbus_upower_interface_info ( void  )

dbus_upower_interface_info:

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

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

Definition at line 643 of file dbus-upower.c.

{
  return (GDBusInterfaceInfo *) &_dbus_upower_interface_info;
}

Here is the caller graph for this function:

guint dbus_upower_override_properties ( GObjectClass *  klass,
guint  property_id_begin 
)

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

Returns: The last property id.

Definition at line 659 of file dbus-upower.c.

{
  g_object_class_override_property (klass, property_id_begin++, "daemon-version");
  g_object_class_override_property (klass, property_id_begin++, "can-suspend");
  g_object_class_override_property (klass, property_id_begin++, "can-hibernate");
  g_object_class_override_property (klass, property_id_begin++, "on-battery");
  g_object_class_override_property (klass, property_id_begin++, "on-low-battery");
  g_object_class_override_property (klass, property_id_begin++, "lid-is-closed");
  g_object_class_override_property (klass, property_id_begin++, "lid-is-present");
  return property_id_begin - 1;
}

Here is the caller graph for this function:

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

Definition at line 2357 of file dbus-upower.c.

{
  g_async_initable_new_async (DBUS_TYPE_UPOWER_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.UPower", NULL);
}
DBusUPower* dbus_upower_proxy_new_finish ( GAsyncResult *  res,
GError **  error 
)

dbus_upower_proxy_new_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to dbus_upower_proxy_new().

: Return location for error or NULL

Finishes an operation started with dbus_upower_proxy_new().

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

Definition at line 2379 of file dbus-upower.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 DBUS_UPOWER (ret);
  else
    return NULL;
}
void dbus_upower_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 2447 of file dbus-upower.c.

{
  g_async_initable_new_async (DBUS_TYPE_UPOWER_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.UPower", NULL);
}
DBusUPower* dbus_upower_proxy_new_for_bus_finish ( GAsyncResult *  res,
GError **  error 
)

dbus_upower_proxy_new_for_bus_finish: : The #GAsyncResult obtained from the #GAsyncReadyCallback passed to dbus_upower_proxy_new_for_bus().

: Return location for error or NULL

Finishes an operation started with dbus_upower_proxy_new_for_bus().

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

Definition at line 2469 of file dbus-upower.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 DBUS_UPOWER (ret);
  else
    return NULL;
}
DBusUPower* dbus_upower_proxy_new_for_bus_sync ( GBusType  bus_type,
GDBusProxyFlags  flags,
const gchar *  name,
const gchar *  object_path,
GCancellable *  cancellable,
GError **  error 
)

Definition at line 2502 of file dbus-upower.c.

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

Here is the caller graph for this function:

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

Definition at line 2412 of file dbus-upower.c.

{
  GInitable *ret;
  ret = g_initable_new (DBUS_TYPE_UPOWER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.UPower", NULL);
  if (ret != NULL)
    return DBUS_UPOWER (ret);
  else
    return NULL;
}
void dbus_upower_set_can_hibernate ( DBusUPower *  object,
gboolean  value 
)

dbus_upower_set_can_hibernate: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.CanHibernate">"CanHibernate"</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 1130 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "can-hibernate", value, NULL);
}
void dbus_upower_set_can_suspend ( DBusUPower *  object,
gboolean  value 
)

dbus_upower_set_can_suspend: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.CanSuspend">"CanSuspend"</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 1099 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "can-suspend", value, NULL);
}
void dbus_upower_set_daemon_version ( DBusUPower *  object,
const gchar *  value 
)

dbus_upower_set_daemon_version: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.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 1068 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "daemon-version", value, NULL);
}
void dbus_upower_set_lid_is_closed ( DBusUPower *  object,
gboolean  value 
)

dbus_upower_set_lid_is_closed: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.LidIsClosed">"LidIsClosed"</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 1223 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "lid-is-closed", value, NULL);
}
void dbus_upower_set_lid_is_present ( DBusUPower *  object,
gboolean  value 
)

dbus_upower_set_lid_is_present: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.LidIsPresent">"LidIsPresent"</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 1254 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "lid-is-present", value, NULL);
}
void dbus_upower_set_on_battery ( DBusUPower *  object,
gboolean  value 
)

dbus_upower_set_on_battery: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.OnBattery">"OnBattery"</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 1161 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "on-battery", value, NULL);
}
void dbus_upower_set_on_low_battery ( DBusUPower *  object,
gboolean  value 
)

dbus_upower_set_on_low_battery: (skip) : A #DBusUPower.

: The value to set.

Sets the <link linkend="gdbus-property-org-freedesktop-UPower.OnLowBattery">"OnLowBattery"</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 1192 of file dbus-upower.c.

{
  g_object_set (G_OBJECT (object), "on-low-battery", value, NULL);
}
DBusUPower* dbus_upower_skeleton_new ( void  )

dbus_upower_skeleton_new:

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

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

Definition at line 3185 of file dbus-upower.c.

{
  return DBUS_UPOWER (g_object_new (DBUS_TYPE_UPOWER_SKELETON, NULL));
}