2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
17 #ifndef __QUICKPANEL_UI_H__
18 #define __QUICKPANEL_UI_H__
20 #include <Elementary.h>
22 #include <X11/Xatom.h>
26 # define VENDOR "org.tizen"
29 # define PACKAGE "quickpanel"
32 #if !defined(LOCALEDIR)
33 # define LOCALEDIR "/usr/apps/"VENDOR"."PACKAGE"/res/locale"
37 # define EDJDIR "/usr/apps/"VENDOR"."PACKAGE"/res/edje"
41 #define DEFAULT_EDJ EDJDIR"/"PACKAGE".edj"
42 #define DEFAULT_THEME_EDJ EDJDIR"/"PACKAGE"_theme.edj"
44 #define _EDJ(o) elm_layout_edje_get(o)
45 #define _S(str) dgettext("sys_string", str)
47 #define _(str) gettext(str)
48 #define _NOT_LOCALIZED(str) (str)
50 #define QP_SETTING_SOUND_SIP_PATH \
51 "/usr/apps/com.samsung.quickpanel/data/sip.wav"
53 #define STR_ATOM_WINDOW_INPUT_REGION "_E_COMP_WINDOW_INPUT_REGION"
54 #define STR_ATOM_WINDOW_CONTENTS_REGION "_E_COMP_WINDOW_CONTENTS_REGION"
56 #define MAX_NAM_LEN 4096
58 #define INDICATOR_COVER_W 82
59 #define INDICATOR_COVER_H 60
63 #define QP_SETTING_PKG_SETTING VENDOR".setting"
64 #define QP_SETTING_PKG_SETTING_EMUL "kto5jikgul.Settings"
68 #ifdef QP_INDICATOR_WIDGET_ENABLE
69 Evas_Object *comformant;
74 Evas_Object *scroller;
84 int gl_distance_from_top;
85 int gl_distance_to_bottom;
87 int is_emul; /* 0 : target, 1 : emul */
91 Ecore_Event_Handler *hdl_client_message;
92 Ecore_Event_Handler *hdl_hardkey;
94 E_DBus_Connection *dbus_connection;
95 E_DBus_Signal_Handler *dbus_handler_size;
96 E_DBus_Signal_Handler *dbus_handler_progress;
97 E_DBus_Signal_Handler *dbus_handler_content;
99 Evas_Object *cover_indicator_right;
101 Ecore_X_Atom *E_ILLUME_ATOM_MV_QUICKPANEL_STATE;
104 typedef struct _QP_Module {
107 int (*init) (void *);
108 int (*fini) (void *);
109 int (*suspend) (void *);
110 int (*resume) (void *);
111 int (*hib_enter) (void *);
112 int (*hib_leave) (void *);
113 void (*lang_changed) (void *);
114 void (*refresh) (void *);
115 unsigned int (*get_height) (void *);
116 void (*qp_opened) (void *);
117 void (*qp_closed) (void *);
119 /* do not modify this area */
124 int quickpanel_launch_app(char *app_id, void *data);
125 void quickpanel_launch_app_inform_result(const char *pkgname, int retcode);
126 int quickpanel_is_emul(void);
127 void quickpanel_init_size_genlist(void *data);
128 void quickpanel_ui_update_height(void *data);
129 void *quickpanel_get_app_data(void);
130 int quickpanel_is_suspended(void);
131 Evas_Object *quickpanel_ui_load_edj(Evas_Object * parent, const char *file,
132 const char *group, int is_just_load);
133 void quickpanel_ui_set_indicator_cover(void *data);
134 void quickpanel_close_quickpanel(bool is_check_lock);
135 void quickpanel_open_quickpanel(void);
136 void quickpanel_toggle_openning_quickpanel(void);
138 #endif /* __QUICKPANEL_UI_H__ */