Merge "Apply secure logs" into tizen_2.1
[platform/framework/native/appfw.git] / src / locales / inc / FLcl_LocaleManagerImpl.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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        FLcl_LocaleManagerImpl.h
19  * @brief       This is the header file for _LocaleManagerImpl class.
20  */
21
22 #ifndef _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_
23 #define _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_
24
25 #include <FBaseString.h>
26 #include <FBaseColIList.h>
27 #include <FLocales.h>
28
29 namespace U_ICU_NAMESPACE
30 {
31 class StringEnumeration;
32 }
33
34 namespace Tizen { namespace Locales
35 {
36
37 class _LocaleManagerImpl
38         : public Tizen::Base::Object
39 {
40 public:
41
42         static Tizen::Locales::Locale GetSystemLocale(void);
43         static Tizen::Base::Collection::IList* GetAvailableLocalesN(void);
44         // Get available c-locale from file
45         static Tizen::Base::Collection::IMap* GetAvailableEglibcLocaesN(void);
46
47         static Tizen::Base::String GetSelectedLanguage(void);
48         static Tizen::Base::Collection::IList* GetAvailableLanguagesN(void);
49         static Tizen::Base::Collection::IList* GetAvailableLanguagesFallbackN(void);
50
51         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(void);
52         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(int rawOffset);
53         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesFallbackN(void);
54         
55         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(U_ICU_NAMESPACE::StringEnumeration* pIcuTZStrList);
56
57         static Tizen::Locales::TimeZone GetSystemTimeZone(void);
58         static result IsSupportedLocale(const Tizen::Locales::Locale& locale, bool& isSupportedLocale);
59
60 }; // _LocaleManagerImpl
61
62 }} //Tizen::Locales
63
64 #endif // _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_