sync RSA
[apps/native/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 LOCALE_PATH             LOCALEDIR
32 #define EDJ_PATH                EDJDIR
33 #define EDJ_FILE                        EDJ_PATH"/"PACKAGE".edj"
34
35 #define PREDEFINED_ITEM_FILE_PATH               "/usr/apps/org.tizen.57r43275q7/share"
36
37 #ifdef LOG_TAG
38 #undef LOG_TAG
39 #endif
40
41 #define LOG_TAG "UG_NFC_SETTING_EFL"
42
43 #define NFCUG_TEXT_DOMAIN               PACKAGE
44 #define NFCUG_LOCALEDIR         LOCALE_PATH
45
46 #define POPUP_TEXT_SIZE 1024
47
48 /* Registered string in STMS NFC */
49 #define IDS_NFC_NFC                                     dgettext(PACKAGE, "IDS_NFC_BODY_NFC")
50 #define IDS_NFC_S_BEAM                                  dgettext(PACKAGE, "IDS_NFC_OPT_S_BEAM")
51 #define IDS_NFC_S_BEAM_DESCRIPTION_MSG_CHN              dgettext(PACKAGE, "IDS_NFC_BODY_S_BEAM_DESCRIPTION_MSG_CHN")
52 #define IDS_CLOSE                                       dgettext("sys_string", "IDS_COM_POP_CLOSE")
53 #define IDS_NONE                                        dgettext("sys_string", "IDS_COM_BODY_NONE")
54
55 #define IDS_PREDEFINED_ITEM                             _("Predefined item")
56 #define IDS_PREDEFINED_ITEM_DESCRIPTION_MSG             _("You can beam selected item to other NFC device by holding the devices close together in homescreenor main menu.")
57
58 #define IDS_SECURITY_POLICY_RESTRICTS_USE_OF_PS _("Security policy restricts use of %s")
59 #define IDS_NFC_SERVICE_IS_NOT_SUPPORTED                _("NFC service is not supported")
60
61 typedef enum _NFCSettingType {
62         NFC_ON_OFF = 0,
63 #ifdef _SBEAM_SUPPORT_
64         NFC_S_BEAM,
65 #endif
66         NFC_PREDEFINED_ITEM,
67         NFC_SETTING_MAX
68 } NFCSettingType;
69
70 enum
71 {
72         UG_FONT_LIST = 0,
73         UG_FONT_SBEAM_TITLE,
74         UG_FONT_LIVEBOX,
75         UG_FONT_HELP,
76         UG_FONT_MAX,
77 };
78
79 enum
80 {
81         UG_ALIGN_LEFT,
82         UG_ALIGN_CENTER,
83         UG_ALIGN_RIGHT,
84 };
85
86 typedef struct _ugdata_t
87 {
88         Evas_Object* ug_win_main;
89         ui_gadget_h nfc_setting_ug;
90         Evas_Object* base_layout;
91         Evas_Object *bg;
92
93         Evas_Object* base_naviframe;
94         Elm_Object_Item *base_navi_it;
95 }ugdata_t;
96
97 typedef struct _gl_item_data_t
98 {
99         NFCSettingType type;
100         ugdata_t *data;
101 }gl_item_data;
102
103 #ifdef __cplusplus
104 }
105 #endif
106
107 #endif /*__UG_NFC_SETTING_MAIN_H__*/