static void __flush_event_queue(struct widget_info *info);
static void __destroy_widget_info(gpointer data);
-static inline bool is_widget_feature_enabled(void)
+static inline bool __is_widget_feature_enabled(void)
{
static bool feature = false;
static bool retrieved = false;
return ret;
}
-static void smart_callback_call(Evas_Object *obj, const char *signal, void *cbdata)
+static void __smart_callback_call(Evas_Object *obj, const char *signal, void *cbdata)
{
if (!obj) {
DbgPrint("widget is deleted, ignore smart callback call");
event_info.widget_app_id = info->widget_id;
event_info.event = WIDGET_EVENT_DELETED;
- smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &event_info);
+ __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &event_info);
}
static void __screen_connector_toolkit_evas_updated_cb(const char *appid, const char *instance_id, int pid,
return 0;
}
- smart_callback_call(info->layout, smart_signal, &event_info);
+ __smart_callback_call(info->layout, smart_signal, &event_info);
return 0;
}
{
char app_id[255];
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (__check_privilege("http://tizen.org/privilege/widget.viewer") < 0)
EAPI int widget_viewer_evas_fini(void)
{
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
struct widget_info *info;
int ret;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
struct widget_info *info;
int ret;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
EAPI int widget_viewer_evas_notify_orientation_of_viewer(int orientation)
{
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
return WIDGET_ERROR_NONE;
}
-static void del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
+static void __del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
{
struct widget_info *info = data;
struct widget_evas_event_info evas_info;
evas_info.widget_app_id = info->widget_id;
evas_info.event = WIDGET_EVENT_CREATED;
- smart_callback_call(layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &evas_info);
+ __smart_callback_call(layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &evas_info);
evas_object_data_del(layout, WIDGET_INFO_TAG);
info->layout = NULL;
if (info->event_queue) {
g_hash_table_remove(s_info.widget_table, info->instance_id);
}
-static void resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
+static void __resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
{
Evas_Object *preview = NULL;
struct widget_info *info = data;
event_info.widget_app_id = info->widget_id;
event_info.event = WIDGET_EVENT_CREATED;
- smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
+ __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
__display_overlay_text(info);
return;
}
}
-static void _clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
+static void __clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
{
struct widget_info *info = data;
LOGD("__destroy_widget_info widget_id: %s instance_id %s", info->widget_id, info->instance_id);
if (info->layout) {
- evas_object_event_callback_del(info->layout, EVAS_CALLBACK_DEL, del_cb);
- evas_object_event_callback_del(info->layout, EVAS_CALLBACK_RESIZE, resize_cb);
- elm_object_signal_callback_del(info->layout, "clicked", "reload", _clicked_cb);
+ evas_object_event_callback_del(info->layout, EVAS_CALLBACK_DEL, __del_cb);
+ evas_object_event_callback_del(info->layout, EVAS_CALLBACK_RESIZE, __resize_cb);
+ elm_object_signal_callback_del(info->layout, "clicked", "reload", __clicked_cb);
}
if (info->widget_id)
free(info);
}
-static struct widget_info *create_info(Evas_Object *parent, const char *widget_id, const char *instance_id, const char *content_info)
+static struct widget_info *__create_info(Evas_Object *parent, const char *widget_id, const char *instance_id, const char *content_info)
{
struct widget_info *info;
char err_buf[ERR_BUFFER_SIZE];
evas_object_data_set(info->layout, WIDGET_INFO_TAG, info);
- evas_object_event_callback_add(info->layout, EVAS_CALLBACK_RESIZE, resize_cb, info);
- evas_object_event_callback_add(info->layout, EVAS_CALLBACK_DEL, del_cb, info);
- elm_object_signal_callback_add(info->layout, "clicked", "reload", _clicked_cb, info);
+ evas_object_event_callback_add(info->layout, EVAS_CALLBACK_RESIZE, __resize_cb, info);
+ evas_object_event_callback_add(info->layout, EVAS_CALLBACK_DEL, __del_cb, info);
+ elm_object_signal_callback_add(info->layout, "clicked", "reload", __clicked_cb, info);
info->permanent_delete = 0;
info->disable_preview = 0;
return NULL;
}
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
ErrPrint("Widget Feature is disabled");
return NULL;
return NULL;
}
- widget_instance_info = create_info(parent, widget_id, instance_id, content_info);
+ widget_instance_info = __create_info(parent, widget_id, instance_id, content_info);
if (!widget_instance_info) {
set_last_result(WIDGET_ERROR_FAULT);
ErrPrint("Unable to create an information object");
EAPI int widget_viewer_evas_set_option(widget_evas_conf_e type, int value)
{
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (type < WIDGET_VIEWER_EVAS_MANUAL_PAUSE_RESUME || type > WIDGET_VIEWER_EVAS_UNKNOWN) {
struct widget_info *info;
int ret = WIDGET_ERROR_NONE;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
struct widget_info *info;
int ret = WIDGET_ERROR_NONE;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return NULL;
}
const char *title = NULL;
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return NULL;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
return NULL;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return -1.0f;
if (!s_info.initialized) {
Evas_Object *remote_obj;
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return;
}
Evas_Object *remote_obj;
struct widget_info *info;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return;
}
struct widget_info *info;
screen_connector_toolkit_evas_ops ops;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return;
}
event_info.widget_app_id = info->widget_id;
event_info.event = WIDGET_EVENT_CREATED;
- smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
+ __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
return;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return false;
}
int ret = 0;
Evas_Object *tbm_obj;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
return WIDGET_ERROR_NOT_SUPPORTED;
}
struct widget_info *info;
Evas_Object *tbm_obj;
- if (!is_widget_feature_enabled())
+ if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
if (!s_info.initialized) {
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return false;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return false;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return;
}
{
struct widget_info *info;
- if (!is_widget_feature_enabled()) {
+ if (!__is_widget_feature_enabled()) {
set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
return NULL;
}