2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
18 #include "FUi_AccessibilitySystemSettingLoader.h"
19 #include "FUi_AccessibilityManager.h"
20 #include "FUi_EcoreEvasMgr.h"
21 #include "FUi_EcoreEvas.h"
23 using namespace Tizen::Base;
25 namespace Tizen { namespace Ui {
27 bool _activated = false;
28 bool _screenReaderActivated = false;
30 _AccessibilitySystemSettingLoader::_AccessibilitySystemSettingLoader(_AccessibilityManager& manager)
31 : __pManager(&manager)
33 _screenReaderActivated = IsScreenReaderActivated();
34 _activated = _screenReaderActivated;
36 _AccessibilitySystemSettingLoader::~_AccessibilitySystemSettingLoader(void)
40 _AccessibilitySystemSettingLoader::OnSettingChanged(String& key)
45 _AccessibilitySystemSettingLoader::IsAccessibilityActivated(void)
50 _AccessibilitySystemSettingLoader::IsScreenReaderActivated(void)
52 return GetEcoreEvasMgr()->GetEcoreEvas()->IsAccessibilityScreenReaderActivated();
55 _AccessibilitySystemSettingLoader::GetLargeFontSize(void)
60 _AccessibilitySystemSettingLoader::SetSystemSetting(const Tizen::Base::String key, bool value)
62 if (key == L"AccessibilityActivationStatus")
66 else if (key == L"ScreenReaderActivationStatus")
68 _screenReaderActivated = value;
69 _AccessibilityManager::GetInstance()->OnAccessibilityScreenReaderIsActivated(value);