up-wakeups

up-wakeups

Synopsis

#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);

Description

Details

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 ())

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.

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.

wakeups :

a UpWakeups instance.

cancellable :

a GCancellable or NULL

error :

a GError, or NULL.

Returns :

an array of UpWakeupItem's. [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.

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.

wakeups :

a UpWakeups instance.

Returns :

TRUE if supported

Since 0.9.1