2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FLcl_LocaleManagerImpl.h
19 * @brief This is the header file for _LocaleManagerImpl class.
22 #ifndef _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_
23 #define _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_
25 #include <FBaseString.h>
26 #include <FBaseColIList.h>
29 namespace U_ICU_NAMESPACE
31 class StringEnumeration;
35 namespace Tizen { namespace Locales
38 class _LocaleManagerImpl
39 : public Tizen::Base::Object
43 static Tizen::Locales::Locale GetSystemLocale(void);
44 static U_ICU_NAMESPACE::Locale GetSystemIcuLocale(void);
46 static Tizen::Base::Collection::IList* GetAvailableLocalesN(void);
47 // Get available c-locale from file
48 static Tizen::Base::Collection::IMap* GetAvailableEglibcLocaesN(void);
50 static Tizen::Base::String GetSelectedLanguage(void);
51 static Tizen::Base::Collection::IList* GetAvailableLanguagesN(void);
52 // Get available language locales
53 static Tizen::Base::Collection::IList* GetAvailableLanguageLocalesN(void);
55 static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(void);
56 static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(int rawOffset);
57 static Tizen::Base::Collection::IMap* GetAvailableTimeZonesN(U_ICU_NAMESPACE::StringEnumeration* pIcuTZStrList);
59 static Tizen::Locales::TimeZone GetSystemTimeZone(void);
60 static result IsSupportedLocale(const Tizen::Locales::Locale& locale, bool& isSupportedLocale);
62 }; // _LocaleManagerImpl
66 #endif // _FLCL_INTERNAL_LOCALE_MANAGER_IMPL_H_