![]() |
![]() |
![]() |
UPower Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define UP_WAKEUPS_ERROR #define UP_WAKEUPS_TYPE_ERROR void (*data_changed) (UpWakeups *wakeups
); void (*total_changed) (UpWakeups *wakeups
,guint value
); UpWakeups * up_wakeups_new (void
); guint up_wakeups_get_total_sync (UpWakeups *wakeups
,GCancellable *cancellable
,GError **error
); GPtrArray * up_wakeups_get_data_sync (UpWakeups *wakeups
,GCancellable *cancellable
,GError **error
); gboolean up_wakeups_get_properties_sync (UpWakeups *wakeups
,GCancellable *cancellable
,GError **error
); gboolean up_wakeups_get_has_capability (UpWakeups *wakeups
);
UpWakeups * up_wakeups_new (void
);
Gets a new object to allow querying the wakeups data from the server.
Returns : |
the a new UpWakeups object. |
Since 0.9.1
guint up_wakeups_get_total_sync (UpWakeups *wakeups
,GCancellable *cancellable
,GError **error
);
Gets the the total number of wakeups per second from the daemon.
|
a UpWakeups instance. |
|
a GCancellable or NULL
|
|
a GError, or NULL . |
Returns : |
number of wakeups per second. |
Since 0.9.1
GPtrArray * up_wakeups_get_data_sync (UpWakeups *wakeups
,GCancellable *cancellable
,GError **error
);
Gets the wakeups data from the daemon.
|
a UpWakeups instance. |
|
a GCancellable or NULL
|
|
a GError, or NULL . |
Returns : |
an array of UpWakeupItem 's. [transfer full]
|
Since 0.9.1
gboolean up_wakeups_get_properties_sync (UpWakeups *wakeups
,GCancellable *cancellable
,GError **error
);
Gets properties from the daemon about wakeup data.
|
a UpWakeups instance. |
|
a GCancellable or NULL
|
|
a GError, or NULL . |
Returns : |
TRUE if supported |
Since 0.9.1