3e3596edfdcdb80a99fc1743b84dc4f2f59a70a6
[apps/home/quickpanel.git] / daemon / common_uic.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 __QP_COMMON_UIC_H_
20 #define __QP_COMMON_UIC_H_
21
22 typedef enum {
23         OPENED_NO_REASON = 0,
24         OPENED_BY_CMD_HIDE_LAUNCH = 1,
25         OPENED_BY_CMD_SHOW_SETTINGS = 2,
26 } qp_open_reason;
27
28 Evas_Object *quickpanel_ui_load_edj(Evas_Object * parent, const char *file,
29                                             const char *group, int is_just_load);
30 int quickpanel_launch_app(char *app_id, void *data);
31 int quickpanel_launch_ug_by_appcontrol(const char *package, void *data);
32 int quickpanel_is_emul(void);
33 int quickpanel_is_suspended(void);
34 int quickpanel_is_opened(void);
35 void quickpanel_launch_app_inform_result(const char *pkgname, int retcode);
36 void quickpanel_initial_resize(Evas_Object *obj, int height);
37 void quickpanel_close_quickpanel(bool is_check_lock, int is_delay_needed);
38 void quickpanel_open_quickpanel(int reason);
39 void quickpanel_toggle_openning_quickpanel(void);
40 void quickpanel_opened_reason_set(int reason);
41 int quickpanel_opened_reason_get(void);
42
43 #endif                          /* __QP_COMMON_UIC_H_ */