#include <stdarg.h>
#include "object.h"
#include "xml-common.h"
#include "debug.h"
Include dependency graph for object.c:
Go to the source code of this file.
Enumerations | |
enum | signals { SIGNAL_CHANGED, SIGNAL_TIME_CHANGED, SIGNAL_COUNT } |
Functions | |
static void | alarmd_object_class_init (AlarmdObjectClass *klass) |
This file is part of alarmd. | |
static GParameter * | _alarmd_object_real_get_properties (AlarmdObject *object, guint *n_objects) |
static void | _alarmd_object_real_changed (AlarmdObject *object) |
static xmlNode * | _alarmd_object_real_to_xml (AlarmdObject *object) |
static void | _alarmd_object_real_to_dbus (AlarmdObject *object, DBusMessageIter *iter) |
static GSList * | _alarmd_object_real_get_saved_properties (void) |
static void | _alarmd_object_real_time_changed (AlarmdObject *object) |
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. | |
void | alarmd_gparameterv_free (GParameter *paramv, guint n_objects) |
alarmd_gparameterv_free: : The #GParameter array. | |
xmlNode * | alarmd_object_to_xml (AlarmdObject *object) |
alarmd_object_to_xml: : The AlarmdObject that should be serialized into xml. | |
void | alarmd_object_changed (AlarmdObject *object) |
alarmd_object_changed: : The object that has changed. | |
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_time_changed (AlarmdObject *queue) |
alarmd_object_time_changed: : The object that should receive the signal. | |
Variables | |
static guint | object_signals [SIGNAL_COUNT] |
|
|
|
Definition at line 386 of file object.c. References ENTER_FUNC, and LEAVE_FUNC. Referenced by alarmd_object_class_init(). |
|
Definition at line 191 of file object.c. References ENTER_FUNC, and LEAVE_FUNC. Referenced by alarmd_object_class_init(). |
|
Definition at line 393 of file object.c. References ENTER_FUNC, and LEAVE_FUNC. Referenced by alarmd_object_class_init(). |
|
Definition at line 400 of file object.c. References ENTER_FUNC, and LEAVE_FUNC. Referenced by alarmd_object_class_init(). |
|
Definition at line 202 of file object.c. References alarmd_gparameterv_free(), ALARMD_OBJECT, alarmd_object_get_properties(), alarmd_object_to_dbus(), DEBUG, ENTER_FUNC, and LEAVE_FUNC. Referenced by alarmd_object_class_init(). |
|
Definition at line 298 of file object.c. References alarmd_gparameterv_free(), ALARMD_OBJECT, alarmd_object_get_properties(), alarmd_object_to_xml(), ENTER_FUNC, LEAVE_FUNC, type_gtypes, type_names, and Y_COUNT. Referenced by alarmd_object_class_init(). |
|
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(). |
|
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(). |
|
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 164 of file object.c. References _alarmd_object_real_changed(), _alarmd_object_real_get_properties(), _alarmd_object_real_get_saved_properties(), _alarmd_object_real_time_changed(), _alarmd_object_real_to_dbus(), _alarmd_object_real_to_xml(), _AlarmdObjectClass::changed, ENTER_FUNC, _AlarmdObjectClass::get_properties, _AlarmdObjectClass::get_saved_properties, LEAVE_FUNC, object_signals, SIGNAL_CHANGED, SIGNAL_TIME_CHANGED, _AlarmdObjectClass::time_changed, _AlarmdObjectClass::to_dbus, and _AlarmdObjectClass::to_xml. Referenced by alarmd_object_get_type(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 47 of file object.c. Referenced by alarmd_object_changed(), alarmd_object_class_init(), and alarmd_object_time_changed(). |