alarm_action_t Struct Reference

When and whether to send D-Bus messages, Execute commands or Snooze. More...


Data Fields

unsigned flags
char * label
char * exec_command
char * dbus_interface
char * dbus_service
char * dbus_path
char * dbus_name
char * dbus_args


Detailed Description

When and whether to send D-Bus messages, Execute commands or Snooze.

Describes one action related to alarm_event_t

All dynamically allocated members have set/get methods. If these are used, alarm_action_delete and alarm_action_dtor will release all dynamically allocated memory related to alarm_action_t.

See also:


Field Documentation

unsigned alarm_action_t::flags

Bitwise or of ALARM_ACTION_xxx flags, see alarmactionflags

char* alarm_action_t::label

Button name to be used in system ui dialog, or NULL = not shown on dialog.
Note: apart from non-null, non-empty label string also ALARM_ACTION_WHEN_TRIGGERED bit needs to be set in flags for the button to be shown on dialog.

See also:

char* alarm_action_t::exec_command

Exec callback: command line to execute

See also:

char* alarm_action_t::dbus_interface

DBus callback: interface

See also:

char* alarm_action_t::dbus_service

DBus callback: D-Bus name for service (method call), or
NULL = send a signal

See also:

char* alarm_action_t::dbus_path

DBus callback: D-Bus object path

See also:

char* alarm_action_t::dbus_name

DBus callback: D-Bus member name (name of method or signal)

See also:

char* alarm_action_t::dbus_args

DBus callback: serialized dbus arguments

Note: the serialization protocol is considered private to libalarm, use alarm_action_set_dbus_args() to set up this field.

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