2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FLclLocaleManager.cpp
20 * @brief This is the implementation file for LocaleManager class.
24 #include <unique_ptr.h>
25 #include <FBaseSysLog.h>
26 #include <FLclLocaleManager.h>
27 #include "FLcl_LocaleManagerImpl.h"
29 using namespace Tizen::Base;
30 using namespace Tizen::Base::Collection;
31 using namespace Tizen::Base::Utility;
33 namespace Tizen { namespace Locales
36 LocaleManager::LocaleManager(void)
37 : __pLocaleManagerImpl(null)
42 LocaleManager::~LocaleManager(void)
48 LocaleManager::Construct(void)
55 LocaleManager::GetSystemLocale(void) const
58 return _LocaleManagerImpl::GetSystemLocale();
63 LocaleManager::GetAvailableLocalesN(void) const
66 return _LocaleManagerImpl::GetAvailableLocalesN();
71 LocaleManager::GetSelectedLanguage(void) const
74 return _LocaleManagerImpl::GetSelectedLanguage();
79 LocaleManager::GetAvailableLanguagesN(void) const
83 return _LocaleManagerImpl::GetAvailableLanguagesN();
88 LocaleManager::GetAvailableTimeZonesN(void) const
91 IMap* pTimeZoneMap = _LocaleManagerImpl::GetAvailableTimeZonesN();
92 IList* pTimeZoneList = pTimeZoneMap->GetKeysN();
93 pTimeZoneMap->RemoveAll();
100 LocaleManager::GetAvailableTimeZonesN(int rawOffset) const
103 IMap* pTimeZoneMap =_LocaleManagerImpl::GetAvailableTimeZonesN(rawOffset);
104 IList* pTimeZoneList = pTimeZoneMap->GetKeysN();
105 pTimeZoneMap->RemoveAll();
107 return pTimeZoneList;
111 LocaleManager::GetSystemTimeZone(void) const
114 return _LocaleManagerImpl::GetSystemTimeZone();
118 LocaleManager::IsSupportedLocale(const Locale& locale, bool& isSupportedLocale)
121 return _LocaleManagerImpl::IsSupportedLocale(locale, isSupportedLocale);