Update the latest source
[apps/home/ug-nfc-efl.git] / ug-nfc-setting-efl / include / ug-nfc-setting-main.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
18 #ifndef __UG_NFC_SETTING_MAIN_H__
19 #define __UG_NFC_SETTING_MAIN_H__
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif /* __cplusplus */
24
25 #include <ui-gadget-module.h>
26 #include <Evas.h>
27 #include <Elementary.h>
28 #include <dlog.h>
29 #include <nfc.h>
30
31 #define PACKAGE "ug-setting-nfc-efl"
32 #ifdef PREFIX
33 #undef PREFIX
34 #endif
35 #define PREFIX "/opt/ug/"
36 #define EDJ_PATH                PREFIX"/res/edje/"PACKAGE
37 #define EDJ_FILE                        EDJ_PATH"/ug-nfc-setting-efl.edj"
38 #define LOCALE_PATH             PREFIX"/res/locale"
39
40 #ifdef LOG_TAG
41 #undef LOG_TAG
42 #endif
43
44 #define LOG_TAG "UG_NFC_SETTING_EFL"
45
46 #define NFCUG_TEXT_DOMAIN               PACKAGE
47 #define NFCUG_LOCALEDIR         LOCALE_PATH
48
49 #define POPUP_TEXT_SIZE 1024
50
51 /* Registered string in STMS NFC */
52 #define IDS_NFC_NFC                                     dgettext(PACKAGE, "IDS_NFC_BODY_NFC")
53 #define IDS_NFC_S_BEAM                                  dgettext(PACKAGE, "IDS_NFC_OPT_S_BEAM")
54 #define IDS_NFC_S_BEAM_DESCRIPTION_MSG_CHN              dgettext(PACKAGE, "IDS_NFC_BODY_S_BEAM_DESCRIPTION_MSG_CHN")
55 #define IDS_CLOSE                                       dgettext("sys_string", "IDS_COM_POP_CLOSE")
56
57 #define IDS_NFC_SERVICE_IS_NOT_SUPPORTED                _("NFC service is not supported")
58
59 typedef enum _NFCSettingType {
60         NFC_ON_OFF = 0,
61         NFC_S_BEAM,
62         NFC_SETTING_MAX
63 } NFCSettingType;
64
65 enum
66 {
67         UG_FONT_LIST = 0,
68         UG_FONT_SBEAM_TITLE,
69         UG_FONT_LIVEBOX,
70         UG_FONT_HELP,
71         UG_FONT_MAX,
72 };
73
74 enum
75 {
76         UG_ALIGN_LEFT,
77         UG_ALIGN_CENTER,
78         UG_ALIGN_RIGHT,
79 };
80
81 typedef struct _ugdata_t
82 {
83         Evas_Object* ug_win_main;
84         ui_gadget_h nfc_setting_ug;
85         Evas_Object* base_layout;
86         Evas_Object *bg;
87
88         Evas_Object* base_naviframe;
89         Elm_Object_Item *base_navi_it;
90 }ugdata_t;
91
92 typedef struct _gl_item_data_t
93 {
94         NFCSettingType type;
95         ugdata_t *data;
96 }gl_item_data;
97
98 #ifdef __cplusplus
99 }
100 #endif
101
102 #endif /*__UG_NFC_SETTING_MAIN_H__*/