2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef DUAL_SIM_VIEW_H_
20 #define DUAL_SIM_VIEW_H_
25 #include <Elementary.h>
30 #include "list_util.h"
31 #include "quickpanel-ui.h"
34 #define EDJE_DIR "/usr/apps/org.tizen.quickpanel/res/edje/"
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"
40 // internally used sim button number
43 QP_DUALSIM_NUM_NONE = 0,
46 QP_DUALSIM_NUM_ALWAYS_ASK,
50 typedef void (*dualsim_view_selected_cb)(qp_dualsim_number_e sim_num);
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);
57 void dualsim_view_activate(int call_state);
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();
66 #endif /* DUAL_SIM_VIEW_H_ */