sync with tizen_2.0
[platform/framework/native/appfw.git] / src / locales / inc / FLcl_LocaleManagerImpl.h
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        FLcl_LocaleManagerImpl.h
20  * @brief       This is the header file for _LocaleManagerImpl class.
21  */
22
23 #ifndef _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_
24 #define _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_
25
26 #include <FBaseString.h>
27 #include <FBaseColIList.h>
28 #include <FLocales.h>
29
30 namespace U_ICU_NAMESPACE
31 {
32 class StringEnumeration;
33 }
34
35 namespace Tizen { namespace Locales
36 {
37
38 class _LocaleManagerImpl
39         : public Tizen::Base::Object
40 {
41 public:
42
43         static Tizen::Locales::Locale GetSystemLocale(void);
44         static Tizen::Base::Collection::IList* GetAvailableLocalesN(void);
45         static Tizen::Base::String GetSelectedLanguage(void);
46         static Tizen::Base::Collection::IList* GetAvailableLanguagesN(void);
47         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(void);
48         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(int rawOffset);
49         
50         static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(U_ICU_NAMESPACE::StringEnumeration* pIcuTZStrList);
51
52         static Tizen::Locales::TimeZone GetSystemTimeZone(void);
53         static result IsSupportedLocale(const Tizen::Locales::Locale& locale, bool& isSupportedLocale);
54
55 }; // _LocaleManagerImpl
56
57 }} //Tizen::Locales
58
59 #endif // _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_