Updating INI configuration file to work with most cameras.
[profile/ivi/camera.git] / include / cam_popup.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (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://www.tizenopensource.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 CAM_POPUP_H_
19 #define CAM_POPUP_H_
20
21 #include <Elementary.h>
22 #include <glib.h>
23
24 /* define USE_ELM_POPUP */
25
26 void cam_popup_remove(Evas_Object *popup);
27 void cam_popup_remove_all(void);
28
29 #ifdef USE_ELM_POPUP
30 typedef void (*cam_popup_respons_cb) (void *user_data, Evas_Object *obj,
31                                       void *event_info);
32
33 /* popup with one button,  ELM_POPUP_RESPONSE_OK is sent along with response signal. */
34 void cam_popup_confirm_add(Evas_Object *window, const char *message,
35                            const char *btn_name, cam_popup_respons_cb callback,
36                            void *user_data);
37
38 /* popup with two button, ELM_POPUP_RESPONSE_OK/ELM_POPUP_RESPONSE_CANCEL is sent along with response signal. */
39 void cam_popup_question_add(Evas_Object *window, const char *message,
40                             const char *btn_n_1, const char *btn_n_2,
41                             cam_popup_respons_cb callback, void *user_data);
42
43 #else
44
45 /* popup with one button */
46 void
47 cam_popup_confirm_add(Evas_Object *window, const char *message,
48                       const char *btn_name,
49                       void (*btn_cb) (void *data, Evas_Object *obj,
50                                       void *event_info));
51
52 /* popup with two button */
53 void
54 cam_popup_question_add(Evas_Object *window, const char *message,
55                        const char *lbtn_name,
56                        void (*left_btn_cb) (void *data, Evas_Object *obj,
57                                             void *event_info),
58                        const char *rbtn_name, void (*right_btn_cb) (void *data,
59                                                                     Evas_Object
60                                                                     *obj,
61                                                                     void
62                                                                     *event_info));
63
64 Evas_Object *cam_popup_guide_screen_add(Evas_Object *window,
65                                         const char *message);
66
67 #endif
68
69
70
71 gboolean cam_progress_popup_create(void *data);
72 gboolean cam_progress_popup_set_text(void *data, char *text);
73 gboolean cam_progress_popup_set_bar_value(void *data, double value);
74 gboolean cam_progress_popup_delete(void *data);
75
76 #endif