complication_shape_type type,
complication_h *created_handle);
int complication_destroy(complication_h handle);
-int complication_get_provider_id(const bundle *candidate,
- const char **provider_id);
-int complication_get_type(const bundle *candidate,
- complication_type *cur_type);
int complication_get_short_text_data(bundle *data, char **text, char **icon,
char **title);
int complication_get_long_text_data(bundle *data, char **text, char **icon,
return COMPLICATION_ERROR_NONE;
}
-extern "C" EXPORT_API int complication_get_provider_id(const bundle* candidate,
- const char** provider_id) {
- if (candidate == NULL || provider_id == NULL)
- return COMPLICATION_ERROR_INVALID_PARAMETER;
-
- char* val = NULL;
-
- bundle_get_str(const_cast<bundle*>(candidate),
- Complication::GetProviderIdKey(), &val);
- if (val != NULL)
- *provider_id = val;
- else
- return COMPLICATION_ERROR_INVALID_PARAMETER;
-
- return COMPLICATION_ERROR_NONE;
-}
-
-extern "C" EXPORT_API int complication_get_type(const bundle* candidate,
- complication_type* cur_type) {
- if (candidate == NULL || cur_type == NULL)
- return COMPLICATION_ERROR_INVALID_PARAMETER;
-
- char* val = NULL;
-
- bundle_get_str(const_cast<bundle*>(candidate),
- Complication::GetProviderTypeKey(), &val);
- if (val != NULL)
- *cur_type = static_cast<complication_type>(atoi(val));
- else
- return COMPLICATION_ERROR_INVALID_PARAMETER;
-
- return COMPLICATION_ERROR_NONE;
-}
-
extern "C" EXPORT_API int complication_get_short_text_data(bundle* data,
char** text, char** icon, char** title) {
}
return COMPLICATION_ERROR_NONE;
-}
\ No newline at end of file
+}
*/
int editor_is_setup_app_exist(const editable_h handle, bool *exist);
+int editor_get_camplication_provider_id(const bundle *camplication,
+ const char **provider_id);
+int editor_get_camplication_type(const bundle *camplication,
+ complication_type *cur_type);
+
/**
* @}
*/
return COMPLICATION_ERROR_NONE;
}
+
+extern "C" EXPORT_API int editor_get_complication_provider_id(
+ const bundle* complication, const char **provider_id) {
+ if (complication == NULL || provider_id == NULL)
+ return COMPLICATION_ERROR_INVALID_PARAMETER;
+
+ char *val = NULL;
+
+ bundle_get_str(const_cast<bundle*>(complication),
+ Complication::GetProviderIdKey(), &val);
+ if (val != NULL)
+ *provider_id = val;
+ else
+ return COMPLICATION_ERROR_INVALID_PARAMETER;
+
+ return COMPLICATION_ERROR_NONE;
+}
+
+extern "C" EXPORT_API int editor_get_complication_type(
+ const bundle* complication, complication_type *cur_type) {
+ if (complication == NULL || cur_type == NULL)
+ return COMPLICATION_ERROR_INVALID_PARAMETER;
+
+ char* val = NULL;
+
+ bundle_get_str(const_cast<bundle*>(complication),
+ Complication::GetProviderTypeKey(), &val);
+ if (val != NULL)
+ *cur_type = static_cast<complication_type>(atoi(val));
+ else
+ return COMPLICATION_ERROR_INVALID_PARAMETER;
+
+ return COMPLICATION_ERROR_NONE;
+}