Main Page | Data Structures | File List | Data Fields | Globals

object.h File Reference

#include <libxml/tree.h>
#include <glib/gtypes.h>
#include <glib-object.h>
#include <dbus/dbus.h>

Include dependency graph for object.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ALARMD_TYPE_OBJECT   (alarmd_object_get_type())
 This file is part of alarmd.
#define ALARMD_OBJECT(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), ALARMD_TYPE_OBJECT, AlarmdObject))
#define ALARMD_OBJECT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), ALARMD_TYPE_OBJECT, AlarmdObjectClass))
#define ALARMD_IS_OBJECT(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), ALARMD_TYPE_OBJECT))
#define ALARMD_IS_OBJECT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), ALARMD_TYPE_OBJECT))
#define ALARMD_OBJECT_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), ALARMD_TYPE_OBJECT, AlarmdObjectClass))

Typedefs

typedef _AlarmdObject AlarmdObject
typedef _AlarmdObjectClass AlarmdObjectClass

Functions

GType alarmd_object_get_type (void)
 AlarmdObject::time-changed: : The AlarmdObject which received the signal.
GParameter * alarmd_object_get_properties (AlarmdObject *object, guint *n_objects)
 alarmd_object_get_properties: : The object whose properties should be gotten.
GSList * alarmd_object_get_saved_properties (AlarmdObject *object)
 alarmd_object_get_saved_properties: : The AlarmdObject whose saved properties should be get.
xmlNode * alarmd_object_to_xml (AlarmdObject *object)
 alarmd_object_to_xml: : The AlarmdObject that should be serialized into xml.
void alarmd_object_to_dbus (AlarmdObject *object, DBusMessageIter *iter)
 alarmd_object_to_dbus: : The AlarmdObject that should be serialized into dbus message.
void alarmd_object_changed (AlarmdObject *object)
 alarmd_object_changed: : The object that has changed.
void alarmd_object_time_changed (AlarmdObject *object)
 alarmd_object_time_changed: : The object that should receive the signal.
void alarmd_gparameterv_free (GParameter *paramv, guint n_objects)
 alarmd_gparameterv_free: : The #GParameter array.


Define Documentation

#define ALARMD_IS_OBJECT object   )     (G_TYPE_CHECK_INSTANCE_TYPE((object), ALARMD_TYPE_OBJECT))
 

Definition at line 33 of file object.h.

#define ALARMD_IS_OBJECT_CLASS klass   )     (G_TYPE_CHECK_CLASS_TYPE((klass), ALARMD_TYPE_OBJECT))
 

Definition at line 34 of file object.h.

#define ALARMD_OBJECT object   )     (G_TYPE_CHECK_INSTANCE_CAST((object), ALARMD_TYPE_OBJECT, AlarmdObject))
 

Definition at line 31 of file object.h.

Referenced by _alarmd_action_dbus_set_property(), _alarmd_action_dialog_set_property(), _alarmd_action_exec_set_property(), _alarmd_event_action_acknowledge(), _alarmd_event_changed(), _alarmd_event_real_acknowledge(), _alarmd_event_real_fire(), _alarmd_event_real_snooze(), _alarmd_event_recurring_set_property(), _alarmd_event_set_property(), _alarmd_object_real_to_dbus(), _alarmd_object_real_to_xml(), _alarmd_queue_event_cancelled(), _alarmd_queue_event_changed(), _alarmd_queue_event_to_xml(), _alarmd_queue_set_property(), _alarmd_queue_to_xml(), _dbus_message_in(), _osso_time_changed(), _real_write_data(), alarmd_action_acknowledge(), alarmd_event_acknowledge(), alarmd_event_cancel(), alarmd_event_dequeue(), alarmd_event_fire(), alarmd_event_queue(), alarmd_event_snooze(), and alarmd_object_time_changed().

#define ALARMD_OBJECT_CLASS klass   )     (G_TYPE_CHECK_CLASS_CAST((klass), ALARMD_TYPE_OBJECT, AlarmdObjectClass))
 

Definition at line 32 of file object.h.

Referenced by _alarmd_action_dbus_get_saved_properties(), _alarmd_action_dialog_get_saved_properties(), _alarmd_action_exec_get_saved_properties(), _alarmd_action_get_saved_properties(), _alarmd_event_get_saved_properties(), _alarmd_event_recurring_get_saved_properties(), _alarmd_event_recurring_time_changed(), _alarmd_queue_get_saved_properties(), alarmd_action_class_init(), alarmd_action_dbus_class_init(), alarmd_action_dialog_class_init(), alarmd_action_exec_class_init(), alarmd_event_class_init(), alarmd_event_recurring_class_init(), and alarmd_queue_class_init().

#define ALARMD_OBJECT_GET_CLASS object   )     (G_TYPE_INSTANCE_GET_CLASS((object), ALARMD_TYPE_OBJECT, AlarmdObjectClass))
 

Definition at line 35 of file object.h.

Referenced by alarmd_object_get_saved_properties(), alarmd_object_to_dbus(), and alarmd_object_to_xml().

#define ALARMD_TYPE_OBJECT   (alarmd_object_get_type())
 

This file is part of alarmd.

Contact Person: David Weinehall <david.weinehall@nokia.com>

Copyright (C) 2006 Nokia Corporation alarmd and libalarm are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

alarmd and libalarm are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 30 of file object.h.

Referenced by alarmd_action_get_type(), alarmd_event_get_type(), and alarmd_queue_get_type().


Typedef Documentation

typedef struct _AlarmdObject AlarmdObject
 

Definition at line 37 of file object.h.

typedef struct _AlarmdObjectClass AlarmdObjectClass
 

Definition at line 43 of file object.h.


Function Documentation

void alarmd_gparameterv_free GParameter *  paramv,
guint  n_objects
 

alarmd_gparameterv_free: : The #GParameter array.

: The size of the .

Frees the array and all data associated with it.

Definition at line 117 of file object.c.

References ENTER_FUNC, and LEAVE_FUNC.

Referenced by _alarmd_object_real_to_dbus(), _alarmd_object_real_to_xml(), _alarmd_queue_to_xml(), dbus_object_factory(), init_queue(), and object_factory().

void alarmd_object_changed AlarmdObject object  ) 
 

alarmd_object_changed: : The object that has changed.

Emits #AlarmdObject::changed signal on the .

Definition at line 143 of file object.c.

References ENTER_FUNC, LEAVE_FUNC, object_signals, and SIGNAL_CHANGED.

Referenced by _alarmd_action_dbus_set_property(), _alarmd_action_dialog_set_property(), _alarmd_action_exec_set_property(), _alarmd_event_changed(), _alarmd_event_real_snooze(), _alarmd_event_recurring_set_property(), _alarmd_event_set_property(), _alarmd_queue_event_cancelled(), _alarmd_queue_event_changed(), _alarmd_queue_set_property(), and _dbus_message_in().

GParameter* alarmd_object_get_properties AlarmdObject object,
guint *  n_objects
 

alarmd_object_get_properties: : The object whose properties should be gotten.

: Pointer to integer that should hold the size of the returned array.

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. Returns: An array of #GParameter.

Definition at line 77 of file object.c.

References alarmd_object_get_saved_properties(), ENTER_FUNC, and LEAVE_FUNC.

Referenced by _alarmd_object_real_to_dbus(), _alarmd_object_real_to_xml(), and _alarmd_queue_to_xml().

GSList* alarmd_object_get_saved_properties AlarmdObject object  ) 
 

alarmd_object_get_saved_properties: : The AlarmdObject whose saved properties should be get.

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. Returns: A #GSList of property names (as const char *). The names should be owned by the appropriate class and will not be free'd.

Definition at line 108 of file object.c.

References ALARMD_OBJECT_GET_CLASS, ENTER_FUNC, and LEAVE_FUNC.

Referenced by alarmd_object_get_properties().

GType alarmd_object_get_type void   ) 
 

AlarmdObject::time-changed: : The AlarmdObject which received the signal.

Emitted whenever the system time has changed.

Definition at line 49 of file object.c.

References alarmd_object_class_init().

void alarmd_object_time_changed AlarmdObject object  ) 
 

alarmd_object_time_changed: : The object that should receive the signal.

Emits #AlarmdObject::time-changed signal on the .

Definition at line 157 of file object.c.

References ALARMD_OBJECT, ENTER_FUNC, LEAVE_FUNC, object_signals, and SIGNAL_TIME_CHANGED.

Referenced by _alarmd_queue_real_time_changed(), and _osso_time_changed().

void alarmd_object_to_dbus AlarmdObject object,
DBusMessageIter *  iter
 

alarmd_object_to_dbus: : The AlarmdObject that should be serialized into dbus message.

: The iter that should hould the representation of the object.

Creates a dbus message representation of the .

Definition at line 150 of file object.c.

References ALARMD_OBJECT_GET_CLASS, ENTER_FUNC, and LEAVE_FUNC.

Referenced by _alarmd_object_real_to_dbus(), and _dbus_message_in().

xmlNode* alarmd_object_to_xml AlarmdObject object  ) 
 

alarmd_object_to_xml: : The AlarmdObject that should be serialized into xml.

Creates a xml representation of the . Returns: A tree of #xmlNode describing the .

Definition at line 134 of file object.c.

References ALARMD_OBJECT_GET_CLASS, ENTER_FUNC, and LEAVE_FUNC.

Referenced by _alarmd_object_real_to_xml(), _alarmd_queue_event_to_xml(), _alarmd_queue_to_xml(), and _real_write_data().


Generated on Thu Dec 21 18:23:31 2006 for Alarmd by  doxygen 1.4.2