Flora license update
[apps/core/preloaded/ug-camera-efl.git] / include / edc-callback / cam_toolbar_edc_callback.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *        http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef __DEF_CAM_TOOLBAR_EDC_H_
19 #define __DEF_CAM_TOOLBAR_EDC_H_
20
21 #include "cam_property.h"
22 #include "cam.h"
23
24 typedef enum {
25         BUTTON_STATE_NORMAL,
26         BUTTON_STATE_PRESS,
27         BUTTON_STATE_DIM,
28 } ButtonState;
29
30 typedef enum {
31         TOOLBAR_ITEM_STATE_NORMAL,
32         TOOLBAR_ITEM_STATE_PRESS,
33         TOOLBAR_ITEM_STATE_EDIT,
34         TOOLBAR_ITEM_STATE_DIM,
35         TOOLBAR_ITEM_STATE_INVISIBLE,
36 } ToolbarItemState;
37
38 typedef struct __Shortcuts_List_Prop {
39         CAM_EDIT_SHORTCUTS_INDEX index;
40         char prop_name[16];
41 } Shortcuts_List_Prop;
42
43 int cam_toolbar_create(struct appdata *ad);
44 void cam_toolbar_destroy(struct appdata *ad);
45 void cam_toolbar_update(struct appdata *ad);
46 int cam_toolbar_rotate(struct appdata *ad);
47 int show_toolbar_edje(struct appdata *ad);
48 int hide_toolbar_edje(struct appdata *ad);
49
50 gboolean toolbar_update_quickview_thumbnail(struct appdata *ad);
51 /**
52  * @brief               update thumbnail
53  * @param[in]   data    appdata
54  * @return                      Operation result
55  * @return                      gboolean
56  */
57 gboolean toolbar_update_quickview_thumbnail_no_animation(struct appdata *ad);
58
59 #ifdef ENABLE_CAPTURE_ANIMATION
60 int toolbar_update_quickview_thumbnail_by_screennail(struct appdata *ad);
61 #endif
62
63 int cam_toolbar_setting_popup_create(struct appdata *ad);
64 void cam_toolbar_setting_popup_update(struct appdata *ad);
65 void cam_toolbar_setting_popup_destroy(struct appdata *ad);
66
67 Eina_Bool cam_animation_effect(void *data, char *type, Evas_Object *obj);
68 Eina_Bool cam_icon_animation_effect(void *data);
69 int toolbar_shot_guide_popup_create(struct appdata *ad, int shot_mode);
70 int toolbar_shot_guide_popup_destory(struct appdata *ad);
71 int toolbar_shot_guide_popup_move();
72
73 Eina_Bool cam_show_setting_menu(void *data);
74 Eina_Bool cam_show_setting_menu_option_popup(void *data);
75 gboolean cam_check_timer_is_running(void *data);
76 int cam_guideline_create(struct appdata *ad);
77 void settings_guideline_refresh(struct appdata *ad);
78 void toolbar_destroy_shortcuts_popup(struct appdata *ad);
79 void cam_toolbar_shutter_button_cb(void *data, Evas_Object *o, const char *emission, const char *source);
80 void cam_toolbar_recording_button_cb(void *data, Evas_Object *o, const char *emission, const char *source);
81 void cam_toolbar_recording_stop_button_cb(void *data, Evas_Object *o, const char *emission, const char *source);
82
83
84 /**
85  * @brief                       create tip popup
86  * @param[in]   ad      cam appdata handle
87  * @param[in]   ad      tip popup type
88  * @return              Operation result
89  * @return              void
90  */
91 void cam_tip_popup_create(struct appdata *ad, const CamTipPopupType type);
92
93 /**
94  * @brief                       destroy tip popup
95  * @param[in]   ad      cam appdata handle
96  * @return              Operation result
97  * @return              void
98  */
99 void cam_tip_popup_destroy(struct appdata *ad);
100
101 /**
102  * @brief                       rotate tip popup
103  * @param[in]   ad      cam appdata handle
104  * @return              Operation result
105  * @return              void
106  */
107 void cam_tip_popup_rotate(struct appdata *ad);
108
109 /**
110  * @brief                               set show state of caf button
111  * @param[in]   ad              cam appdata handle
112  * @param[in]   show    caf button show state
113  * @return                      Operation result
114  * @return                      void
115  */
116 void cam_toolbar_show_cafbutton(struct appdata *ad, gboolean show);
117 void cam_toolbar_update_shutter_button(struct appdata *ad, ToolbarItemState state);
118
119 #endif  /* __DEF_CAM_TOOLBAR_EDC_H_ */
120