![]() |
![]() |
![]() |
Alarmd Reference Manual | ![]() |
---|---|---|---|---|
enum AlarmdActionAckType; AlarmdAction; AlarmdAction* alarmd_action_new (void);void alarmd_action_run (AlarmdAction *action,gboolean delayed);void alarmd_action_acknowledge (AlarmdAction *action, AlarmdActionAckType ack_type);gboolean alarmd_action_need_power_up (AlarmdAction *action);
AlarmdAction is a base class for objects that define the action run when event is due. It itself does nothing, and should not be used as-is.
typedef enum { ACK_NORMAL, ACK_SNOOZE } AlarmdActionAckType;
Defines the ways a action can be acknowledged.
AlarmdAction* alarmd_action_new (void);
Creates new alarmd action.
Returns : | Newly created AlarmdAction. |
void alarmd_action_run (AlarmdAction *action,gboolean delayed);
Emits "run" signal on the given AlarmdAction. The interpretion of the
delayed
flag depends on the action type.
action : |
A AlarmdAction that should be run. |
delayed : |
Whether the AlarmdAction is run on time or after it. |
void alarmd_action_acknowledge (AlarmdAction *action, AlarmdActionAckType ack_type);
Emits "acknowledge" -signal on the given AlarmdAction.
action : |
AlarmdAction that is acknowledged. |
ack_type : |
ACK_NORMAL if the action was normally acknowledged or
ACK_SNOOZE if it was snoozed.
|
gboolean alarmd_action_need_power_up (AlarmdAction *action);
Queries the given AlarmdAction, if it needs power up functionality.
action : |
AlarmdAction that is being queried. |
Returns : | TRUE if the AlarmdAction needs power up, FALSE otherwise. |