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

eventrecurring.c File Reference

#include <glib.h>
#include <glib-object.h>
#include "include/alarm_event.h"
#include "eventrecurring.h"
#include "debug.h"

Include dependency graph for eventrecurring.c:

Go to the source code of this file.

Defines

#define ALARMD_EVENT_RECURRING_GET_PRIVATE(obj)

Typedefs

typedef _AlarmdEventRecurringPrivate AlarmdEventRecurringPrivate

Enumerations

enum  saved_props {
  S_RECURR_INTERVAL,
  S_RECURR_COUNT,
  S_REAL_TIME,
  S_COUNT
}
enum  properties {
  PROP_RECURR_INTERVAL = 1,
  PROP_RECURR_COUNT,
  PROP_REAL_TIME
}

Functions

static void alarmd_event_recurring_init (AlarmdEventRecurring *event_recurring)
 This file is part of alarmd.
static void alarmd_event_recurring_class_init (AlarmdEventRecurringClass *klass)
static void _alarmd_event_recurring_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec)
static void _alarmd_event_recurring_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec)
static void _alarmd_event_recurring_real_acknowledge (AlarmdEvent *event)
static void _alarmd_event_recurring_changed (AlarmdObject *object)
static GSList * _alarmd_event_recurring_get_saved_properties (void)
static void _alarmd_event_recurring_time_changed (AlarmdObject *object)
GType alarmd_event_recurring_get_type (void)
 SECTION:eventrecurring : An event that recurrs many time.
AlarmdEventRecurringalarmd_event_recurring_new (void)
 alarmd_event_recurring_new:

Variables

static const gchar *const saved_properties [S_COUNT]


Define Documentation

#define ALARMD_EVENT_RECURRING_GET_PRIVATE obj   ) 
 

Value:

(G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
                              ALARMD_TYPE_EVENT_RECURRING, AlarmdEventRecurringPrivate));

Definition at line 71 of file eventrecurring.c.

Referenced by _alarmd_event_recurring_changed(), _alarmd_event_recurring_get_property(), _alarmd_event_recurring_real_acknowledge(), _alarmd_event_recurring_set_property(), _alarmd_event_recurring_time_changed(), and alarmd_event_recurring_init().


Typedef Documentation

typedef struct _AlarmdEventRecurringPrivate AlarmdEventRecurringPrivate
 

Definition at line 63 of file eventrecurring.c.


Enumeration Type Documentation

enum properties
 

Enumeration values:
PROP_RECURR_INTERVAL 
PROP_RECURR_COUNT 
PROP_REAL_TIME 

Definition at line 50 of file eventrecurring.c.

enum saved_props
 

Enumeration values:
S_RECURR_INTERVAL 
S_RECURR_COUNT 
S_REAL_TIME 
S_COUNT 

Definition at line 44 of file eventrecurring.c.


Function Documentation

static void _alarmd_event_recurring_changed AlarmdObject object  )  [static]
 

Definition at line 264 of file eventrecurring.c.

References ALARMD_EVENT_RECURRING_GET_PRIVATE, ENTER_FUNC, LEAVE_FUNC, and _AlarmdEventRecurringPrivate::real_time.

Referenced by alarmd_event_recurring_class_init().

static void _alarmd_event_recurring_get_property GObject *  object,
guint  param_id,
GValue *  value,
GParamSpec *  pspec
[static]
 

Definition at line 225 of file eventrecurring.c.

References ALARMD_EVENT_RECURRING_GET_PRIVATE, ENTER_FUNC, LEAVE_FUNC, PROP_REAL_TIME, PROP_RECURR_COUNT, PROP_RECURR_INTERVAL, _AlarmdEventRecurringPrivate::real_time, _AlarmdEventRecurringPrivate::recurr_count, and _AlarmdEventRecurringPrivate::recurr_interval.

Referenced by alarmd_event_recurring_class_init().

static GSList * _alarmd_event_recurring_get_saved_properties void   )  [static]
 

Definition at line 251 of file eventrecurring.c.

References ALARMD_OBJECT_CLASS, ALARMD_TYPE_EVENT_RECURRING, ENTER_FUNC, LEAVE_FUNC, S_COUNT, and saved_properties.

Referenced by alarmd_event_recurring_class_init().

static void _alarmd_event_recurring_real_acknowledge AlarmdEvent event  )  [static]
 

Definition at line 174 of file eventrecurring.c.

References alarmd_event_cancel(), ALARMD_EVENT_RECURRING_GET_PRIVATE, DEBUG, ENTER_FUNC, LEAVE_FUNC, _AlarmdEventRecurringPrivate::real_time, _AlarmdEventRecurringPrivate::recurr_count, and _AlarmdEventRecurringPrivate::recurr_interval.

Referenced by alarmd_event_recurring_class_init().

static void _alarmd_event_recurring_set_property GObject *  object,
guint  param_id,
const GValue *  value,
GParamSpec *  pspec
[static]
 

Definition at line 197 of file eventrecurring.c.

References ALARMD_EVENT_RECURRING_GET_PRIVATE, ALARMD_OBJECT, alarmd_object_changed(), ENTER_FUNC, LEAVE_FUNC, PROP_REAL_TIME, PROP_RECURR_COUNT, PROP_RECURR_INTERVAL, _AlarmdEventRecurringPrivate::real_time, _AlarmdEventRecurringPrivate::recurr_count, and _AlarmdEventRecurringPrivate::recurr_interval.

Referenced by alarmd_event_recurring_class_init().

static void _alarmd_event_recurring_time_changed AlarmdObject object  )  [static]
 

Definition at line 274 of file eventrecurring.c.

References ALARM_EVENT_BACK_RESCHEDULE, ALARMD_EVENT, alarmd_event_get_time(), ALARMD_EVENT_RECURRING, ALARMD_EVENT_RECURRING_GET_PRIVATE, ALARMD_OBJECT_CLASS, ALARMD_TYPE_EVENT_RECURRING, DEBUG, ENTER_FUNC, LEAVE_FUNC, _AlarmdEventRecurringPrivate::real_time, and _AlarmdEventRecurringPrivate::recurr_interval.

Referenced by alarmd_event_recurring_class_init().

static void alarmd_event_recurring_class_init AlarmdEventRecurringClass klass  )  [static]
 

Definition at line 125 of file eventrecurring.c.

References _alarmd_event_recurring_changed(), _alarmd_event_recurring_get_property(), _alarmd_event_recurring_get_saved_properties(), _alarmd_event_recurring_real_acknowledge(), _alarmd_event_recurring_set_property(), _alarmd_event_recurring_time_changed(), _AlarmdEventClass::acknowledge, ALARMD_EVENT_CLASS, ALARMD_OBJECT_CLASS, _AlarmdObjectClass::changed, ENTER_FUNC, _AlarmdObjectClass::get_saved_properties, LEAVE_FUNC, PROP_REAL_TIME, PROP_RECURR_COUNT, PROP_RECURR_INTERVAL, and _AlarmdObjectClass::time_changed.

Referenced by alarmd_event_recurring_get_type().

GType alarmd_event_recurring_get_type void   ) 
 

SECTION:eventrecurring : An event that recurrs many time.

: AlarmdEvent, AlarmdQueue

Almost like AlarmdEvent, but unlike it, the AlarmdEventRecurring may, after the action has finished, move it's time by certain interval (as specified in AlarmdEventRecurring:recurr-interval) forward. The event may recurr as many times as specified in AlarmdEventRecurring:recurr-count.

Definition at line 76 of file eventrecurring.c.

References alarmd_event_recurring_class_init(), alarmd_event_recurring_init(), and ALARMD_TYPE_EVENT.

static void alarmd_event_recurring_init AlarmdEventRecurring event_recurring  )  [static]
 

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 113 of file eventrecurring.c.

References ALARMD_EVENT_RECURRING_GET_PRIVATE, ENTER_FUNC, LEAVE_FUNC, _AlarmdEventRecurringPrivate::real_time, _AlarmdEventRecurringPrivate::recurr_count, and _AlarmdEventRecurringPrivate::recurr_interval.

Referenced by alarmd_event_recurring_get_type().

AlarmdEventRecurring* alarmd_event_recurring_new void   ) 
 

alarmd_event_recurring_new:

Creates new recurring alarmd event. Returns: Newly created #AlarmEventRecurring.

Definition at line 104 of file eventrecurring.c.

References ALARMD_TYPE_EVENT_RECURRING, ENTER_FUNC, and LEAVE_FUNC.


Variable Documentation

const gchar* const saved_properties[S_COUNT] [static]
 

Initial value:

{
        "recurr_interval",
        "recurr_count",
        "real_time"
}

Definition at line 56 of file eventrecurring.c.


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