diff options
author | Prasoon Singh <prasoon.16@samsung.com> | 2016-12-01 21:41:43 +0530 |
---|---|---|
committer | Prasoon Singh <prasoon.16@samsung.com> | 2016-12-02 20:10:12 +0530 |
commit | d52076a0329b7bf78d190c9116948b43a5cc087a (patch) | |
tree | dc8fb8b05454ae90af8ee1d612e39116bf2bbf8f /include | |
parent | 830902c774290716fbff3d3378a7c8d694189cc3 (diff) | |
download | accessibility-setting-d52076a0329b7bf78d190c9116948b43a5cc087a.tar.gz accessibility-setting-d52076a0329b7bf78d190c9116948b43a5cc087a.tar.bz2 accessibility-setting-d52076a0329b7bf78d190c9116948b43a5cc087a.zip |
[atspi][accessibility-aetting] Made changes for accessibility app as per UXHEADsubmit/tizen_3.0/20161206.072650submit/tizen_3.0/20161205.040254accepted/tizen/3.0/wearable/20161207.012103master
Change-Id: I7c4b2346d15a29906529bbae1c63bb70a7744ded
Diffstat (limited to 'include')
-rw-r--r-- | include/setting-accessibility-debug.h | 79 | ||||
-rw-r--r-- | include/setting-accessibility.h | 64 |
2 files changed, 143 insertions, 0 deletions
diff --git a/include/setting-accessibility-debug.h b/include/setting-accessibility-debug.h new file mode 100644 index 0000000..8e3d752 --- /dev/null +++ b/include/setting-accessibility-debug.h @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +#define _DLOG_USED +#ifdef _DLOG_USED + +#include <dlog.h> + +#ifdef LOG_TAG +#undef LOG_TAG +#define LOG_TAG "W-ACCESSIBILITY-SETTING" +#endif + +#define DBG(fmt , args...) \ + do { \ + LOGD("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + +#define INFO(fmt , args...) \ + do { \ + LOGI("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + +#define WARN(fmt , args...) \ + do { \ + LOGI("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + +#define ERR(fmt , args...) \ + do { \ + LOGI("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + + +#define __FREE(del, arg) do { \ + if (arg) { \ + del((void *)(arg)); /*cast any argument to (void*) to avoid build warring*/\ + arg = NULL; \ + } \ + } while (0); + +#define FREE(arg) __FREE(free, arg) + +#define access_retvm_if(expr, val, fmt, arg...) do { \ + if (expr) { \ + ERR(fmt, ##arg); \ + return (val); \ + } \ + } while (0); + +#define access_retm_if(expr, fmt, arg...) do { \ + if (expr) { \ + ERR(fmt, ##arg); \ + return; \ + } \ + } while (0); + +#define access_retv_if(expr, val) do { \ + if (expr) { \ + ERR("(%s)", #expr); \ + return (val); \ + } \ +} while (0) + +#define access_ret_if(expr) do { \ + if (expr) { \ + ERR("(%s)", #expr); \ + return ; \ + } \ +} while (0) + +#endif diff --git a/include/setting-accessibility.h b/include/setting-accessibility.h new file mode 100644 index 0000000..72857a1 --- /dev/null +++ b/include/setting-accessibility.h @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + +#ifndef _SETTING_ACCESSIBILITY_H_ +#define _SETTING_ACCESSIBILITY_H_ + +#include <Elementary.h> +#include <appcore-efl.h> +#include <app.h> +#include <vconf.h> +#include <vconf-keys.h> +#include <efl_extension.h> + +#define VCONFKEY_SETAPPL_ACCESSIBILITY_TTS "db/setting/accessibility/tts" +#define SETTING_ACCESSIBILITY_PACKAGE_NAME "accessibility-setting" +#define EDJE_PATH TZ_SYS_RO_APP_D"/org.tizen.accessibility-setting/res/edje/accessibility-setting.edj" +#define _(s) dgettext(SETTING_ACCESSIBILITY_PACKAGE_NAME, s) + +typedef enum { + SETTING_ACCESSIBILITY_MENU_TITLE, + SETTING_ACCESSIBILITY_MENU_VISION +} SettingAccessibilityMenu; + +typedef enum { + SETTING_ACCESSIBILITY_VISION_TITLE, + SETTING_ACCESSIBILITY_VISION_SCREEN_READER, +} SettingAccessibilityVisionMenu; + +typedef struct { + SettingAccessibilityMenu menu; + Elm_Object_Item *pObjItem; +} SettingAccessibilityMenuItemData; + +typedef struct { + SettingAccessibilityVisionMenu menu; + Elm_Object_Item *pObjItem; + Evas_Object *pObj_check; +} SettingAccessibilityVisionItemData; + +typedef struct { + Evas_Object *pObj_win_main; + Evas_Object *pObj_conform; +#ifdef FEATURE_SETTING_SUPPORT_ROTARY + Eext_Circle_Surface *pObj_circle_surface; +#endif + Evas_Object *pObj_layout_main; + Evas_Object *pObj_nf; + +} SettingAccessibilityAppData; + +Evas_Object* setting_accessibility_vision_create_view(void *data); + +Evas_Object *setting_accessibility_menu_create_view(void *data); + + +#endif /* _SETTING_ACCESSIBILITY_H_ */ |