081590d5b081d9a73caa136278aa5ece1d4700fd
[apps/home/quickpanel.git] / daemon / dual_sim_view.h
1 /*
2  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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
19 #ifndef DUAL_SIM_VIEW_H_
20 #define DUAL_SIM_VIEW_H_
21
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <Evas.h>
25 #include <Elementary.h>
26 #include <Eina.h>
27 #include <dlog.h>
28 #include <vconf.h>
29
30 #include "list_util.h"
31 #include "quickpanel-ui.h"
32 #include "common.h"
33
34 #define EDJE_DIR "/usr/apps/org.tizen.quickpanel/res/edje/"
35
36 #define DUALSIM_EDJ     EDJE_DIR"/quickpanel_dual_sim.edj"
37 #define DUALSIM_BUTTON_EDJ EDJE_DIR"/quickpanel_dual_sim_button.edj"
38 #define DUALSIM_INFOTEXT_EDJ EDJE_DIR"/quickpanel_textblock_slide_style.edj"
39
40 // internally used sim button number
41 typedef enum
42 {
43         QP_DUALSIM_NUM_NONE = 0,
44         QP_DUALSIM_NUM_SIM1,
45         QP_DUALSIM_NUM_SIM2,
46         QP_DUALSIM_NUM_ALWAYS_ASK,
47         QP_DUALSIM_NUM_MAX,
48 }qp_dualsim_number_e;
49
50 typedef void (*dualsim_view_selected_cb)(qp_dualsim_number_e sim_num);
51
52 /* properties */
53 void dualsim_view_set_activated_button(qp_dualsim_number_e sim_num);
54 void dualsim_view_set_info_text(qp_dualsim_number_e sim_num, char *text);
55 void dualsim_view_set_selected_cb(dualsim_view_selected_cb func);
56
57 void dualsim_view_activate(int call_state);
58
59 /* application event */
60 Evas_Object* dualsim_view_create(Evas_Object *parent);
61 void dualsim_view_destroy();
62 void dualsim_view_resume();
63 void dualsim_view_pause();
64 void dualsim_view_language_changed();
65
66 #endif /* DUAL_SIM_VIEW_H_ */