Remove unused battery related notification code
[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 COOLDOWN_NOTI_ICON   SYSTEM_ICONDIR"/noti_cooling_down.png"
60
61
62 /* App launching */
63 #define CRADLE_APP_NAME  "org.tizen.desk-dock"
64 #define PWLOCK_APP_NAME  "org.tizen.pwlock"
65 #define SERVANT_APP_NAME "/usr/bin/system-cooperator"
66
67 enum noti_type {
68         NOTI_NONE = 0,
69         DATAUSAGE_WARNING,
70         DATAUSAGE_DISABLED,
71         LED_TORCH,
72         ODE_COMPLETE,
73         ODE_PROGRESS,
74         ODE_ERROR,
75         TIMA_LKM_PREVENTION,
76         TIMA_PKM_DETECTION,
77         TICKER,
78         USB_STORAGE,
79         USB_STORAGE_RO,
80         USB_DEVICE,
81         BATTERY_FULL,
82         BATTERY_LOW,
83         BATTERY_CRITICAL,
84         BATTERY_LOW_ACT,
85         BATTERY_CRITICAL_ACT,
86         BATTERY_LOW_USB_ACT,
87         BATTERY_CRITICAL_USB_ACT,
88         BATTERY_LOW_CHG_ACT,
89         BATTERY_CRITICAL_CHG_ACT,
90         MEDIA_DEVICE,
91         TEMP_COOLDOWN,
92         SDCARD_DEVICE,
93         /* Add here additional notificatoins */
94         NOTI_TYPE_MAX
95 };
96
97 enum service_type {
98         CHARGER_CONNECTION,
99         SERVICE_MAX,
100 };
101
102 struct edbus_method {
103         const char *member;
104         const char *signature;
105         const char *reply_signature;
106         E_DBus_Method_Cb func;
107         int type;
108 };
109
110 struct edbus_object {
111         const char *path;
112         const char *interface;
113         E_DBus_Object *obj;
114         E_DBus_Interface *iface;
115         const struct edbus_method *methods;
116         const int methods_len;
117 };
118
119 /* launch popup */
120 DBusMessage *launch_popup(E_DBus_Object *obj, DBusMessage *msg, char *name);
121 #endif /* __LAUNCHER_H__ */
122