tizen 2.3 release
[framework/web/wearable/wrt-plugins-tizen.git] / src / Alarm / alarm_common.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 #ifndef TIZENAPIS_API_ALARM_COMMON_H_
19 #define TIZENAPIS_API_ALARM_COMMON_H_
20
21 namespace DeviceAPI {
22 namespace Alarm {
23
24 // Alarm Type
25 #define ALARM_TYPE_KEY "TYPE"
26 #define ALARM_TYPE_ABSOLUTE_VALUE "ABSOLUTE"
27 #define ALARM_TYPE_RELATIVE_VALUE "RELATIVE"
28
29 // Absolute Alarm Recurrence
30 #define ALARM_ALSOLUTE_RECURRENCE_TYPE_KEY "RECURRENCE"
31 #define ALARM_ALSOLUTE_RECURRENCE_TYPE_INTERVAL "INTERVAL"
32 #define ALARM_ALSOLUTE_RECURRENCE_TYPE_BYDAYVALUE "BYDAYVALUE"
33 #define ALARM_ALSOLUTE_RECURRENCE_TYPE_NONE "NONE"
34 #define ALARM_ABSOLUTE_FREQUENCY_KEY "FREQUENCY"
35 #define ALARM_ABSOLUTE_FREQUENCY_INTERVAL "FREQUENCY_INTERVAL"
36 #define ALARM_ALSOLUTE_DATE_KEY "DATE"
37
38 // Relative Alarm Delay
39 #define ALARM_RELATIVE_DELAY_KEY "RELATIVE_DELAY"
40
41 // Frequency
42 #define ALARM_PROPERTY_MINUTELY_RECURRENCE    "MINUTELY"
43 #define ALARM_PROPERTY_HOURLY_RECURRENCE    "HOURLY"
44 #define ALARM_PROPERTY_DAILY_RECURRENCE    "DAILY"
45 #define ALARM_PROPERTY_WEEKLY_RECURRENCE   "WEEKLY"
46 #define ALARM_PROPERTY_MONTHLY_RECURRENCE  "MONTHLY"
47 #define ALARM_PROPERTY_YEARLY_RECURRENCE   "YEARLY"
48
49 namespace AbsoluteRecurrence
50 {
51     typedef enum
52     {
53         NoRecurrence,
54         ByDayValue,
55         Interval,
56     }Type;
57 }
58
59 }
60 }
61 #endif