Tizen 2.0 Release
[framework/osp/compat.git] / src / FCompatDeprecatedObj.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FCompatDeprecatedObj.cpp
20  * @brief       This is the file for deprecated non-local non-POD objects.
21  *
22  * This file contains deprecated non-local non-POD objects for backward compatibility.
23  *
24  */
25
26 #include <pthread.h>
27 #include <FBaseUuId.h>
28 #include <FAppTypes.h>
29 #include <FAppAppControl.h>
30 #include <FGrpColor.h>
31 #include <FNetHttpHttpMultipartEntity.h>
32 #include <FNetNfcNdefRecordType.h>
33 #include <FOspConfig.h>
34 #include <FSclImAddress.h>
35 #include <FUiCtrlIFastScrollListener.h>
36
37 namespace Tizen { namespace App
38 {
39 // Definitions for FAppTypes.h
40 _OSP_EXPORT_ extern const Tizen::Base::String APP_LAUNCH_NORMAL __attribute__((deprecated)) = L"LAUNCH_NORMAL";
41 _OSP_EXPORT_ extern const Tizen::Base::String APP_LAUNCH_CONDITIONAL __attribute__((deprecated)) = L"LAUNCH_CONDITIONAL";
42
43 // Definitions for FAppAppControl.h
44 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CONTACT __attribute__((deprecated)) = L"osp.appcontrol.CONTACT";
45 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CALENDAR __attribute__((deprecated)) = L"osp.appcontrol.CALENDAR";
46 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_TODO __attribute__((deprecated)) = L"osp.appcontrol.TODO";
47 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_DIAL __attribute__((deprecated)) = L"osp.appcontrol.DIAL";
48 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CALL __attribute__((deprecated)) = L"osp.appcontrol.CALL";
49 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_MESSAGE __attribute__((deprecated)) = L"osp.appcontrol.MESSAGE";
50 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_EMAIL __attribute__((deprecated)) = L"osp.appcontrol.EMAIL";
51 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_MEDIA __attribute__((deprecated)) = L"osp.appcontrol.MEDIA";
52 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_IMAGE __attribute__((deprecated)) = L"osp.appcontrol.IMAGE";
53 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_VIDEO __attribute__((deprecated)) = L"osp.appcontrol.VIDEO";
54 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_AUDIO __attribute__((deprecated)) = L"osp.appcontrol.AUDIO";
55 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_BROWSER __attribute__((deprecated)) = L"osp.appcontrol.BROWSER";
56 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CAMERA __attribute__((deprecated)) = L"osp.appcontrol.CAMERA";
57 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_BT __attribute__((deprecated)) = L"osp.appcontrol.BT";
58 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_SETTINGS __attribute__((deprecated)) = L"osp.appcontrol.SETTINGS";
59
60 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_CONTACT __attribute__((deprecated)) = L"osp.appcontrol.provider.contact";
61 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_CERTIFICATE_MANAGER __attribute__((deprecated)) = L"osp.appcontrol.provider.certificatemanager";
62 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_CALENDAR __attribute__((deprecated)) = L"osp.appcontrol.provider.calendar";
63 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_CALL __attribute__((deprecated)) = L"osp.appcontrol.provider.call";
64 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_MESSAGE __attribute__((deprecated)) = L"osp.appcontrol.provider.message";
65 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_EMAIL __attribute__((deprecated)) = L"osp.appcontrol.provider.email";
66 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_MEDIA __attribute__((deprecated)) = L"osp.appcontrol.provider.media";
67 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_IMAGE __attribute__((deprecated)) = L"osp.appcontrol.provider.image";
68 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_IMAGE_EDITOR __attribute__((deprecated)) = L"osp.appcontrol.provider.imageeditor";
69 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_VIDEO __attribute__((deprecated)) = L"osp.appcontrol.provider.video";
70 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_AUDIO __attribute__((deprecated)) = L"osp.appcontrol.provider.audio";
71 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_BROWSER __attribute__((deprecated)) = L"osp.appcontrol.provider.browser";
72 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_CAMERA __attribute__((deprecated)) = L"osp.appcontrol.provider.camera";
73 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_BLUETOOTH __attribute__((deprecated)) = L"osp.appcontrol.provider.bluetooth";
74 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_SETTINGS __attribute__((deprecated)) = L"osp.appcontrol.provider.settings";
75 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_PROVIDER_ALLSHARE __attribute__((deprecated)) = L"osp.appcontrol.provider.allshare";
76
77 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_ADD __attribute__((deprecated)) = L"osp.appcontrol.operation.ADD";
78 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_PICK __attribute__((deprecated)) = L"osp.appcontrol.operation.PICK";
79 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_EDIT __attribute__((deprecated)) = L"osp.appcontrol.operation.EDIT";
80 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_VIEW __attribute__((deprecated)) = L"osp.appcontrol.operation.VIEW";
81 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_PLAY __attribute__((deprecated)) = L"osp.appcontrol.operation.PLAY";
82 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_DEFAULT __attribute__((deprecated)) = L"osp.appcontrol.operation.DEFAULT";
83 _OSP_EXPORT_ extern const Tizen::Base::String OPERATION_CAPTURE __attribute__((deprecated)) = L"osp.appcontrol.operation.CAPTURE";
84
85 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_ADD __attribute__((deprecated)) = L"osp.appcontrol.operation.add";
86 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_CALL __attribute__((deprecated)) = L"osp.appcontrol.operation.call";
87 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_CAPTURE __attribute__((deprecated)) = L"osp.appcontrol.operation.capture";
88 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_COMPOSE __attribute__((deprecated)) = L"osp.appcontrol.operation.compose";
89 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_CONFIGURE __attribute__((deprecated)) = L"osp.appcontrol.operation.configure";
90 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_DEFAULT __attribute__((deprecated)) = L"osp.appcontrol.operation.default";
91 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_DIAL __attribute__((deprecated)) = L"osp.appcontrol.operation.dial";
92 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_EDIT __attribute__((deprecated)) = L"osp.appcontrol.operation.edit";
93 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_MAIN __attribute__((deprecated)) = L"osp.appcontrol.operation.main";
94 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_PICK __attribute__((deprecated)) = L"osp.appcontrol.operation.pick";
95 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_PLAY __attribute__((deprecated)) = L"osp.appcontrol.operation.play";
96 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_RECORD __attribute__((deprecated)) = L"osp.appcontrol.operation.record";
97 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_SHARE __attribute__((deprecated)) = L"osp.appcontrol.operation.share";
98 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_VIEW __attribute__((deprecated)) = L"osp.appcontrol.operation.view";
99 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_OPERATION_CROP __attribute__((deprecated)) = L"osp.appcontrol.operation.crop";
100
101 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_NONE __attribute__((deprecated)) = L"osp.appcontrol.category.none";
102 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_AUDIO __attribute__((deprecated)) = L"osp.appcontrol.category.audio";
103 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_BROWSER __attribute__((deprecated)) = L"osp.appcontrol.category.browser";
104 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_BLUETOOTH __attribute__((deprecated)) = L"osp.appcontrol.category.bluetooth";
105 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_CALENDAR __attribute__((deprecated)) = L"osp.appcontrol.category.calendar";
106 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_CERTIFICATE __attribute__((deprecated)) = L"osp.appcontrol.category.certificate";
107 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_CONTACT __attribute__((deprecated)) = L"osp.appcontrol.category.contact";
108 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_DOCUMENT __attribute__((deprecated)) = L"osp.appcontrol.category.document";
109 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_EMAIL __attribute__((deprecated)) = L"osp.appcontrol.category.email";
110 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_MEDIA __attribute__((deprecated)) = L"osp.appcontrol.category.media";
111 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_MMS __attribute__((deprecated)) = L"osp.appcontrol.category.mms";
112 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_IMAGE __attribute__((deprecated)) = L"osp.appcontrol.category.image";
113 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_SECURITY __attribute__((deprecated)) = L"osp.appcontrol.category.security";
114 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_SMS __attribute__((deprecated)) = L"osp.appcontrol.category.sms";
115 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_SETTINGS __attribute__((deprecated)) = L"osp.appcontrol.category.settings";
116 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_VIDEO_CALL __attribute__((deprecated)) = L"osp.appcontrol.category.videocall";
117 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_VOICE_CALL __attribute__((deprecated)) = L"osp.appcontrol.category.voicecall";
118 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_VIDEO __attribute__((deprecated)) = L"osp.appcontrol.category.video";
119 _OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_CATEGORY_URI __attribute__((deprecated)) = L"osp.appcontrol.category.uri";
120
121 }} // Tizen::App
122
123 // Definitions for FBaseUuId.h
124 namespace Tizen { namespace Base
125 {
126 const static UUID __INVALID_UUID = {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
127 _OSP_EXPORT_ const Tizen::Base::UuId UuId::INVALID_UUID __attribute__((deprecated)) (__INVALID_UUID);
128 }} // Tizen::Base
129
130 // Definitions for FGrpColor.h
131 namespace Tizen { namespace Graphics
132 {
133 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_BLACK __attribute__((deprecated)) (0x00, 0x00, 0x00);
134 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_BLUE __attribute__((deprecated)) (0x00, 0x00, 0xFF);
135 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_CYAN __attribute__((deprecated)) (0x00, 0xFF, 0xFF);
136 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_GREEN __attribute__((deprecated)) (0x00, 0xFF, 0x00);
137 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_GREY __attribute__((deprecated)) (0xC0, 0xC0, 0xC0);
138 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_MAGENTA __attribute__((deprecated)) (0xFF, 0x00, 0xFF);
139 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_RED __attribute__((deprecated)) (0xFF, 0x00, 0x00);
140 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_VIOLET __attribute__((deprecated)) (0x4F, 0x2F, 0x4F);
141 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_YELLOW __attribute__((deprecated)) (0xFF, 0xFF, 0x00);
142 _OSP_EXPORT_ const Tizen::Graphics::Color Color::COLOR_WHITE __attribute__((deprecated)) (0xFF, 0xFF, 0xFF);
143 }} // Tizen::Graphics
144
145 // Definitions for FNetHttpHttpMultipartEntity.h
146 namespace Tizen { namespace Net { namespace Http
147 {
148 _OSP_EXPORT_ extern const Tizen::Base::String STRING_PART_DEFAULT_MIME_TYPE __attribute__((deprecated)) = L"text/plain";
149 _OSP_EXPORT_ extern const Tizen::Base::String FILE_PART_DEFAULT_MIME_TYPE __attribute__((deprecated)) = L"application/octet-stream";
150 }}} // Tizen::Net::Http
151
152 // Definitions for FNetNfcNdefRecordType.h
153 namespace Tizen { namespace Net { namespace Nfc
154 {
155 _OSP_EXPORT_ extern const Tizen::Base::String NDEF_RTD_SMART_POSTER __attribute__((deprecated)) = L"Sp";
156 _OSP_EXPORT_ extern const Tizen::Base::String NDEF_RTD_TEXT __attribute__((deprecated)) = L"T";
157 _OSP_EXPORT_ extern const Tizen::Base::String NDEF_RTD_URI __attribute__((deprecated)) = L"U";
158 }}} // Tizen::Net::Nfc
159
160 // Definitions for FSclImAddress.h
161 namespace Tizen { namespace Social
162 {
163 _OSP_EXPORT_ extern const Tizen::Base::String IM_MSN __attribute__((deprecated)) = L"MSN";
164 _OSP_EXPORT_ extern const Tizen::Base::String IM_ICQ __attribute__((deprecated)) = L"ICQ";
165 _OSP_EXPORT_ extern const Tizen::Base::String IM_AIM __attribute__((deprecated)) = L"AIM";
166 _OSP_EXPORT_ extern const Tizen::Base::String IM_YAHOO __attribute__((deprecated)) = L"Yahoo";
167 _OSP_EXPORT_ extern const Tizen::Base::String IM_JABBER __attribute__((deprecated)) = L"Jabber";
168 _OSP_EXPORT_ extern const Tizen::Base::String IM_GTALK __attribute__((deprecated)) = L"Google Talk";
169 _OSP_EXPORT_ extern const Tizen::Base::String IM_SKYPE __attribute__((deprecated)) = L"Skype";
170 _OSP_EXPORT_ extern const Tizen::Base::String IM_QQ __attribute__((deprecated)) = L"QQ";
171 }} // Tizen::Social
172
173 namespace Tizen { namespace Ui { namespace Controls
174 {
175 // Definitions for FUiCtrlIFastScrollListener.h
176 _OSP_EXPORT_ extern const Tizen::Base::String FAST_SCROLL_SEARCH_ICON_INDEX __attribute__((deprecated)) = L"[SEARCH_ICON_INDEX]";
177
178 // Definitions for FUiControls.h
179 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_TITLE_TEXT __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
180 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_BODY_TEXT __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
181 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_FOREGROUND __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
182 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_BACKGROUND __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
183 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_LIST_BACKGROUND __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
184 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_FORM_BACKGROUND __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
185 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_FORM_GROUP_BACKGROUND __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
186 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_POPUP_BACKGROUND __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
187 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_GROUP_ITEM_TEXT __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
188 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_LIST_ITEM_TEXT __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
189 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_LIST_ITEM_PRESSED_TEXT __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
190 _OSP_EXPORT_ Tizen::Graphics::Color SYSTEM_COLOR_LIST_ITEM_HIGHLIGHTED_TEXT __attribute__((deprecated)) (Tizen::Graphics::Color::COLOR_YELLOW);
191 }}} // Tizen::Ui::Controls
192
193
194 static pthread_once_t onceControl = PTHREAD_ONCE_INIT;
195 static bool colorInit = false;
196
197 static void _OnceInit(void)
198 {
199         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_BLACK)) = Tizen::Graphics::Color(0x00, 0x00, 0x00);
200         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_BLUE)) = Tizen::Graphics::Color(0x00, 0x00, 0xFF);
201         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_CYAN)) = Tizen::Graphics::Color(0x00, 0xFF, 0xFF);
202         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_GREEN)) = Tizen::Graphics::Color(0x00, 0xFF, 0x00);
203         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_GREY)) = Tizen::Graphics::Color(0xC0, 0xC0, 0xC0);
204         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_MAGENTA)) = Tizen::Graphics::Color(0xFF, 0x00, 0xFF);
205         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_RED)) = Tizen::Graphics::Color(0xFF, 0x00, 0x00);
206         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_VIOLET)) = Tizen::Graphics::Color(0x4F, 0x2F, 0x4F);
207         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_YELLOW)) = Tizen::Graphics::Color(0xFF, 0xFF, 0x00);
208         *(const_cast<Tizen::Graphics::Color*>(&Tizen::Graphics::Color::COLOR_WHITE)) = Tizen::Graphics::Color(0xFF, 0xFF, 0xFF);
209
210         Tizen::Ui::Controls::SYSTEM_COLOR_TITLE_TEXT = Tizen::Graphics::Color::COLOR_YELLOW;
211         Tizen::Ui::Controls::SYSTEM_COLOR_BODY_TEXT = Tizen::Graphics::Color::COLOR_YELLOW;
212         Tizen::Ui::Controls::SYSTEM_COLOR_FOREGROUND = Tizen::Graphics::Color::COLOR_YELLOW;
213         Tizen::Ui::Controls::SYSTEM_COLOR_BACKGROUND = Tizen::Graphics::Color::COLOR_YELLOW;
214         Tizen::Ui::Controls::SYSTEM_COLOR_LIST_BACKGROUND = Tizen::Graphics::Color::COLOR_YELLOW;
215         Tizen::Ui::Controls::SYSTEM_COLOR_FORM_BACKGROUND = Tizen::Graphics::Color::COLOR_YELLOW;
216         Tizen::Ui::Controls::SYSTEM_COLOR_FORM_GROUP_BACKGROUND = Tizen::Graphics::Color::COLOR_YELLOW;
217         Tizen::Ui::Controls::SYSTEM_COLOR_POPUP_BACKGROUND = Tizen::Graphics::Color::COLOR_YELLOW;
218         Tizen::Ui::Controls::SYSTEM_COLOR_GROUP_ITEM_TEXT = Tizen::Graphics::Color::COLOR_YELLOW;
219         Tizen::Ui::Controls::SYSTEM_COLOR_LIST_ITEM_TEXT = Tizen::Graphics::Color::COLOR_YELLOW;
220         Tizen::Ui::Controls::SYSTEM_COLOR_LIST_ITEM_PRESSED_TEXT = Tizen::Graphics::Color::COLOR_YELLOW;
221         Tizen::Ui::Controls::SYSTEM_COLOR_LIST_ITEM_HIGHLIGHTED_TEXT = Tizen::Graphics::Color::COLOR_YELLOW;
222
223         colorInit = true;
224 }
225
226 extern "C" _OSP_EXPORT_
227 Tizen::Graphics::Color* _GetSystemColor(const Tizen::Base::String& colorName)
228 {
229         if(!colorInit)
230         {
231                 pthread_once(&onceControl, _OnceInit);
232         }
233
234         if(colorName == L"TITLE_TEXT")
235         {
236                 return &Tizen::Ui::Controls::SYSTEM_COLOR_TITLE_TEXT;
237         }
238         else if(colorName == L"BODY_TEXT")
239         {
240                 return &Tizen::Ui::Controls::SYSTEM_COLOR_BODY_TEXT;
241         }
242         else if(colorName == L"FOREGROUND")
243         {
244                 return &Tizen::Ui::Controls::SYSTEM_COLOR_FOREGROUND;
245         }
246         else if(colorName == L"BACKGROUND")
247         {
248                 return &Tizen::Ui::Controls::SYSTEM_COLOR_BACKGROUND;
249         }
250         else if(colorName == L"LIST_BACKGROUND")
251         {
252                 return &Tizen::Ui::Controls::SYSTEM_COLOR_LIST_BACKGROUND;
253         }
254         else if(colorName == L"FORM_BACKGROUND")
255         {
256                 return &Tizen::Ui::Controls::SYSTEM_COLOR_FORM_BACKGROUND;
257         }
258         else if(colorName == L"FORM_GROUP_BACKGROUND")
259         {
260                 return &Tizen::Ui::Controls::SYSTEM_COLOR_FORM_GROUP_BACKGROUND;
261         }
262         else if(colorName == L"POPUP_BACKGROUND")
263         {
264                 return &Tizen::Ui::Controls::SYSTEM_COLOR_POPUP_BACKGROUND;
265         }
266         else if(colorName == L"GROUP_ITEM_TEXT")
267         {
268                 return &Tizen::Ui::Controls::SYSTEM_COLOR_GROUP_ITEM_TEXT;
269         }
270         else if(colorName == L"LIST_ITEM_TEXT")
271         {
272                 return &Tizen::Ui::Controls::SYSTEM_COLOR_LIST_ITEM_TEXT;
273         }
274         else if(colorName == L"LIST_ITEM_PRESSED_TEXT")
275         {
276                 return &Tizen::Ui::Controls::SYSTEM_COLOR_LIST_ITEM_PRESSED_TEXT;
277         }
278         else if(colorName == L"LIST_ITEM_HIGHLIGHTED_TEXT")
279         {
280                 return &Tizen::Ui::Controls::SYSTEM_COLOR_LIST_ITEM_HIGHLIGHTED_TEXT;
281         }
282         else
283         {
284                 return null;
285         }
286 }