up-wakeups

up-wakeups

Functions

Types and Values

Description

Functions

data_changed ()

void
(*data_changed) (UpWakeups *wakeups);

total_changed ()

void
(*total_changed) (UpWakeups *wakeups,
                  guint value);

up_wakeups_new ()

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


up_wakeups_get_total_sync ()

guint
up_wakeups_get_total_sync (UpWakeups *wakeups,
                           GCancellable *cancellable,
                           GError **error);

Gets the the total number of wakeups per second from the daemon.

Parameters

wakeups

a UpWakeups instance.

 

cancellable

a GCancellable or NULL

 

error

a GError, or NULL.

 

Returns

number of wakeups per second.

Since: 0.9.1


up_wakeups_get_data_sync ()

GPtrArray *
up_wakeups_get_data_sync (UpWakeups *wakeups,
                          GCancellable *cancellable,
                          GError **error);

Gets the wakeups data from the daemon.

Parameters

wakeups

a UpWakeups instance.

 

cancellable

a GCancellable or NULL

 

error

a GError, or NULL.

 

Returns

an array of UpWakeupItem's.

[element-type UpWakeupItem][transfer full]

Since: 0.9.1


up_wakeups_get_properties_sync ()

gboolean
up_wakeups_get_properties_sync (UpWakeups *wakeups,
                                GCancellable *cancellable,
                                GError **error);

Gets properties from the daemon about wakeup data.

Parameters

wakeups

a UpWakeups instance.

 

cancellable

a GCancellable or NULL

 

error

a GError, or NULL.

 

Returns

TRUE if supported

Since: 0.9.1


up_wakeups_get_has_capability ()

gboolean
up_wakeups_get_has_capability (UpWakeups *wakeups);

Returns if the daemon supports getting the wakeup data.

Parameters

wakeups

a UpWakeups instance.

 

Returns

TRUE if supported

Since: 0.9.1

Types and Values

UP_WAKEUPS_ERROR

#define UP_WAKEUPS_ERROR (up_wakeups_error_quark ())

UP_WAKEUPS_TYPE_ERROR

#define UP_WAKEUPS_TYPE_ERROR (up_wakeups_error_get_type ())