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

eventrecurring.h

Go to the documentation of this file.
00001 /**
00002  * This file is part of alarmd
00003  *
00004  * Contact Person: David Weinehall <david.weinehall@nokia.com>
00005  *
00006  * Copyright (C) 2006 Nokia Corporation
00007  * alarmd and libalarm are free software; you can redistribute them
00008  * and/or modify them under the terms of the GNU Lesser General Public
00009  * License version 2.1 as published by the Free Software Foundation.
00010  *
00011  * alarmd and libalarm are distributed in the hope that they will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this software; if not, write to the Free
00018  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00019  * 02110-1301 USA
00020  */
00021 
00022 #ifndef _EVENTRECURRING_H_
00023 #define _EVENTRECURRING_H_
00024 
00025 #include <glib/gtypes.h>
00026 #include <glib-object.h>
00027 #include "object.h"
00028 #include "event.h"
00029 
00030 #define ALARMD_TYPE_EVENT_RECURRING (alarmd_event_recurring_get_type())
00031 #define ALARMD_EVENT_RECURRING(object) (G_TYPE_CHECK_INSTANCE_CAST((object), ALARMD_TYPE_EVENT_RECURRING, AlarmdEventRecurring))
00032 #define ALARMD_EVENT_RECURRING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ALARMD_TYPE_EVENT_RECURRING, AlarmdEventRecurringClass))
00033 #define ALARMD_IS_EVENT_RECURRING(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), ALARMD_TYPE_EVENT_RECURRING))
00034 #define ALARMD_IS_EVENT_RECURRING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ALARMD_TYPE_EVENT_RECURRING))
00035 #define ALARMD_EVENT_RECURRING_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), ALARMD_TYPE_EVENT_RECURRING, AlarmdEventRecurringClass))
00036 
00037 typedef struct _AlarmdEventRecurring AlarmdEventRecurring;
00038 struct _AlarmdEventRecurring
00039 {
00040         AlarmdEvent parent_instance;
00041 };
00042 
00043 typedef struct _AlarmdEventRecurringClass AlarmdEventRecurringClass;
00044 struct _AlarmdEventRecurringClass
00045 {
00046         AlarmdEventClass parent_class;
00047 };
00048 
00049 /**
00050  * SECTION:eventrecurring
00051  * @short_description: An event that recurrs many time.
00052  * @see_also: #AlarmdEvent, #AlarmdQueue
00053  *
00054  * Almost like #AlarmdEvent, but unlike it, the #AlarmdEventRecurring may,
00055  * after the action has finished, move it's time by certain interval (as
00056  * specified in #AlarmdEventRecurring:recurr-interval) forward. The event
00057  * may recurr as many times as specified in #AlarmdEventRecurring:recurr-count.
00058  **/
00059 
00060 GType alarmd_event_recurring_get_type(void);
00061 
00062 /**
00063  * alarmd_event_recurring_new:
00064  *
00065  * Creates new recurring alarmd event.
00066  * Returns: Newly created #AlarmEventRecurring.
00067  **/
00068 AlarmdEventRecurring *alarmd_event_recurring_new(void);
00069 
00070 #endif /* _EVENTRECURRING_H_ */

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