Revert "Add apis for screen reader text" 78/186478/2
authorMyungKi Lee <mk5004.lee@samsung.com>
Fri, 10 Aug 2018 01:32:55 +0000 (01:32 +0000)
committermk5004.lee <mk5004.lee@samsung.com>
Fri, 10 Aug 2018 01:38:47 +0000 (10:38 +0900)
This reverts commit acf3652f92a9e08879bd2479d89d79b969725c0b.

Change-Id: I1ee90f0681b4267f76fd59696fe87b34fdea3b44
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
watchface-complication-provider/include/watchface-complication-provider.h
watchface-complication-provider/watchface-complication-provider.cc
watchface-complication/include/watchface-complication-internal.h
watchface-complication/include/watchface-complication.h
watchface-complication/watchface-complication.cc

index 5d29ff6..e19dd5b 100644 (file)
@@ -562,33 +562,6 @@ int watchface_complication_provider_data_set_extra_data(bundle *shared_data,
                const char *extra_data);
 
 /**
- * @brief Sets screen reader text for shared data.
- * @since_tizen 5.0
- * @remarks @a screen_reader_text can be added to every type of shared data.
- * @param[in] shared_data The data which will be shared with watch application
- * @param[in] screen_reader_text The screen reader text
- * @return #WATCHFACE_COMPLICATION_ERROR_NONE on success,
- *         otherwise an error code (see #watchface_complication_error_e) on failure
- * @retval #WATCHFACE_COMPLICATION_ERROR_NONE Successful
- * @retval #WATCHFACE_COMPLICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WATCHFACE_COMPLICATION_ERROR_IO_ERROR I/O error
- * @retval #WATCHFACE_COMPLICATION_ERROR_NOT_SUPPORTED Not supported
- * @par Sample code:
- * @code
-#include <watchface-complication-provider.h>
-void _watchface_complication_provider_update_requested_cb(const char *provider_id,
-               const char *req_appid, watchface_complication_type_e type,
-               const bundle *context, bundle *shared_data, void *user_data)
-{
-       watchface_complication_provider_data_set_screen_reader_text(shared_data, "screen reader text");
-}
- * @endcode
- */
-int watchface_complication_provider_data_set_screen_reader_text(
-                       bundle *shared_data, const char *screen_reader_text);
-
-/**
  * @brief Checks whether app is launched by complication touch or not.
  * @since_tizen 5.0
  * @remarks @a is_touch_launch is true when provider app is launched by watchface_complication_touch_launch().
index fcfaee4..675dd98 100644 (file)
@@ -534,17 +534,6 @@ int watchface_complication_provider_data_set_extra_data(
   return _add_bundle_data(shared_data, EXTRA_DATA_KEY, extra_data);
 }
 
-extern "C" EXPORT_API
-int watchface_complication_provider_data_set_screen_reader_text(
-    bundle* shared_data, const char* screen_reader_text) {
-  if (shared_data == NULL || screen_reader_text == NULL) {
-    LOGE("Invalid param");
-    return WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER;
-  }
-
-  return _add_bundle_data(shared_data, SCREEN_READER_TEXT_KEY, screen_reader_text);
-}
-
 extern "C" EXPORT_API int watchface_complication_provider_is_touch_launch(
     app_control_h handle, bool* is_touch_launch) {
   int ret;
index 327c391..2497951 100644 (file)
@@ -32,7 +32,6 @@
 #define IMAGE_KEY "__IMAGE_KEY__"
 #define DATA_TYPE_KEY "__DATA_TYPE_KEY__"
 #define EXTRA_DATA_KEY "__EXTRA_DATA_KEY__"
-#define SCREEN_READER_TEXT_KEY "__SCREEN_READER_TEXT_KEY__"
 #define TOUCH_LAUNCH_CONTEXT_KEY "__TOUCH_LAUNCH_CONTEXT_KEY__"
 #define TOUCH_LAUNCH_PROVIDER_ID_KEY "__TOUCH_LAUNCH_PROVIDER_ID_KEY__"
 #define TOUCH_LAUNCH_TYPE_KEY "__TOUCH_LAUNCH_TYPE_KEY__"
index 01fda7f..7a43347 100644 (file)
@@ -627,38 +627,6 @@ int watchface_complication_data_get_extra_data(const bundle *data,
                        char **extra_data);
 
 /**
- * @brief Gets screen reader text from complication data.
- * @since_tizen 5.0
- * @remarks The @a screen_reader_text should be freed using free().
- * @param[in] data The data received from complication provider app
- * @param[out] screen_reader_text The screen reader text
- * @return #WATCHFACE_COMPLICATION_ERROR_NONE on success,
- *         otherwise an error code (see #watchface_complication_error_e) on failure
- * @retval #WATCHFACE_COMPLICATION_ERROR_NONE Successful
- * @retval #WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WATCHFACE_COMPLICATION_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #WATCHFACE_COMPLICATION_ERROR_NO_DATA No data
- * @retval #WATCHFACE_COMPLICATION_ERROR_NOT_SUPPORTED Not supported
- * @see watchface_complication_updated_cb()
- * @par Sample code:
- * @code
-#include <watchface-complication.h>
-void _on_complication_update(int complication_id,
-               const char *provider_id,
-               watchface_complication_type_e type,
-               const bundle *data, void *user_data)
-{
-       char *screen_reader_text;
-       watchface_complication_data_get_screen_reader_text(data, &screen_reader_text);
-       ...
-       free(screen_reader_text);
-}
- * @endcode
- */
-int watchface_complication_data_get_screen_reader_text(const bundle *data,
-                       char **screen_reader_text);
-
-/**
  * @brief Launches current complication's provider application.
  * @details This function launchs the provider application with extra data,
  *          so that provider can tell it is launched by touching.
index 4381ee0..a808a2d 100644 (file)
@@ -400,16 +400,6 @@ extern "C" EXPORT_API int watchface_complication_data_get_extra_data(
   return __get_complication_data(data, EXTRA_DATA_KEY, extra_data);
 }
 
-extern "C" EXPORT_API int watchface_complication_data_get_screen_reader_text(
-    const bundle* data, char** screen_reader_text) {
-  if (data == NULL || screen_reader_text == NULL) {
-    LOGE("Invalid data !!");
-    return WATCHFACE_COMPLICATION_ERROR_INVALID_PARAMETER;
-  }
-
-  return __get_complication_data(data, SCREEN_READER_TEXT_KEY, screen_reader_text);
-}
-
 extern "C" EXPORT_API int watchface_complication_touch_launch(
     complication_h handle) {
   if (handle == NULL)