NABI_SE Issue fix 54243 54185 54293 54549 54398 54284 54434 54315 54404 54546 54411
[apps/osp/Contacts.git] / src / CtTypes.cpp
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (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://floralicense.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  * @file        CtTypes.cpp
19  * @brief       This is the implementation file for the Contacts application types.
20  */
21
22 #include "CtTypes.h"
23
24 // form, panel ids
25 const wchar_t* IDC_FORM_CONTACT_DETAILS = L"FormContactDetails";
26 const wchar_t* IDC_FORM_CONTACT_EDITOR = L"FormContactEditor";
27 const wchar_t* IDC_FORM_CONTACT_SELECTOR = L"FormContactSelector";
28 const wchar_t* IDC_FORM_GROUP_SELECTOR = L"FormGroupSelector";
29 const wchar_t* IDC_FORM_GROUP_EDITOR = L"FormGroupEditor";
30 const wchar_t* IDC_FORM_GROUP_CONTACT_LIST = L"FormGroupContactList";
31 const wchar_t* IDC_FORM_GROUP_CONTACT_LIST_EDITOR = L"FormGroupContactListEditor";
32 const wchar_t* IDC_FORM_SETTINGS = L"FormSettings";
33 const wchar_t* IDC_FORM_MAIN = L"FormMain";
34
35 const wchar_t* IDC_PANEL_CONTACT_LIST = L"PanelContactList";
36 const wchar_t* IDC_PANEL_CONTACT_LIST_EDITOR = L"PanelContactListEditor";
37 const wchar_t* IDC_PANEL_GROUP_LIST = L"PanelGroupList";
38 const wchar_t* IDC_PANEL_GROUP_LIST_EDITOR = L"PanelGroupListEditor";
39 const wchar_t* IDC_PANEL_FAVORITE_LIST = L"PanelFavoriteList";
40 const wchar_t* IDC_PANEL_FAVORITE_LIST_EDITOR = L"PanelFavoriteListEditor";
41
42 // scene ids
43 const wchar_t* IDSCN_CONTACT_LIST = L"ContactList";
44 const wchar_t* IDSCN_CONTACT_LIST_EDITOR = L"ContactListEditor";
45 const wchar_t* IDSCN_CONTACT_DETAILS = L"ContactDetails";
46 const wchar_t* IDSCN_CONTACT_EDITOR = L"ContactEditor";
47 const wchar_t* IDSCN_CONTACT_SELECTOR = L"ContactSelector";
48 const wchar_t* IDSCN_GROUP_LIST = L"GroupList";
49 const wchar_t* IDSCN_GROUP_LIST_EDITOR = L"GroupListEditor";
50 const wchar_t* IDSCN_GROUP_SELECTOR = L"GroupSelector";
51 const wchar_t* IDSCN_GROUP_EDITOR = L"GroupEditor";
52 const wchar_t* IDSCN_GROUP_CONTACT_LIST = L"GroupContactList";
53 const wchar_t* IDSCN_GROUP_CONTACT_LIST_EDITOR = L"GroupContactListEditor";
54 const wchar_t* IDSCN_FAVORITE_LIST = L"FavoriteList";
55 const wchar_t* IDSCN_FAVORITE_LIST_EDITOR = L"FavoriteListEditor";
56 const wchar_t* IDSCN_SETTINGS = L"Settings";
57
58 const wchar_t* OPERATION_ID_MAIN = L"http://tizen.org/appcontrol/operation/main";
59 const wchar_t* OPERATION_ID_PICK = L"http://tizen.org/appcontrol/operation/pick";
60 const wchar_t* OPERATION_ID_VIEW = L"http://tizen.org/appcontrol/operation/view";
61 const wchar_t* OPERATION_ID_ADD = L"http://tizen.org/appcontrol/operation/add";
62 const wchar_t* OPERATION_ID_EDIT = L"http://tizen.org/appcontrol/operation/edit";
63 const wchar_t* OPERATION_ID_CONFIGURE = L"http://tizen.org/appcontrol/operation/configure";
64 const wchar_t* OPERATION_ID_CREATE_CONTENT = L"http://tizen.org/appcontrol/operation/create_content";
65 const wchar_t* OPERATION_ID_CALL = L"http://tizen.org/appcontrol/operation/call";
66 const wchar_t* OPERATION_ID_COMPOSE = L"http://tizen.org/appcontrol/operation/compose";
67 const wchar_t* OPERATION_ID_CROP = L"http://tizen.org/appcontrol/operation/image/crop";
68
69 const wchar_t* CONTACT_OPERATION_ID_MAIN = L"http://tizen.org/appcontrol/operation/main";
70 const wchar_t* CONTACT_OPERATION_ID_ADD = L"http://tizen.org/appcontrol/operation/social/add";
71 const wchar_t* CONTACT_OPERATION_ID_VIEW = L"http://tizen.org/appcontrol/operation/social/view";
72 const wchar_t* CONTACT_OPERATION_ID_PICK = L"http://tizen.org/appcontrol/operation/social/pick";
73 const wchar_t* CONTACT_OPERATION_ID_EDIT = L"http://tizen.org/appcontrol/operation/social/edit";
74 const wchar_t* CONTACT_OPERATION_ID_CHOOSE = L"http://tizen.org/appcontrol/operation/social/choose";
75
76 const wchar_t* RETURN_KEY_TYPE = L"returnType";
77 const wchar_t* RETURN_KEY_VALUE = L"value";
78 const wchar_t* RETURN_TYPE_PHONE = L"phone";
79 const wchar_t* RETURN_TYPE_EMAIL = L"email";
80 const wchar_t* RETURN_TYPE_VCARD = L"vcard";
81 const wchar_t* RETURN_TYPE_ITEM_ID = L"item_id";
82
83 const wchar_t* CONTACT_KEY_ITEM_TYPE = L"http://tizen.org/appcontrol/data/social/item_type";
84 const wchar_t* CONTACT_KEY_PHONE = L"http://tizen.org/appcontrol/data/social/phone";
85 const wchar_t* CONTACT_KEY_EMAIL = L"http://tizen.org/appcontrol/data/social/email";
86 const wchar_t* CONTACT_KEY_URL = L"http://tizen.org/appcontrol/data/social/url";
87 const wchar_t* CONTACT_KEY_ITEM_ID = L"http://tizen.org/appcontrol/data/social/item_id";
88 const wchar_t* CONTACT_KEY_SELECTION_MODE = L"http://tizen.org/appcontrol/data/selection_mode";
89 const wchar_t* CONTACT_KEY_RESULT_TYPE = L"http://tizen.org/appcontrol/data/social/result_type";
90 const wchar_t* CONTACT_KEY_PATH = L"http://tizen.org/appcontrol/data/path";
91
92 const wchar_t* ITEM_TYPE_PERSON = L"person";
93 const wchar_t* ITEM_TYPE_CONTACT = L"contact";
94
95 const wchar_t* PROVIDER_ID_CAMERA = L"tizen.camera";
96 const wchar_t* PROVIDER_ID_GALLERY = L"tizen.gallery";
97 const wchar_t* PROVIDER_ID_PHONE = L"tizen.call";
98 const wchar_t* PROVIDER_ID_MESSAGE = L"tizen.messages";
99 const wchar_t* PROVIDER_ID_EMAIL = L"tizen.email";
100 const wchar_t* PROVIDER_ID_FILEMANAGER = L"tizen.filemanager";
101 const wchar_t* PROVIDER_ID_IMAGEVIEWER = L"tizen.imageviewer";
102
103 const wchar_t* SETTING_KEY_LANGUAGE = L"http://tizen.org/setting/locale.language";
104 const wchar_t* SETTING_KEY_COUNTRY = L"http://tizen.org/setting/locale.country";
105 const wchar_t* SETTING_KEY_FONTSIZE = L"http://tizen.org/setting/font.size";
106 const wchar_t* SETTING_KEY_NAME_ORDER = L"http://tizen.org/setting/contacts.order.firstname";
107
108 const wchar_t* RUNTIMEINFO_INTERNAL_MEMORY_KEY = L"http://tizen.org/runtime/storage.available.internal";
109
110 const wchar_t* CHARACTER_SPACE = L" ";
111 const wchar_t* DELIMITER = L":";
112 const wchar_t* DELIMITER_SEMICOLON = L";";
113 const wchar_t* DELIMITER_COMMA = L",";
114 const wchar_t* INITIAL_SELECTED_COUNT = L" (0)";
115 const wchar_t* DEFAULT_GROUP_FAMILY = L"Family";
116 const wchar_t* DEFAULT_GROUP_FRIENDS = L"Friends";
117 const wchar_t* DEFAULT_GROUP_COWORKERS = L"Co-workers";
118
119 const int ID_GROUP_CONTACT_NOT_ASSIGNED = 0xFFFFFFFF;
120 const int ID_GROUP_CONTACT_SELECT_MESSAGE = 0xFFFFFFFE;
121 const int ID_GROUP_CONTACT_SELECT_EMAIL = 0xFFFFFFFD;
122
123 const int W_SAVE_POPUP = 688;
124 const int H_SAVE_POPUP = 230;
125 const int W_SAVE_LABEL = 656;
126 const int H_SAVE_LABEL = 80;
127 const int X_SAVE_LABEL = 16;
128 const int Y_SAVE_LABEL = 32;
129 const int Y_SAVE_BUTTON = 132;
130 const int H_SAVE_BUTTON = 74;
131 const int W_SAVE_BUTTON = 318;
132 const int W_POPUP_ITEM_GAP = 20;
133 const int W_DELETE_POPUP = 688;
134 const int H_DELETE_POPUP = 230;
135 const int W_DELETE_LABEL = 656;
136 const int H_DELETE_LABEL = 80;
137 const int X_DELETE_LABEL = 16;
138 const int Y_DELETE_LABEL = 32;
139 const int Y_DELETE_BUTTON = 132;
140 const int H_DELETE_BUTTON = 74;
141 const int W_DELETE_BUTTON = 318;
142
143 const int FONT_SIZE_SAVE_CONFIRM = 42;
144 const int FONT_SIZE_SAVE_BUTTON = 36;
145 const int FONT_SIZE_DELETE_CONFIRM = 42;
146 const int FONT_SIZE_DELETE_BUTTON = 36;
147
148 const int BIRTHDAY_MIN_YEAR_DIFF = 100;