Fix build warning
[platform/core/system/system-popup.git] / src / launcher / launcher.h
1 /*
2  * popup-launcher
3  *
4  * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18 */
19
20 #ifndef __LAUNCHER_H__
21 #define __LAUNCHER_H__
22
23 #include <stdio.h>
24 #include <bundle_internal.h>
25 #include <E_DBus.h>
26 #include <Ecore.h>
27 #include <Elementary.h>
28 #include <appcore-common.h>
29 #include <aul.h>
30 #include "macro.h"
31
32 /* Popup names */
33 #define POWERKEY_SYSPOPUP  "powerkey-syspopup"
34 #define OVERHEAT_SYSPOPUP  "overheat-syspopup"
35 #define SYSTEM_SYSPOPUP    "system-syspopup"
36 #define CRASH_SYSPOPUP     "crash-syspopup"
37
38 /* Setting ugs */
39 #define SETTING_ENCRYPTING_APP    "org.tizen.setting.encrypting"
40 #define SETTING_LIGHTOFF_APP      "org.tizen.setting.turnofflight"
41 #define SETTING_DATAUSAGE_APP   "org.tizen.setting-data"
42
43 /* App to show Host devices list */
44 #define HOST_DEVICES              "org.tizen.host-devices"
45 #define APPOPER_TYPE              "_TYPE_"
46 #define APPOPER_TYPE_DEVICE_LIST  "DEVICE_LIST"
47
48 /* Notification icons */
49 #define DATAUSAGE_ICON   SYSTEM_ICONDIR"/datausage_warning.png"
50 #define LED_TORCH_ICON   SYSTEM_ICONDIR"/led_torch.png"
51 #define ODE_ENCRYPT_ICON SYSTEM_ICONDIR"/sdcard_encryption.png"
52 #define ODE_DECRYPT_ICON SYSTEM_ICONDIR"/sdcard_decryption.png"
53 #define ODE_ENCRYPT_ERROR_ICON SYSTEM_ICONDIR"/sdcard_encryption_error.png"
54 #define ODE_DECRYPT_ERROR_ICON SYSTEM_ICONDIR"/sdcard_decryption_error.png"
55 #define TIMA_ICON        SYSTEM_ICONDIR"/tima.png"
56 #define USB_ICON         SYSTEM_ICONDIR"/usb_icon.png"
57 #define BATT_INDI_ICON   SYSTEM_ICONDIR"/batt_full_indicator.png"
58 #define BATT_NOTI_ICON   SYSTEM_ICONDIR"/batt_full_icon.png"
59 #define BATT_LOW_INDI_ICON SYSTEM_ICONDIR"/noti_charging_battery_low.png"
60 #define COOLDOWN_NOTI_ICON   SYSTEM_ICONDIR"/noti_cooling_down.png"
61
62
63 /* App launching */
64 #define CRADLE_APP_NAME  "org.tizen.desk-dock"
65 #define PWLOCK_APP_NAME  "org.tizen.pwlock"
66 #define SERVANT_APP_NAME "/usr/bin/system-cooperator"
67
68 enum noti_type {
69         NOTI_NONE = 0,
70         DATAUSAGE_WARNING,
71         DATAUSAGE_DISABLED,
72         LED_TORCH,
73         ODE_COMPLETE,
74         ODE_PROGRESS,
75         ODE_ERROR,
76         TIMA_LKM_PREVENTION,
77         TIMA_PKM_DETECTION,
78         TICKER,
79         USB_STORAGE,
80         USB_STORAGE_RO,
81         USB_DEVICE,
82         BATTERY_FULL,
83         BATTERY_LOW,
84         BATTERY_CRITICAL,
85         BATTERY_LOW_ACT,
86         BATTERY_CRITICAL_ACT,
87         BATTERY_LOW_USB_ACT,
88         BATTERY_CRITICAL_USB_ACT,
89         BATTERY_LOW_CHG_ACT,
90         BATTERY_CRITICAL_CHG_ACT,
91         MEDIA_DEVICE,
92         TEMP_COOLDOWN,
93         SDCARD_DEVICE,
94         /* Add here additional notificatoins */
95         NOTI_TYPE_MAX
96 };
97
98 enum service_type {
99         CHARGER_CONNECTION,
100         SERVICE_MAX,
101 };
102
103 struct edbus_method {
104         const char *member;
105         const char *signature;
106         const char *reply_signature;
107         E_DBus_Method_Cb func;
108         int type;
109 };
110
111 struct edbus_object {
112         const char *path;
113         const char *interface;
114         E_DBus_Object *obj;
115         E_DBus_Interface *iface;
116         const struct edbus_method *methods;
117         const int methods_len;
118 };
119
120 /* launch popup */
121 DBusMessage *launch_popup(E_DBus_Object *obj, DBusMessage *msg, char *name);
122 #endif /* __LAUNCHER_H__ */
123