m_Encryption(Encryption_Disable),
m_BackgroundSupport(BackgroundSupport_Disable),
m_ProgressbarPresence(ProgressBar_Disable),
- m_HWkeyEvent(HWkeyEvent_Enable)
+ m_HWkeyEvent(HWkeyEvent_Enable),
+ m_Accessibility(Accessibility_Enable)
{}
WidgetSettingList::WidgetSettingList(WrtDB::WidgetSettings &widgetSettings)
m_BackgroundSupport = BackgroundSupport_Disable;
m_ProgressbarPresence = ProgressBar_Disable;
m_HWkeyEvent = HWkeyEvent_Enable;
+ m_Accessibility = Accessibility_Enable;
FOREACH(it, widgetSettings)
{
} else if (value == SETTING_VALUE_DISABLE) {
m_ContextMenu = ContextMenu_Disable;
} else {
- LogError("Invalid contextmenu value!! [" <<
- value << "]");
+ LogError("Invalid contextmenu value!! [" << value << "]");
m_ContextMenu = ContextMenu_Enable;
}
} else if (name == SETTING_NAME_ENCRYPTION) {
{
m_Encryption = Encryption_Disable;
} else {
- LogError("Invalid encryption value!! [" <<
- value << "]");
+ LogError("Invalid encryption value!! [" << value << "]");
m_Encryption = Encryption_Disable;
}
} else if (name == SETTING_NAME_BACKGROUND_SUPPORT) {
} else if (value == SETTING_VALUE_HWKEY_EVENT_DISABLE) {
m_HWkeyEvent = HWkeyEvent_Disable;
} else {
- LogError("Invalid hwkey-event value!! [" <<
- value << "]");
+ LogError("Invalid hwkey-event value!! [" << value << "]");
m_HWkeyEvent = HWkeyEvent_Enable;
}
+ } else if (name == SETTING_NAME_ACCESSIBILITY) {
+ if (value == SETTING_VALUE_ACCESSIBILITY_ENABLE) {
+ m_Accessibility = Accessibility_Enable;
+ } else if (value == SETTING_VALUE_ACCESSIBILITY_DISABLE) {
+ m_Accessibility = Accessibility_Disable;
+ } else {
+ LogError("Invalid accessibility value!! [" << value << "]");
+ m_Accessibility = Accessibility_Enable;
+ }
} else {
LogError("Invalid setting name!! [" << name << "]");
}
return m_HWkeyEvent;
}
+WidgetSettingAccessibility WidgetSettingList::getAccessibility() const
+{
+ LogDebug("m_Accessibility: " << m_Accessibility);
+
+ return m_Accessibility;
+}
+
bool WidgetSettingList::operator ==(const WidgetSettingList& other) const
{
return m_RotationLock == other.m_RotationLock &&
m_BackgroundSupport == other.m_BackgroundSupport &&
m_UserAgent == other.m_UserAgent &&
m_ProgressbarPresence == other.m_ProgressbarPresence &&
- m_HWkeyEvent == other.m_HWkeyEvent;
+ m_HWkeyEvent == other.m_HWkeyEvent &&
+ m_Accessibility == other.m_Accessibility;
}
L"progressbar-presence";
static const DPL::String SETTING_NAME_HWKEY_EVENT =
L"hwkey-event";
+static const DPL::String SETTING_NAME_ACCESSIBILITY =
+ L"accessibility";
static const DPL::String SETTING_VALUE_ENABLE =
L"enable";
static const DPL::String SETTING_VALUE_DISABLE =
L"enable";
static const DPL::String SETTING_VALUE_HWKEY_EVENT_DISABLE =
L"disable";
+static const DPL::String SETTING_VALUE_ACCESSIBILITY_ENABLE =
+ L"enable";
+static const DPL::String SETTING_VALUE_ACCESSIBILITY_DISABLE =
+ L"disable";
enum WidgetSettingScreenLock
{
HWkeyEvent_Disable
};
+enum WidgetSettingAccessibility
+{
+ Accessibility_Enable, /* Default */
+ Accessibility_Disable
+};
+
class WidgetSettingList
{
public:
WidgetSettingHWkeyEventPresence getHWkeyEvent() const;
+ WidgetSettingAccessibility getAccessibility() const;
+
bool operator ==(const WidgetSettingList& other) const;
private:
WidgetSettingBackgroundSupport m_BackgroundSupport;
WidgetSettingProgressBarPresence m_ProgressbarPresence;
WidgetSettingHWkeyEventPresence m_HWkeyEvent;
+ WidgetSettingAccessibility m_Accessibility;
std::string m_UserAgent;
};
typedef std::shared_ptr<WidgetSettingList> WidgetSettingListPtr;