alarm_event_t Struct Reference

Alarm time control + actions to take. More...


Data Fields

cookie_t cookie
time_t trigger
char * title
char * message
char * sound
char * icon
unsigned flags
char * alarm_appid
time_t alarm_time
tm alarm_tm
char * alarm_tz
time_t snooze_secs
time_t snooze_total
size_t action_cnt
alarm_action_taction_tab
int response
int recur_count
time_t recur_secs
size_t recurrence_cnt
alarm_recur_trecurrence_tab
size_t attr_cnt
alarm_attr_t ** attr_tab


Detailed Description

Alarm time control + actions to take.

Describes whem alarm should occur, how to handle snoozing and recurrence, and actions to be taken on various trigger points.

Also contains information not used directly by alarmd, like dialog title/message strings and paths to custom icons and sounds.

To ensure forward compatibility the alarm_event_t objects should be allocated using libalarmd functions like alarm_event_create() or alarmd_event_get().

All dynamically allocated members have set/get methods. If these are used, alarm_event_delete and alarm_event_dtor will release all dynamically allocated memory related to alarm_event_t.

Related alarmd functions:

See also:


Field Documentation

cookie_t alarm_event_t::cookie

Unique identifier, issued by alarmd.

Ignored by alarmd_event_add().

Required by alarmd_event_update().

Available after alarmd_event_get().

time_t alarm_event_t::trigger

Trigger time, managed by alarmd.

Available after alarmd_event_get().

char* alarm_event_t::title

Title string for the alarm dialog.

See also:

char* alarm_event_t::message

Message string for the alarm dialog.

See also:

char* alarm_event_t::sound

Custom sound to play when alarm dialog is shown.

See also:

char* alarm_event_t::icon

Custom icon to use when alarm dialog is shown.

See also:

unsigned alarm_event_t::flags

Event specific behaviour, bitwise or of alarmeventflags

char* alarm_event_t::alarm_appid

Name of the application this alarm belongs to.

See also:

time_t alarm_event_t::alarm_time

Seconds since epoch, or
-1 = use broken down time spec below.

See also:

struct tm alarm_event_t::alarm_tm

Alarm time broken down to year month day and hour min min sec.

See also:

char* alarm_event_t::alarm_tz

Timezone, or NULL for floating local time

Note that alarm timezone is used only when evaluating trigger time from broken down time or recurrence time from recurrence masks.

If timezone is left unset the trigger times are re-evaluated on timezone change.

See also:

time_t alarm_event_t::snooze_secs

Number of seconds an alarm is postponed on snooze. or
0 = use server default snooze value.

See also:

time_t alarm_event_t::snooze_total

How many seconds the event has been snoozed in total. Managed by alarmd. Used to align recurrencies with the original trigger time.

size_t alarm_event_t::action_cnt

Number of items in the action_tab.

See also:

alarm_action_t* alarm_event_t::action_tab

Action descriptors.

See also:

int alarm_event_t::response

Dialog response from user, managed by alarmd

int alarm_event_t::recur_count

Number of recurrences, or
-1 = infinite.

See also:

time_t alarm_event_t::recur_secs

Number of seconds between each recurrence, or 0 to use recurrence specifiers below

size_t alarm_event_t::recurrence_cnt

Number of items in the recurrence_tab.

See also: alarm_event_t::recurrence_cnt

alarm_recur_t* alarm_event_t::recurrence_tab

Recurrence specifiers.

See also:

size_t alarm_event_t::attr_cnt

Number of items in the attr_tab.

See also: alarm_event_t::attr_cnt

alarm_attr_t** alarm_event_t::attr_tab

Array of event attributes.

See also:


The documentation for this struct was generated from the following file:
Generated on Tue Feb 24 16:21:30 2009 for libalarm by  doxygen 1.5.1