![]() |
![]() |
![]() |
Alarmd Reference Manual | ![]() |
---|---|---|---|---|
AlarmdObject;GParameter * alarmd_object_get_properties (AlarmdObject *object,guint *n_objects);GSList * alarmd_object_get_saved_properties (AlarmdObject *object);xmlNode * alarmd_object_to_xml (AlarmdObject *object);void alarmd_object_to_dbus (AlarmdObject *object,DBusMessageIter *iter);void alarmd_object_changed (AlarmdObject *object);void alarmd_object_time_changed (AlarmdObject *object);void alarmd_gparameterv_free (GParameter *paramv,guint n_objects);
Base class for all objects in alarmd. Idea is to centralize the serialization and to ease spreading the time-changed signal.
GParameter * alarmd_object_get_properties (AlarmdObject *object,guint *n_objects);
Gets all properties of an object that should be saved; mostly a helper function for alarmd_object_to_xml and alarmd_object_to_dbus to avoid code duplication.
object : |
The object whose properties should be gotten. |
n_objects : |
Pointer to integer that should hold the size of the returned array. |
Returns : | An array of |
GSList * alarmd_object_get_saved_properties (AlarmdObject *object);
An helper function for alarmd_object_get_properties to reduce code duplication. Each subclass overriding this should call their parent to get their saved properties too.
object : |
The AlarmdObject whose saved properties should be get. |
Returns : | A |
xmlNode * alarmd_object_to_xml (AlarmdObject *object);
Creates a xml representation of the object
.
object : |
The AlarmdObject that should be serialized into xml. |
Returns : | A tree of object .
|
void alarmd_object_to_dbus (AlarmdObject *object,DBusMessageIter *iter);
Creates a dbus message representation of the object
.
object : |
The AlarmdObject that should be serialized into dbus message. |
iter : |
The iter that should hould the representation of the object. |
void alarmd_object_changed (AlarmdObject *object);
Emits object
.
object : |
The object that has changed. |
void alarmd_object_time_changed (AlarmdObject *object);
Emits object
.
object : |
The object that should receive the signal. |