Define CAPIs. 32/72532/1
authorWoochan Lee <wc0917.lee@samsung.com>
Wed, 1 Jun 2016 10:25:45 +0000 (19:25 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Wed, 1 Jun 2016 10:26:15 +0000 (19:26 +0900)
Change-Id: I21c4dcb3d6a3540bc98258175f2357cf658af4e1

src/include/efl/mobile/c/ui_app.h
src/include/efl/mobile/c/ui_menu.h
src/include/efl/mobile/c/ui_popup.h
src/include/efl/mobile/c/ui_view.h
src/include/efl/mobile/c/ui_viewmgr.h
src/lib/efl/mobile/c/ui_app.cpp
src/lib/efl/mobile/c/ui_menu.cpp
src/lib/efl/mobile/c/ui_popup.cpp
src/lib/efl/mobile/c/ui_view.cpp
src/lib/efl/mobile/c/ui_viewmgr.cpp

index 8083f64dad9cc49958e6763a0b3b63999b3bf4a0..50d38f389fc861c545706c3d567150bec60abb73 100644 (file)
@@ -10,6 +10,8 @@ extern "C" {
        bool ui_app_init(const char *pkg, const char *locale_dir);
        int ui_app_run(int argc, char **argv, ui_app_lifecycle_callback_s *event_callback, void *data);
        ui_viewmgr *ui_app_viewmgr_get();
+       //Is it needed?
+       ui_app *ui_app_app_get();
 #ifdef __cplusplus
 }
 #endif
index 0c6a5ae575c54312b02c9c571c85ef3504aa4b8d..ae567bb666e9dc7ccbf269b9d476ccb3e29f062c 100644 (file)
@@ -8,6 +8,15 @@ namespace efl_viewmananger
 extern "C" {
 #endif
        bool ui_menu_content_set(ui_menu *menu, Elm_Ctxpopup *ctxpopup);
+       Elm_Ctxpopup *ui_menu_content_unset(ui_menu *menu);
+       bool ui_menu_activate(ui_menu *menu);
+       bool ui_menu_deactivate(ui_menu *menu);
+       bool ui_menu_activate_get(ui_menu *menu);
+       //Is it needed?
+       Evas_Object *ui_menu_base_get(ui_menu *menu);
+       int ui_menu_degree_get(ui_menu *menu);
+       Elm_Ctxpopup ui_menu_content_get(ui_menu *menu);
+       ui_view *ui_menu_view_get(ui_menu *menu);
 #ifdef __cplusplus
 }
 #endif
index 338c4eb4e294b6ab301860fcdb1f771767c5ad31..660547e257ebdf44b9ea26a0ad7a14ee89f6fbd2 100644 (file)
@@ -9,8 +9,16 @@ extern "C" {
 #endif
        ui_popup *ui_popup_create(ui_view *view);
        bool ui_popup_content_set(ui_popup *popup, Elm_Popup *elm_popup);
+       Elm_Popup *ui_popup_content_unset(ui_popup *popup);
        bool ui_popup_activate(ui_popup *popup);
+       bool ui_popup_deactivate(ui_popup *popup);
        void ui_popup_del(ui_popup *popup);
+       bool ui_popup_activate_get(ui_popup *popup);
+       //Is it needed?
+       Evas_Object *ui_popup_base_get(ui_popup *popup);
+       int ui_popup_degree_get(ui_popup *popup);
+       Elm_Popup ui_popup_content_get(ui_popup *popup);
+       ui_view *ui_popup_view_get(ui_popup *popup);
 #ifdef __cplusplus
 }
 #endif
index 9d0176ec7a798e062cdb2c3d4156a5bb5964bb97..a9b0e067b424db471850a319e58d05fbf2bfd0cc 100644 (file)
@@ -41,23 +41,42 @@ extern "C" {
                ui_view_event_menu_cb menu;
        } ui_view_event_callback_s;
 
-       ui_view* ui_standard_view_create(const char *name);
-       ui_view* ui_view_create(const char *name);
-       bool ui_view_lifecycle_callbacks_set(ui_view *view, ui_view_lifecycle_callback_s *lifecycle_callback, void *data);
-       Evas_Object* ui_view_base_get(ui_view *view);
-       bool ui_view_content_set(ui_view *view, Evas_Object *content);
+       ui_view *ui_standard_view_create(const char *name);
        bool ui_standard_view_content_set(ui_view *view, Evas_Object *content,
                                                                          const char *title, const char *subtitle,
                                                                          Evas_Object *title_left_btn, Evas_Object *title_right_btn);
        bool ui_standard_view_title_badge_set(ui_view *view, const char *badge_text);
-       void ui_view_indicator_set(ui_view *view, ui_view_indicator indicator);
+       bool ui_standard_view_sub_title_set(ui_view *view, const char *text);
+       bool ui_standard_view_title_right_btn_set(ui_view *view, Evas_Object *title_right_btn);
+       bool ui_standard_view_title_left_btn_set(ui_view *view, Evas_Object *title_left_btn);
+       bool ui_standard_view_title_set(ui_view *view, const char *text);
        bool ui_standard_view_toolbar_set(ui_view *view, Elm_Toolbar *toolbar);
-       void ui_view_removable_content(ui_view *view, bool remove);
+       bool ui_standard_view_title_visible_set(ui_view *view, bool visible, bool anim);
+       Elm_Button ui_standard_view_title_right_btn_unset(ui_view *view);
+       Elm_Button ui_standard_view_title_left_btn_unset(ui_view *view);
+       Elm_toolbar ui_standard_view_toolbar_unset(ui_view *view);
+       Elm_Button ui_standard_view_title_right_btn_get(ui_view *view);
+       Elm_Button ui_standard_view_title_left_btn_get(ui_view *view);
+       Elm_toolbar ui_standard_view_toolbar_get(ui_view *view);
+
+       ui_view *ui_view_create(const char *name);
+       bool ui_view_lifecycle_callbacks_set(ui_view *view, ui_view_lifecycle_callback_s *lifecycle_callback, void *data);
+       Evas_Object* ui_view_base_get(ui_view *view);
+       bool ui_view_content_set(ui_view *view, Evas_Object *content);
+       Evas_Object *ui_view_content_unset(ui_view *view);
+       void ui_view_indicator_set(ui_view *view, ui_view_indicator indicator);
+       void ui_view_removable_content_set(ui_view *view, bool remove);
        bool ui_view_event_callbacks_set(ui_view *view, ui_view_event_callback_s *event_callback, void *data);
        int  ui_view_degree_get(ui_view *view);
-       bool ui_standard_view_title_right_btn_set(ui_view *view, Evas_Object *title_right_btn);
        bool ui_view_transition_style_set(ui_view *view, const char *style);
-       bool ui_standard_view_title_visible_set(ui_view *view, bool visible, bool anim);
+       ui_menu *ui_view_menu_get(ui_view *view);
+       bool ui_view_name_set(ui_view *view, const char *name);
+       const char *ui_view_transition_style_get(ui_view *view);
+       const char *ui_view_name_get(ui_view *view);
+       Evas_Object *ui_view_content_get(ui_view *view);
+       ui_view_state ui_view_state_get(ui_view *view);
+       bool ui_view_removable_content_get(ui_view *view);
+       ui_view_indicator ui_view_indicator_get(ui_view *view);
 
 #ifdef __cplusplus
 }
index 610ff8cfe2f314ac3aca823ac7b281c6c76b9a11..e48a211e924a1ebeabceb16057cd75ca97d41e35 100644 (file)
@@ -6,9 +6,21 @@ using namespace efl_viewmananger;
 #ifdef __cplusplus
 extern "C" {
 #endif
+       ui_view *ui_viewmgr_view_push_insert_before(ui_viewmgr *viewmgr, ui_view *view, ui_view *before);
+       ui_view *ui_viewmgr_view_push_insert_after(ui_viewmgr *viewmgr, ui_view *view, ui_view *after);
        ui_view *ui_viewmgr_view_push(ui_viewmgr *viewmgr, ui_view *view);
        bool ui_viewmgr_view_pop(ui_viewmgr *viewmgr);
+       bool ui_viewmgr_activate(ui_viewmgr *viewmgr);
        bool ui_viewmgr_deactivate(ui_viewmgr *viewmgr);
+       Elm_Win ui_viewmgr_window_get(ui_viewmgr *viewmgr);
+       Elm_Conformant ui_viewmgr_conformant_get(ui_viewmgr *viewmgr);
+       ui_view *ui_viewmgr_last_view_get(ui_viewmgr *viewmgr);
+       ui_view *ui_viewmgr_view_get(ui_viewmgr *viewmgr, int idx);
+       Evas_Object *ui_viewmgr_base_get(ui_viewmgr *viewmgr);
+       unsigned int ui_viewmgr_view_count_get(ui_viewmgr *viewmgr);
+       //Is it needed?
+       bool ui_viewmgr_soft_key_need_get(ui_viewmgr *viewmgr);
+       ui_viewmgr *ui_viewmgr_viewmgr_get();
 
        //TODO
        #define UI_VIEWMGR_DEACTIVATE() (ui_viewmgr_deactivate(ui_app_viewmgr_get()))
index 702022449315a8c5a85998d4d497d907fd322e0a..6e6bb97a9e89458651e5724e643e566c1e67bb38 100644 (file)
@@ -98,4 +98,10 @@ extern "C" {
        {
                return app->get_viewmgr();
        }
+
+       ui_app *ui_app_app_get()
+       {
+               //TODO
+               return NULL;
+       }
 }
index 742a235719bdd84260bb28a395dbac5cb8338345..7ebfeca67e6bfd70674a64eee85b69af8b86f667 100644 (file)
@@ -14,5 +14,53 @@ extern "C" {
 
                return menu->set_content(ctxpopup);
        }
+
+       Elm_Ctxpopup *ui_menu_content_unset(ui_menu *menu)
+       {
+               //TODO
+               return NULL;
+       }
+
+       bool ui_menu_activate(ui_menu *menu)
+       {
+               //TODO
+               return 1;
+       }
+
+       bool ui_menu_deactivate(ui_menu *menu)
+       {
+               //TODO
+               return 1;
+       }
+
+       bool ui_menu_activate_get(ui_menu *menu)
+       {
+               //TODO
+               return 1;
+       }
+
+       Evas_Object *ui_menu_base_get(ui_menu *menu)
+       {
+               //TODO
+               return NULL;
+       }
+
+       int ui_menu_degree_get(ui_menu *menu)
+       {
+               //TODO
+               return 0;
+       }
+
+       Elm_Ctxpopup ui_menu_content_get(ui_menu *menu)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_view *ui_menu_view_get(ui_menu *menu)
+       {
+               //TODO
+               return NULL;
+       }
 }
 
index f2783829bdcfad7db2cd55f3164b84ecc57fb0ae..bae909ec6c7c95d40cb14aa8eb1c544a26641aec 100644 (file)
@@ -26,6 +26,12 @@ extern "C" {
                return popup->set_content(elm_popup);
        }
 
+       Elm_Popup *ui_popup_content_unset(ui_popup *popup)
+       {
+               //TODO
+               return NULL;
+       }
+
        bool ui_popup_activate(ui_popup *popup)
        {
                if (!popup)
@@ -37,6 +43,12 @@ extern "C" {
                return popup->activate();
        }
 
+       bool ui_popup_deactivate(ui_popup *popup)
+       {
+               //TODO
+               return 1;
+       }
+
        void ui_popup_del(ui_popup *popup)
        {
                if (!popup)
@@ -47,4 +59,34 @@ extern "C" {
 
                delete(popup);
        }
+
+       bool ui_popup_activate_get(ui_popup *popup)
+       {
+               //TODO
+               return 1;
+       }
+
+       Evas_Object *ui_popup_base_get(ui_popup *popup)
+       {
+               //TODO
+               return NULL;
+       }
+
+       int ui_popup_degree_get(ui_popup *popup)
+       {
+               //TODO
+               return 1;
+       }
+
+       Elm_Popup ui_popup_content_get(ui_popup *popup)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_view *ui_popup_view_get(ui_popup *popup)
+       {
+               //TODO
+               return NULL;
+       }
 }
index 6c2cb4b61e32b746647d94ada85dc126186f88cf..1525805e2ef2113e4945abc59c9d77d92d2e0d83 100644 (file)
@@ -240,6 +240,12 @@ extern "C" {
                return capi_view->set_content(content);
        }
 
+       Evas_Object *ui_view_content_unset(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
        bool ui_standard_view_content_set(ui_view *view, Evas_Object *content,
                                                                          const char *title, const char *subtitle,
                                                                          Evas_Object *title_left_btn, Evas_Object *title_right_btn)
@@ -268,6 +274,24 @@ extern "C" {
                return capi_view->set_title_badge(badge_text);
        }
 
+       bool ui_standard_view_sub_title_set(ui_view *view, const char *text)
+       {
+               //TODO
+               return 1;
+       }
+
+       bool ui_standard_view_title_left_btn_set(ui_view *view, Evas_Object *title_left_btn)
+       {
+               //TODO
+               return 1;
+       }
+
+       bool ui_standard_view_title_set(ui_view *view, const char *text)
+       {
+               //TODO
+               return 1;
+       }
+
        void ui_view_indicator_set(ui_view *view, ui_view_indicator indicator)
        {
                if (!view)
@@ -294,7 +318,7 @@ extern "C" {
                return capi_view->set_toolbar(toolbar);
        }
 
-       void ui_view_removable_content(ui_view *view, bool remove)
+       void ui_view_removable_content_set(ui_view *view, bool remove)
        {
                if (!view)
                {
@@ -385,4 +409,88 @@ extern "C" {
 
                return capi_view->set_title_visible(visible, anim);
        }
+
+       Elm_Button ui_standard_view_title_right_btn_unset(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Elm_Button ui_standard_view_title_left_btn_unset(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Elm_toolbar ui_standard_view_toolbar_unset(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Elm_Button ui_standard_view_title_right_btn_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Elm_Button ui_standard_view_title_left_btn_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Elm_toolbar ui_standard_view_toolbar_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_menu *ui_view_menu_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       bool ui_view_name_set(ui_view *view, const char *name)
+       {
+               //TODO
+               return 1;
+       }
+
+       const char *ui_view_transition_style_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       const char *ui_view_name_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Evas_Object *ui_view_content_get(ui_view *view)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_view_state ui_view_state_get(ui_view *view)
+       {
+               //TODO
+               return 0;
+       }
+
+       bool ui_view_removable_content_get(ui_view *view)
+       {
+               //TODO
+               return 1;
+       }
+
+       ui_view_indicator ui_view_indicator_get(ui_view *view)
+       {
+               //TODO
+               return 0;
+       }
 }
index 56b994c5dcf69f6d894e058a3c105be96f339b1b..b81375c3523ce1074aafbf6c56442d1817b6c748 100644 (file)
@@ -4,6 +4,18 @@
 using namespace efl_viewmanager;
 
 extern "C" {
+       ui_view *ui_viewmgr_view_push_insert_before(ui_viewmgr *viewmgr, ui_view *view, ui_view *before)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_view *ui_viewmgr_view_push_insert_after(ui_viewmgr *viewmgr, ui_view *view, ui_view *after)
+       {
+               //TODO
+               return NULL;
+       }
+
        ui_view *ui_viewmgr_view_push(ui_viewmgr *viewmgr, ui_view *view)
        {
                return static_cast<ui_view *>(viewmgr->push_view(view));
@@ -14,8 +26,62 @@ extern "C" {
                return viewmgr->pop_view();
        }
 
+       bool ui_viewmgr_activate(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return 1;
+       }
+
        bool ui_viewmgr_deactivate(ui_viewmgr *viewmgr)
        {
                return viewmgr->deactivate();
        }
+
+       Elm_Win ui_viewmgr_window_get(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Elm_Conformant ui_viewmgr_conformant_get(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_view *ui_viewmgr_last_view_get(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return NULL;
+       }
+
+       ui_view *ui_viewmgr_view_get(ui_viewmgr *viewmgr, int idx)
+       {
+               //TODO
+               return NULL;
+       }
+
+       Evas_Object *ui_viewmgr_base_get(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return NULL;
+       }
+
+       unsigned int ui_viewmgr_view_count_get(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return 1;
+       }
+
+       bool ui_viewmgr_soft_key_need_get(ui_viewmgr *viewmgr)
+       {
+               //TODO
+               return 1;
+       }
+
+       ui_viewmgr *ui_viewmgr_viewmgr_get()
+       {
+               //TODO
+               return NULL;
+       }
 }