4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
25 #include <appcore-efl.h>
26 #include <Elementary.h>
32 #include <syspopup_caller.h>
35 #define LOG_TAG "SYSTEM_APPS"
36 #define _D(fmt, args...) SLOGD(fmt, ##args)
37 #define _E(fmt, args...) SLOGE(fmt, ##args)
38 #define _I(fmt, args...) SLOGI(fmt, ##args)
48 #define ARRAY_SIZE(name) (sizeof(name)/sizeof(name[0]))
51 ({ __typeof__ (a) _a = (a); \
52 __typeof__ (b) _b = (b); \
57 Evas_Object *win_main;
58 Evas_Object *layout_main;
62 syspopup_handler handler;
64 /* For usbotg popup */
65 Evas_Object *storage_added_popup;
66 Evas_Object *storage_unmount_popup;
67 Evas_Object *camera_added_popup;
68 char *storage_added_path;
69 char *storage_unmount_path;
72 E_DBus_Signal_Handler *edbus_handler;
73 E_DBus_Connection *edbus_conn;
77 void popup_terminate(void);
78 void release_evas_object(Evas_Object **obj);
79 void object_cleanup(struct appdata *ad);
80 Evas_Object *create_win(const char *name);
81 Evas_Object *load_normal_popup(struct appdata *ad,
85 Evas_Smart_Cb lbtn_cb,
87 Evas_Smart_Cb rbtn_cb);
88 Evas_Object *load_popup_with_vertical_buttons(struct appdata *ad,
92 Evas_Smart_Cb ubtn_cb,
94 Evas_Smart_Cb dbtn_cb);
95 Evas_Object *load_scrollable_popup(struct appdata *ad,
99 Evas_Smart_Cb lbtn_cb,
101 Evas_Smart_Cb rbtn_cb);
103 void set_display(void);
105 /* Send dbus signal */
106 int broadcast_dbus_signal(const char *path,
107 const char *interface,
112 int reset_window_priority(Evas_Object *win, int priority);
113 int set_popup_focus(Evas_Object *win, bool focus);
116 #endif /* __COMMON_H__ */