2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __ALARM_DEFINE_H__
18 #define __ALARM_DEFINE_H__
20 #include "clock_fwk_define.h"
21 #include "alarm_string.h"
26 #define LOG_TAG "ALARM"
27 //******************project *************************************
28 //#define ALARMAPP_FEATURE_MORNINGCALL
29 #define ALARMAPP_FEATURE_SUPPORT_CSC
30 #define ALARMAPP_FEATURE_SUPPORT_DEMO_MWC
32 #define GET_HOUR_12(hour) ((hour)%12)
34 #define PAGE_VALID_CHECK(page, value) IS_EQUAL(page, value)
36 #define MAX_ALARM_NUMBER (40)
37 #define SNOOZE_DURATION_ITEM_NUM (3)
38 #define SNOOZE_REPEAT_ITEM_NUM (3)
39 #define TYPE_ITEM_NUM (2)
40 #define ALARM_NAME_MAX_LEGNTH (15)
42 #define TYPE_NUM (6) /* 7 */
44 #define ALARM_DEF_VOLUME (4)
45 #define ALARM_MIN_VOLUME (0)
46 #define ALARM_MAX_VOLUME (7)
48 #define MAGIC_NUMBER_WIDGET_DG (0x256721e2)
50 #define EDJ_NAME EDJDIR"/alarm.edj"
51 #define GRP_MAIN "main"
52 #define THEME_NAME EDJDIR"/theme_alarm.edj"
53 #define ALARM_ICON_PATH IMAGEDIR"/code"
54 #define ALARM_TEMP_NUM ALARM_ICON_PATH"/50_time_num_"
55 #define DEFAULT_ALARM_TONE_PATH "/opt/share/settings/Alerts/General notification_sdk.wav"
57 #define ALARM_IMAGE_ADD ALARM_ICON_PATH"/01_controlbar_icon_create.png"
58 #define ALARM_IMAGE_DEL ALARM_ICON_PATH"/01_controlbar_icon_delete.png"
59 #define ALARM_IMAGE_CLOSE ALARM_ICON_PATH"/01_controlbar_icon_close.png"
61 #endif //__ALARM_DEFINE_H__