extern const Elm_Genlist_Item_Class itc_1text_1icon_2;
extern const Elm_Genlist_Item_Class itc_1text_1icon_2_tb;
-extern const Elm_Genlist_Item_Class itc_dialogue_editfield_title;
extern const Elm_Genlist_Item_Class itc_1icon;
extern const Elm_Genlist_Item_Class itc_1icon_1text_sub;
extern const Elm_Genlist_Item_Class itc_1text_1icon;
extern const Elm_Genlist_Item_Class itc_2text_2;
extern const Elm_Genlist_Item_Class itc_2text;
-extern const Elm_Genlist_Item_Class itc_multiline_2text_1icon;
extern const Elm_Genlist_Item_Class itc_2text_1icon_3;
extern const Elm_Genlist_Item_Class itc_2text_1icon_2;
-extern const Elm_Genlist_Item_Class itc_2text_1icon_6;
-extern const Elm_Genlist_Item_Class itc_2text_1icon_7;
-extern const Elm_Genlist_Item_Class itc_2text_1icon_10;
extern const Elm_Genlist_Item_Class itc_2text_3_parent;
extern const Elm_Genlist_Item_Class itc_2text_3;
extern const Elm_Genlist_Item_Class itc_multiline_text;
extern const Elm_Genlist_Item_Class itc_1text_1icon_3_tb;
extern const Elm_Genlist_Item_Class itc_cm_1text_1icon_2;
-extern const Elm_Genlist_Item_Class itc_sel_all;
extern const Elm_Genlist_Item_Class itc_bg_1icon;
extern const Elm_Genlist_Item_Class itc_1icon_with_no_line;
extern const Elm_Genlist_Item_Class itc_1icon_with_no_padding;
elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}
-#define ADD_GL_SEPARATOR_2(scroller) \
- {\
- Elm_Object_Item *item = elm_genlist_item_append(scroller, &(itc_sep_line), NULL, NULL,\
- ELM_GENLIST_ITEM_NONE, NULL, NULL);\
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
- }
-
#define ADD_GL_LABLE(scroller, str) \
{\
if (str) {\
NULL,\
SWALLOW_Type_LAYOUT_SPECIALIZTION,\
NULL, NULL, 0, str, NULL, NULL);\
- setting_retvm_if(NULL == item_data, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER, "item_data is NULL");\
+ setting_retvm_if(NULL == item_data, NULL, "item_data is NULL");\
elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}\
}
#define ADD_GL_HELP(scroller, str) \
{\
if (str) {\
- Elm_Object_Item *item = elm_genlist_item_append(scroller, &(itc_sep_line), NULL, NULL,ELM_GENLIST_ITEM_NONE, NULL, NULL);\
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
Setting_GenGroupItem_Data *item_data = setting_create_Gendial_field_def(scroller, &itc_multiline_text,\
NULL,\
NULL,\
SWALLOW_Type_LAYOUT_SPECIALIZTION_X,\
NULL, NULL, 0, str, NULL, NULL);\
- setting_retvm_if(NULL == item_data, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER, "item_data is NULL");\
+ setting_retvm_if(NULL == item_data, NULL, "item_data is NULL");\
elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}\
}
-#define ADD_GL_HELP_RET(scroller, str, item_data) \
+#ifdef OLD_GENLIST_STYLE
+#define ADD_GL_HELP_NO_SEP(scroller, str) \
{\
if (str) {\
- Elm_Object_Item *item = elm_genlist_item_append(scroller, &(itc_sep_line), NULL, NULL,ELM_GENLIST_ITEM_NONE, NULL, NULL);\
- elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
- item_data = setting_create_Gendial_field_def(scroller, &itc_multiline_text,\
- NULL,\
- NULL,\
- SWALLOW_Type_LAYOUT_SPECIALIZTION_X,\
- NULL, NULL, 0, str, NULL, NULL);\
- setting_retm_if(NULL == item_data, "item_data is NULL");\
+ Setting_GenGroupItem_Data *item_data = setting_create_Gendial_field_def(scroller, &itc_multiline_text,\
+ NULL,\
+ NULL,\
+ SWALLOW_Type_LAYOUT_SPECIALIZTION_X,\
+ NULL, NULL, 0, str, NULL, NULL);\
+ setting_retvm_if(NULL == item_data, NULL, "item_data is NULL");\
elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}\
}
-
+#else
#define ADD_GL_HELP_NO_SEP(scroller, str) \
{\
if (str) {\
NULL,\
NULL,\
SWALLOW_Type_LAYOUT_SPECIALIZTION_X,\
- NULL, NULL, 0, str, NULL, NULL);\
- setting_retvm_if(NULL == item_data, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER, "item_data is NULL");\
+ NULL, NULL, 0, str, NULL, NULL);\
+ setting_retvm_if(NULL == item_data, NULL, "item_data is NULL");\
elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}\
}
+#endif
+
#define ADD_GL_BUTTON(scroller, btn_str, btn_cb, cb_data) \
{\
NULL,cb_data, SWALLOW_Type_1BUTTON,\
NULL, NULL, 0, btn_str, NULL,\
btn_cb);\
- setting_retvm_if(NULL == item_data, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER, "item_data is NULL");\
+ setting_retvm_if(NULL == item_data, NULL, "item_data is NULL");\
item_data->userdata = cb_data;\
}\
}
NULL,NULL, SWALLOW_Type_1GIF,\
NULL, NULL, 0, NULL, NULL,\
NULL);\
- setting_retvm_if(NULL == item_data, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER, "item_data is NULL");\
+ setting_retvm_if(NULL == item_data, NULL, "item_data is NULL");\
item_data->belongs_to = (int)png_list;\
- elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
+ if (item_data)\
+ elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}\
}
#define ADD_GL_GIF_2(scroller, png_array) \
NULL,NULL, SWALLOW_Type_1GIF,\
NULL, NULL, 0, NULL, NULL,\
NULL);\
- setting_retm_if(NULL == item_data, "item_data is NULL");\
item_data->belongs_to = (int)png_array;\
elm_genlist_item_select_mode_set(item_data->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
}
rdg, radio_idx,\
keyStr,\
NULL);\
- setting_retm_if(NULL == item_data, "item_data is NULL");\
if (item_data) {\
item_data->userdata = cb_data;\
}\
}\
}
-#define ADD_GL_RADIO_GROUP_STYLE(scroller, rdg, radio_idx, keyStr, sel_cb, cb_data, style) \
- {\
- if(!rdg)\
- {\
- rdg = elm_radio_add(scroller);\
- elm_radio_state_value_set(rdg, -1);\
- }\
- if (keyStr && rdg)\
- {\
- Setting_GenGroupItem_Data *item_data = setting_create_Gendial_field_1radio(scroller, &(itc_1text_1icon_2),\
- sel_cb,\
- cb_data,\
- SWALLOW_Type_1RADIO,\
- rdg, radio_idx,\
- keyStr,\
- NULL);\
- setting_retm_if(NULL == item_data, "item_data is NULL");\
- if (item_data) {\
- item_data->userdata = cb_data;\
- item_data->group_style = style;\
- }\
- }\
- }
-
void __toogle_gl_sel(void *data, Evas_Object *obj, void *event_info);
void __toogle_chk_changed(void *data, Evas_Object *obj, void *event_info);
}\
}
+#define _P(pEvasObj) do { \
+ evas_object_event_callback_add(pEvasObj, EVAS_CALLBACK_DEL, setting_protect_cb, &(pEvasObj));\
+ }while(0);
+
/**
* Do process when clicking radio in subitem of expandable item
*/
extern bool setting_create_Gendial_itc(const char *item_style,
Elm_Genlist_Item_Class *itc);
-/**
- * Create group style item
- * @return a pointer to Setting_GenGroupItem_Data
- */
-extern Setting_GenGroupItem_Data *setting_create_Gendial_field_group_titleItem(Evas_Object *genlist,
- const Elm_Genlist_Item_Class *itc,
- Elm_Object_Item *parent,
- Elm_Genlist_Item_Type flag, /* ELM_GENLIST_ITEM_GROUP or ELM_GENLIST_ITEM_NONE */
- const char *keyStr,
- setting_call_back_func gl_sel);
/**
* Create separator style item with title
const char *keyStr,
setting_call_back_func chk_change_cb,
setting_call_back_func btn_clicked_cb);
-/**
- * Create 2radion style item
- * @return a pointer to Setting_GenGroupItem_Data
- */
-extern Setting_GenGroupItem_Data *setting_create_Gendial_field_2radio(
- Evas_Object *genlist,
- const Elm_Genlist_Item_Class *itc,
- setting_call_back_func gl_sel,
- void *sel_data,
- SWALLOW_Type swallow_type,
- Evas_Object *rgd, int chk_status,
- const char *keyStr,
- const char *sub_desc,
- setting_call_back_func chk_change_cb);
-extern Setting_GenGroupItem_Data *setting_create_Gendial_field_1radio_2text(
- Evas_Object *genlist,
- const Elm_Genlist_Item_Class *itc,
- setting_call_back_func gl_sel,
- void *sel_data,
- SWALLOW_Type swallow_type,
- Evas_Object *rgd, int chk_status,
- const char *keyStr,
- char *sub_desc,
- setting_call_back_func chk_change_cb);
+#if 0
/**
* Create common style item with menu icon
* @return a pointer to Setting_GenGroupItem_Data
const char *keyStr, char *sub_desc,
setting_call_back_func
chk_change_cb);
+#endif
extern Setting_GenGroupItem_Data *setting_create_Gendial_field_helpitem_without_bottom_separator(
Evas_Object *genlist,
char *sub_desc,
setting_call_back_func chk_change_cb);
-/**
- * Create 1entry style item - for focusing out
- * @return a pointer to Setting_GenGroupItem_Data
- */
-extern Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_fo(
- Evas_Object *genlist,
- const Elm_Genlist_Item_Class *itc,
- setting_call_back_func gl_sel,
- void *sel_data,
- SWALLOW_Type swallow_type,
- char *l_icon_path,
- char *r_icon_path,
- int chk_status,
- const char *keyStr,
- char *sub_desc,
- setting_call_back_func chk_change_cb,
- setting_call_back_func chk_focus_out_cb,
- Elm_Input_Panel_Layout input_type,
- bool isPasswordFlag,
- bool isFocusFlag,
- int min_char_count,
- int max_char_count,
- int max_byte_count,
- char *accepted,
- char *rejected);
-
-/**
- * Create 1entry style item
- * @return a pointer to Setting_GenGroupItem_Data
- * @todo duplicated with setting_create_Gendial_field_entry_fo
- * merge it
- */
-extern Setting_GenGroupItem_Data *setting_create_Gendial_field_entry(Evas_Object *genlist,
- const Elm_Genlist_Item_Class *itc,
- setting_call_back_func gl_sel,
- void *sel_data,
- SWALLOW_Type swallow_type,
- char *l_icon_path,
- char *r_icon_path,
- int chk_status,
- const char *keyStr,
- char *sub_desc,
- setting_call_back_func chk_change_cb,
- Elm_Input_Panel_Layout input_type,
- bool isPasswordFlag,
- bool isFocusFlag,
- int max_char_count,
- int max_byte_count,
- char *accepted,
- char *rejected);
-
extern Setting_GenGroupItem_Data *setting_create_Gendial_field_entry_with_return_key(Evas_Object *
genlist,
const Elm_Genlist_Item_Class *itc,
void *sel_data,
Elm_Object_Item *parent,
SWALLOW_Type swallow_type,
- Evas_Object *rgd, int chk_status,
- const char *keyStr,
- setting_call_back_func
- chk_change_cb);
-
-/**
- * General function to create a subitem of expandable item with group style
- *
- * @return a pointer to Setting_GenGroupItem_Data
- */
-extern Setting_GenGroupItem_Data *setting_create_Gendial_exp_sub_field_with_group_style(
- Evas_Object *genlist,
- const Elm_Genlist_Item_Class *itc,
- setting_call_back_func gl_sel,
- void *sel_data,
- Elm_Object_Item *parent,
- SWALLOW_Type swallow_type,
- Evas_Object *rgd, int chk_status,
+ Evas_Object *rgd,
+ int chk_status,
const char *keyStr,
- setting_call_back_func
- chk_change_cb,
- setting_group_style group_style);
+ setting_call_back_func chk_change_cb);
/**
* General function to create a parent item of expandable item
void *sel_data,
SWALLOW_Type swallow_type,
const char *keyStr,
- char *sub_desc,
- setting_group_style exp_style,
- setting_group_style con_style);
+ char *sub_desc);
/**
* To make genlist support expandable style item
setting_call_back_func
gl_smart_cb);
-/**
-* The API to let an item which with processbar go into "processing"
-* @return
-*/
-extern void setting_begin_progress_genlist_item(Setting_GenGroupItem_Data *
- data_item);
-/**
-* The API to let an item which with processbar go into "processed"
-* @return
-*/
-extern void setting_finish_progress_genlist_item(Setting_GenGroupItem_Data *
- data_item);
/**
* To create slider object of a genlist item
slider_stop_change_cb, void *cb_data);
/**
+ * To create slider object of a genlist item
+ * @return a slider container object
+ */
+extern Evas_Object *setting_create_5step_slider(Evas_Object *win_main, Evas *evas,
+ const char *l_swallow_path,
+ const char *r_swallow_path,
+ double value,
+ bool indicator,
+ double slider_min,
+ double slider_max,
+ setting_call_back_func
+ slider_change_cb,
+ setting_call_back_func
+ slider_start_change_cb,
+ setting_call_back_func
+ slider_stop_change_cb, void *cb_data);
+
+/**
* The main implement body of create a certain size icon
*/
extern void create_image_box_add_ex(void *data, Evas_Object *win_main,
*/
extern Evas_Object *setting_create_gif(Evas_Object *parent, const char **png_list);
-extern void setting_add_hardkey_features(Evas_Object *popup, void *data);
-extern void ea_popup_back_cb_2(void *data, Evas_Object *obj, void *event_info);
-/**
-* @ create a popup window which contents a progressbar
-* @return a popup window which contents a progressbar
-*/
-extern Evas_Object *setting_create_popup_with_progressbar(void *data,
- Evas_Object *parent,
- char *progressbar_style,
- char *title,
- char *text,
- setting_call_back_func response_cb,
- int timeout,
- bool blocked_flag,
- bool keygrab_flag);
-extern void setting_popup_lang_update(Evas_Object *popup);
-extern void popup_handle_hardkey(void *data, Evas_Object *popup);
-/**
-* @ create a popup window which contents a progressbar and button
-* @return a popup window which contents a progressbar and button
-*/
-extern Evas_Object *setting_create_popup_with_progressbar_btn(void *data,
- Evas_Object *parent,
- char *progressbar_style,
- char *title,
- char *text,
- setting_call_back_func response_cb,
- int timeout,
- int btn_num, ...);
-
-/**
-* The general API to create a certain popup window with more than one button.
-* @return a certain popup window
-*/
-extern Evas_Object *setting_create_popup_with_btn(void *data,
- Evas_Object *parent,
- char *title,
- char *text,
- setting_call_back_func response_cb,
- int timeout,
- int btn_num, ...);
-/**
-* The general API to create a certain popup window
-* @return a certain popup window
-*/
-extern Evas_Object *setting_create_popup_without_btn(void *data,
- Evas_Object *parent,
- char *title,
- char *text,
- setting_call_back_func response_cb,
- int timeout,
- bool blocked_flag,
- bool keygrab_flag);
-
-extern Evas_Object *setting_create_popup_with_progressbar_withobject(void *data,
- Evas_Object *popup,
- Evas_Object *parent,
- char *progressbar_style,
- char *title,
- char *text,
- setting_call_back_func response_cb,
- int timeout,
- bool blocked_flag,
- bool keygrab_flag);
-
-/**
-* The API to create a certain popup window with title
-* @return a certain popup window with title
-*/
-extern int setting_create_simple_popup(void *data,
- Evas_Object *parent,
- char *title,
- char *text);
-/**
-* The API to create a certain popup window with a gif and some buttons
-* @return a certain popup window with title
-*/
-extern Evas_Object *setting_create_popup_with_gif(void *data,
- Evas_Object *parent,
- char *title,
- char *text,
- const char **png_list,/*array end with 'NULL'. */
- setting_call_back_func response_cb,
- int timeout,
- int btn_num, ...);
-
-/**
-* The API to create a certain popup window with a check
-* @return a certain popup window with title
-*/
-extern Evas_Object *setting_create_popup_with_checkview(Evas_Object *parent,
- char *title,
- char *check_str,
- Evas_Object *checkview_content,
- const char *checkview_style,
- Evas_Object **check,
- int timeout);
-extern Evas_Object *setting_create_popup_with_label_and_reverse_btn(void *data,
- Evas_Object *parent,
- char *title,
- char *text,
- setting_call_back_func response_cb,
- int timeout,
- int btn_num, ...);
-
-extern Evas_Object *setting_create_popup_with_label_check(void *data,
- Evas_Object *parent,
- char *title,
- char *content,
- char *check_str,
- Evas_Object **check,
- setting_call_back_func response_cb,
- int timeout,
- int btn_num, ...);
-
-/**
-* The API to create a certain popup window with a image, a check and some buttons
-* @return a certain popup window with title
-*/
-extern Evas_Object *setting_create_popup_with_image_check(void *data,
- Evas_Object *parent,
- char *title,
- char *text1,
- char *text2,
- const char **png_list,
- char *check_str,
- Evas_Object **check,
- setting_call_back_func response_cb,
- int timeout,
- int btn_num, ...);
/**
* Alternate the check object status and its binded vcof value via original vcofn value
*/
* The API to Create a standard layout
* @return a standard layout
*/
-extern Evas_Object *setting_create_win_layout(Evas_Object *win_layout,
- Evas_Object *win_obj);
-extern void setting_create_more_btn_click_cb(void *data, Evas_Object *obj, void *event_info);
-extern void setting_create_more_btn_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
+extern Evas_Object *setting_create_win_layout(Evas_Object *win_obj);
/**
* The API to Create a naviframe
* @return a naviframe
*/
extern void
setting_create_navi_bar_buttons(char *title_str,
- char *lbutton_str, char *rbutton_str,
- char *mbutton_str,
+ char *lbutton_str,
setting_call_back_func lbutton_click_cb,
- setting_call_back_func rbutton_click_cb,
- setting_call_back_func mbutton_click_cb,
void *cb_data, Evas_Object *eo_view,
Evas_Object *navigate_bar,
Evas_Object *titleobj);
Evas_Object *win_obj,
char *title_str,
char *lbutton_str,
- char *rbutton_str,
- char *mbutton_str,
setting_call_back_func lbutton_click_cb,
- setting_call_back_func rbutton_click_cb,
- setting_call_back_func mbutton_click_cb,
void *cb_data,
Evas_Object *eo_view,
Evas_Object **navi_bar,
/****done_list****/
-/**
-* Create selectinfo popup
-*/
-extern void setting_create_sel_info_popup(Evas_Object *parent,
- Evas_Object **selInfoPop_layout,
- Evas_Object **selInfoPop);
-
-extern void setting_create_select_info_popup(Evas_Object **popup, Evas_Object *parent, double timeout, char *content_text, char *style);
-/**
-* The API going to insert a record into noti_list in /opt/dbspace/.notification.db
-* @ you can check the result via "sqlite3 /opt/dbspace/.notification.db" "select * from noti_list;"
-* @ App (quickpanel) use notification_register_detailed_changed_cb to listen all notification/DB events,
-* @ in the function _quickpanel_noti_detailed_changed_cb(), it will check the event type(INSERT,UPDATE..)
-*/
-extern void setting_create_quickpannel_notification(const char *pkgname, int noti_type,
- int ly_type, const char *title,
- const char *content, const char *image, int *noti_id);
-
-extern void setting_remove_quickpannel_notification(const char *pkgname, int noti_type, int *noti_id);
-
-
/*The API is going to register a message to NOTIFICATION_STATUS_MESSAGE_KEY, and the message will be shown in indicator
* @ Quickpannel App save the value of var message, and it supply notification_status_monitor_message_cb_set,
* @ in which, Indicator can set process of vconf(NOTIFICATION_STATUS_MESSAGE_KEY) change event,in the call __message_callback,
* @ it will invoke indicator_part_text_emit_by_win(win,"message.text.compare", text); to show message you registered
*/
extern void setting_create_indicator_notification(const char *message);
-/**
-* Check if some item is selected in done-list
-*
-* @param[in] list_data
-* @return
-*/
-extern bool setting_done_list_is_some_item_selected(Setting_Done_List_Data *
- list_data);
-
-/**
-* Do process when clicking the check object in the done-list item
-*/
-extern void setting_done_list_Gendial_chk_btn_cb(void *data, Evas_Object *obj,
- void *event_info);
-
-/**
-* The API to create done-list.
-* @param[in] list_data
-* @return a done-list
-*/
-extern Evas_Object *setting_create_done_list(Setting_Done_List_Data *list_data, const char *title);
extern Evas_Object *setting_create_done_list_with_image(Setting_Done_List_Data *list_data, const char *title);
extern void setting_genlist_item_disabled_set(Setting_GenGroupItem_Data *item_data, int disable);
-extern void __add_gl_tts_feature(Elm_Object_Item *item);
-extern void setting_genlist_item_groupstyle_set(Setting_GenGroupItem_Data *list_item, setting_group_style group_style);
-
/**
* To resize a evas object, such as, icon, button..
extern char *setting_customize_text(const char *input_str, const int font_size,
const char *color, const char *align);
-extern void setting_set_tts_info(Evas_Object *obj, const char *label,
- const char *traits, const char *state,
- const char *guide);
extern void setting_go_to_top(Evas_Object *content);
/*
extern void setting_check_genlist_item_bottom_line(Elm_Object_Item *item);
extern void __gl_realized_cb(void *data, Evas_Object *obj, void *event_info);
-extern void setting_set_tts_info(Evas_Object *obj, const char *label,
- const char *traits, const char *state,
- const char *guild);
extern void setting_entry_entry_set(Evas_Object *entry, const char *text, const int font_size);
-extern void setting_genlist_item_groupstyle_set(Setting_GenGroupItem_Data *list_item, setting_group_style group_style);
extern void setting_update_gl_item_chk_status(Setting_GenGroupItem_Data *item_data, int status);
extern void setting_force_update_gl_item_chk_status(Setting_GenGroupItem_Data *item_data, int status);
extern void setting_conformant_keypad_state(Evas_Object *conform, bool enable);
-extern void __popup_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
-extern void __popup_event_set(Evas_Object *popup, void *data,
- setting_call_back_func response_cb,
- int timeout,/*to control the timeout time */
- bool blocked_flag,/*to control whether to block the screen */
- bool keygrab_flag/*to control whether to block the 'Home key' */
- );
-
extern Evas_Object *setting_create_navibar_title_text_btn(Evas_Object *parent, const char *text, Evas_Smart_Cb func, void *data);
-/*help widget */
-#if SUPPORT_HELPUI
-extern void setting_help_popup_circle_block_create(Evas_Object *win, Evas_Object *parent, Evas_Object **circle,
- Evas_Object **popup, char *string_id, int x, int y, Evas_Coord_Rectangle *rect);
-extern void setting_help_popup_circle_block_delete(Evas_Object *win, Evas_Object **circle, Evas_Object **popup);
-extern void setting_help_popup_circle_block_move(Evas_Object *win, Evas_Object *circle, Evas_Object *popup, int x,
- int y, Evas_Coord_Rectangle *rect);
-extern void setting_help_popup_circle_unblock_create(Evas_Object *parent, Evas_Object **circle,
- Evas_Object **popup, char *string_id, int x, int y);
-extern void setting_help_popup_block_create(Evas_Object *win, Evas_Object *parent,
- Evas_Object **popup, char *string_id, int x, int y, Evas_Coord_Rectangle *rect);
-extern void setting_help_popup_unblock_create(Evas_Object *parent,
- Evas_Object **popup, char *string_id, int x, int y);
-extern void setting_help_popup_block_move(Evas_Object *win, Evas_Object *popup, int x, int y,
- Evas_Coord_Rectangle *rect);
-#endif
-
-#define SWIP_EFFECT_ENABLE(ly_main, tabbar) setting_tabbar_enable_swip_effect(ly_main, tabbar)
-#define SWIP_EFFECT_DISABLE(ly_main, tabbar) setting_tabbar_disable_swip_effect(ly_main, tabbar)
extern void setting_tabbar_enable_swip_effect(Evas_Object *ly_main, Evas_Object *tabbar);
extern void setting_tabbar_disable_swip_effect(Evas_Object *ly_main, Evas_Object *tabbar);
-extern void setting_obj_listen_on(Evas_Object *obj, const char *vconf, vconf_callback_fn cb, void *data);
-extern void setting_genlist_unregister_tts_access_highlight(Evas_Object *obj, const char *itc);
-extern void setting_decorate_image(Evas_Object *obj, const char *code_style);
-
+extern void setting_decorate_image_RGBA(Evas_Object *obj, int r, int g, int b, int a);
+extern void setting_protect_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
extern char *__setting_phone_lang_get_by_pattern(const char *locale, const char *skeleton);
+///////////////////////////////////////////////////////
+extern void setting_popup_del_cb(void *data, Evas_Object *obj, void *event_info);
+extern void setting_popup_event_set(Evas_Object *popup, void *data,
+ setting_call_back_func response_cb,
+ int timeout,/*to control the timeout time */
+ bool blocked_flag,/*to control whether to block the screen */
+ bool keygrab_flag/*to control whether to block the 'Home key' */
+ );
+
+/*********************************************************
+ * @brief The general API to create a default popup window
+ *
+ * @param data application context
+ * @param parent parent window
+ * @param title popup title
+ * @param text popup text
+ * @param response_cb called When btn was clicked
+ * @param timeout timeout sec
+ * @param blocked_flag to control whether to block the screen
+ * @param keygrab_flag to control whether to block key
+ * @param btn_num btn number
+ * @param ... btn text
+ *
+ * @return a certain popup window
+ **********************************************************/
+EXPORT_PUBLIC Evas_Object *setting_create_popup(void *data,
+ Evas_Object *parent,
+ char *title,
+ char *text,
+ setting_call_back_func response_cb,
+ int timeout,
+ bool blocked_flag,
+ bool keygrab_flag,
+ int btn_num, ...);
+
+
+/*********************************************************
+ * @brief The general API to create a default popup window
+ *
+ * @param data application context
+ * @param parent parent window
+ * @param title popup title
+ * @param text popup text
+ * @param response_cb called When btn was clicked
+ * @param back_cb called When popup is closed without button touching
+ * @param timeout timeout sec
+ * @param blocked_flag to control whether to block the screen
+ * @param keygrab_flag to control whether to block key
+ * @param btn_num btn number
+ * @param ... btn text
+ *
+ * @return a certain popup window
+ **********************************************************/
+EXPORT_PUBLIC Evas_Object *setting_create_popup2(void *data,
+ Evas_Object *parent,
+ char *title,
+ char *text,
+ setting_call_back_func response_cb,
+ setting_call_back_func back_cb,
+ int timeout,
+ bool blocked_flag,
+ bool keygrab_flag,
+ int btn_num, ...);
+
+
+
+/******************************************************************
+ * @brief The general API to create a popup window which contents a progressbar
+ *
+ * @param data application context
+ * @param parent parent window
+ * @param progressbar_style progressbar style(process_small/process_medium/process_large)
+ * @param title popup title
+ * @param text popup text
+ * @param response_cb called When btn was clicked
+ * @param timeout timeout sec
+ * @param blocked_flag to control whether to block the screen
+ * @param keygrab_flag to control whether to block key
+ *
+ * @return a popup window which contents a progressbar
+ *******************************************************************/
+EXPORT_PUBLIC Evas_Object *setting_create_popup_with_progressbar(void *data,
+ Evas_Object *parent,
+ char *progressbar_style,
+ char *title,
+ char *text,
+ setting_call_back_func response_cb,
+ int timeout,
+ bool blocked_flag,
+ bool keygrab_flag,
+ int btn_num, ...);
+
+/******************************************************************
+ * @brief The general API to create a popup window which contents a genlist
+ *
+ * @param genlist genlist
+ * @param data application context
+ * @param parent parent window
+ * @param title popup title
+ * @param response_cb called When btn was clicked
+ * @param timeout timeout sec
+ * @param blocked_flag to control whether to block the screen
+ * @param keygrab_flag to control whether to block key
+ *
+ * @return a popup window which contents a genlist
+ *******************************************************************/
+EXPORT_PUBLIC Evas_Object *setting_create_popup_with_list(Evas_Object **genlist,
+ void *data,
+ Evas_Object *parent,
+ const char *title,
+ setting_call_back_func response_cb,
+ int timeout,
+ bool blocked_flag,
+ bool keygrab_flag,
+ int btn_num, ...);
+
#endif /* __SETTING_COMMON_DRAW_WIDGET_H__ */