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 ALARM_DBUS_H 00023 #define ALARM_DBUS_H 00024 00025 /** 00026 * SECTION:alarm_dbus 00027 * @short_description: The DBus API. 00028 * 00029 * Defines DBus service and method names to communicate with alarmd. 00030 **/ 00031 00032 /** 00033 * ALARMD_SERVICE: 00034 * 00035 * The name of the alarmd service. 00036 **/ 00037 #define ALARMD_SERVICE "com.nokia.alarmd" 00038 00039 /** 00040 * ALARMD_PATH: 00041 * 00042 * The object path for the alarmd daemon. 00043 **/ 00044 #define ALARMD_PATH "/com/nokia/alarmd" 00045 00046 /** 00047 * ALARMD_INTERFACE: 00048 * 00049 * The interface the commands use. 00050 **/ 00051 #define ALARMD_INTERFACE "com.nokia.alarmd" 00052 00053 /** 00054 * ALARM_EVENT_ADD: 00055 * 00056 * Adds an event into the queue. 00057 * 00058 * Parameters: 00059 * 00060 * OBJECT_PATH: Name of the object type. 00061 * 00062 * UINT32: Count of arguments for the object. 00063 * 00064 * STRING: Parameter 1 name. 00065 * 00066 * TYPE: Parameter 1 value. 00067 * 00068 * STRING: Parameter 2 name. 00069 * 00070 * TYPE: Parameter 2 value. 00071 * 00072 * ... 00073 * 00074 * Return: 00075 * 00076 * INT32: unique id for the alarm 00077 **/ 00078 #define ALARM_EVENT_ADD "add_event" 00079 00080 /** 00081 * ALARM_EVENT_DEL: 00082 * 00083 * Removes event from the queue. 00084 * 00085 * Parameters: 00086 * 00087 * INT32: The id of the alarm event. 00088 * 00089 * Return: 00090 * 00091 * BOOL: TRUE on success. 00092 **/ 00093 #define ALARM_EVENT_DEL "del_event" 00094 00095 /** 00096 * ALARM_EVENT_QUERY: 00097 * 00098 * Queries the queue for matching events. 00099 * 00100 * Parameters: 00101 * 00102 * UINT64: Start time of query (seconds since Jan 1 1970 00:00:00 UTC. 00103 * 00104 * UINT64: End time of query. 00105 * 00106 * INT32: Flag mask to select events (0 to get all. 00107 * 00108 * INT32: Wanted flag values. 00109 * 00110 * Return: 00111 * 00112 * Array of INT32s: The event id's. 00113 **/ 00114 #define ALARM_EVENT_QUERY "query_event" 00115 00116 /** 00117 * ALARM_EVENT_GET: 00118 * 00119 * Parameters: 00120 * INT32: The id of the alarm event. 00121 * 00122 * Return: 00123 * 00124 * OBJECT_PATH: Name of the object type. 00125 * 00126 * UINT32: Count of arguments for the object. 00127 * 00128 * STRING: Parameter 1 name. 00129 * 00130 * TYPE: Parameter 1 value. 00131 * 00132 * STRING: Parameter 2 name. 00133 * 00134 * TYPE: Parameter 2 value. 00135 * ... 00136 * 00137 **/ 00138 #define ALARM_EVENT_GET "get_event" 00139 00140 /** 00141 * ALARMD_SNOOZE_SET: 00142 * 00143 * Parameters: 00144 * UINT32: The amount of minutes the default snooze should be. 00145 * 00146 * Return: 00147 * 00148 * BOOLEAN: Status of the request. 00149 **/ 00150 #define ALARMD_SNOOZE_SET "set_snooze" 00151 00152 /** 00153 * ALARMD_SNOOZE_GET: 00154 * 00155 * Return: 00156 * UINT32: The amount of minutes the default snooze is. 00157 **/ 00158 #define ALARMD_SNOOZE_GET "get_snooze" 00159 00160 #endif