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

initialize.c File Reference

#include <glib.h>
#include <glib-object.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <string.h>
#include "include/alarm_event.h"
#include "initialize.h"
#include "timer-loader.h"
#include "xmlobjectfactory.h"
#include "queue.h"
#include "eventrecurring.h"
#include "action.h"
#include "actiondbus.h"
#include "actionexec.h"
#include "debug.h"

Include dependency graph for initialize.c:

Go to the source code of this file.

Functions

static void _write_data (AlarmdQueue *queue, struct files_t *files)
static gboolean _real_write_data (struct files_t *files)
static void _free_data (struct files_t *files)
static void _queue_changed (gpointer user_data)
AlarmdQueueinit_queue (const gchar *queue_file, const gchar *next_time_file, const gchar *next_mode_file)
 init_queue: : The file the queue should be loaded from.
void alarmd_type_init (void)
 alarmd_type_init:


Function Documentation

static void _free_data struct files_t files  )  [static]
 

Definition at line 233 of file initialize.c.

References files_t::next_mode_file, files_t::next_time_file, and files_t::queue_file.

Referenced by init_queue().

static void _queue_changed gpointer  user_data  )  [static]
 

Definition at line 241 of file initialize.c.

Referenced by _dialog_ackd(), _systemui_dialog_queue_append(), init_queue(), and systemui_alarm_dialog_queue_remove().

static gboolean _real_write_data struct files_t files  )  [static]
 

Definition at line 155 of file initialize.c.

References ALARM_EVENT_ACTDEAD, ALARM_EVENT_BOOT, alarmd_event_get_time(), ALARMD_OBJECT, alarmd_object_to_xml(), alarmd_queue_get_event(), alarmd_queue_query_events(), ENTER_FUNC, LEAVE_FUNC, files_t::next_mode_file, files_t::next_time_file, files_t::queue, files_t::queue_file, and files_t::timer_id.

Referenced by _write_data().

static void _write_data AlarmdQueue queue,
struct files_t files
[static]
 

Definition at line 142 of file initialize.c.

References _real_write_data(), ENTER_FUNC, LEAVE_FUNC, and files_t::timer_id.

Referenced by init_queue().

void alarmd_type_init void   ) 
 

alarmd_type_init:

Initializes all types used in alarmd. This is needed due to design. The types need to be registered to Glib type system.

Definition at line 134 of file initialize.c.

References ALARMD_TYPE_ACTION, ALARMD_TYPE_ACTION_DBUS, ALARMD_TYPE_ACTION_EXEC, and ALARMD_TYPE_EVENT_RECURRING.

Referenced by main().

AlarmdQueue* init_queue const gchar *  queue_file,
const gchar *  next_time_file,
const gchar *  next_mode_file
 

init_queue: : The file the queue should be loaded from.

: The file the time of next alarm should be saved to. : The file the mode of next alarm should be saved to.

Initializes alarm queue from the given file. Returns: New AlarmdQueue filled with events.

Definition at line 51 of file initialize.c.

References _free_data(), _queue_changed(), _write_data(), ALARMD_EVENT, alarmd_gparameterv_free(), ALARMD_IS_EVENT, alarmd_queue_add_event(), alarmd_queue_new(), close_timer_plugins(), DEBUG, elements_to_parameters(), load_timer_plugins(), files_t::next_mode_file, files_t::next_time_file, object_factory(), files_t::queue, files_t::queue_file, files_t::timer_id, timer_plugins_set_startup(), and timers_get_plugin().

Referenced by main().


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