diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-04-21 15:40:33 +0200 |
---|---|---|
committer | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-04-23 10:37:32 +0200 |
commit | f32d2441e9985c6754879eb3abb0dc7c7a8a33ce (patch) | |
tree | 93b7b860c8b809414d5d6dd31181f2fe1ff9b542 /src | |
parent | b7fd02bee398d666fa74eba0e185764b0d50ab23 (diff) | |
download | settings-f32d2441e9985c6754879eb3abb0dc7c7a8a33ce.tar.gz settings-f32d2441e9985c6754879eb3abb0dc7c7a8a33ce.tar.bz2 settings-f32d2441e9985c6754879eb3abb0dc7c7a8a33ce.zip |
Add accessibility submenu.
Accessibility submenu will be used to launch accessibility
features, like screen reader, screen magnification etc.
Change-Id: I0363ae611e00b286e6095ce927dc2a783bae31a9
Diffstat (limited to 'src')
-rw-r--r-- | src/settings_provider.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/settings_provider.cpp b/src/settings_provider.cpp index ddf3bc5..3ad54cd 100644 --- a/src/settings_provider.cpp +++ b/src/settings_provider.cpp @@ -42,6 +42,8 @@ #define KEY_SUBTITLE_LANGUAGE "db/menu/subtitle/subtitlelanguage" #define KEY_SYSTEM_LANGUAGE "db/menu_widget/language" #define KEY_SYSTEM_COUNTRY "db/menu_widget/regionformat" +#define KEY_ACCESSIBILITY_SCREEN_READER "db/menu/accessibility/screen_reader" +#define KEY_ACCESSIBILITY_MAGNIFIER "db/menu/accessibility/magnifier" #define SYSTEM_LANGUAGE_DEFAULT_VALUE "en_US.utf8" #define WAKEUP_TIMER_SETUP_DEFAULT_VALUE "OFF" @@ -67,7 +69,9 @@ enum item_type { SYSTEM_RESET, SYSTEM_PASSCODE, SYSTEM_CLOCK_MODE, - CHANNEL_LOCK + CHANNEL_LOCK, + SCREEN_READER, + MAGNIFIER, }; struct keymap { @@ -151,6 +155,14 @@ static struct keymap item_keymap[] = { { "settings/channel/channel_lock", CHANNEL_LOCK + }, + { + "settings/accessibility/screen_reader", + SCREEN_READER + }, + { + "settings/accessibility/magnifier", + MAGNIFIER } }; @@ -611,6 +623,12 @@ static int _set_bool(const char *key, const int val) case CHANNEL_LOCK: r = vconf_set_bool(KEY_CHANNEL_LOCK, val); break; + case SCREEN_READER: + r = vconf_set_bool(KEY_ACCESSIBILITY_SCREEN_READER, val); + break; + case MAGNIFIER: + r = vconf_set_bool(KEY_ACCESSIBILITY_MAGNIFIER, val); + break; default: break; } @@ -640,6 +658,12 @@ static int _get_bool(const char *key, int *val) case CHANNEL_LOCK: r = vconf_get_bool(KEY_CHANNEL_LOCK, val); break; + case SCREEN_READER: + r = vconf_get_bool(KEY_ACCESSIBILITY_SCREEN_READER, val); + break; + case MAGNIFIER: + r = vconf_get_bool(KEY_ACCESSIBILITY_MAGNIFIER, val); + break; default: break; } |