3d7a2165295b6e3b14fe5b418efdf35e8d4a7ef2
[apps/home/clock.git] / alarm / include / alarm_define.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
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
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
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.
15   */
16
17 #ifndef __ALARM_DEFINE_H__
18 #define __ALARM_DEFINE_H__
19
20 #include "clock_fwk_define.h"
21 #include "alarm_string.h"
22 //tag
23 #ifdef  LOG_TAG
24 #undef  LOG_TAG
25 #endif
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
31 //time
32 #define GET_HOUR_12(hour) ((hour)%12)
33 //
34 #define PAGE_VALID_CHECK(page, value) IS_EQUAL(page, value)
35 //count
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)
41
42 #define TYPE_NUM                (6)     /* 7 */
43 #define DAY_NUM                 (7)
44 #define ALARM_DEF_VOLUME        (4)
45 #define ALARM_MIN_VOLUME        (0)
46 #define ALARM_MAX_VOLUME        (7)
47 //magic number
48 #define MAGIC_NUMBER_WIDGET_DG (0x256721e2)
49 //
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"
56 //
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"
60
61 #endif                          //__ALARM_DEFINE_H__