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

include/alarm_data.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 /*
00023  * @file alarm_data.h
00024  * Event Daemon
00025  * <p>
00026  * Copyright (C) 2006 Nokia.  All rights reserved.
00027  * <p>
00028  * @author David Weinehall <david.weinehall@nokia.com>
00029  */
00030 #ifndef _ALARM_DATA_H_
00031 #define _ALARM_DATA_H_
00032 
00033 #include <time.h>
00034 
00035 extern "C" {
00036 
00037 typedef enum {
00038         ALARM_ACTION_INVALID = -1,
00039         ALARM_ACTION_NORMAL = 0,
00040         ALARM_ACTION_ACTDEAD = 1
00041 } alarmaction;
00042 
00043 typedef struct {
00044         time_t alarm_time;              /* Time of alarm; UTC */
00045         gint recurrence;                /* Number of minutes between
00046                                          * each recurrence;
00047                                          * 0 for one-shot alarms
00048                                          */
00049         alarmaction action;             /* Action to perform on alarm */
00050 } alarm_data;
00051 
00052 }
00053 
00054 #endif /* _ALARM_DATA_H_ */

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