tizen 2.4 release
[framework/appfw/aul-1.git] / include / app_signal.h
1 /*
2  *  aul
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23 #ifndef __APP_SIGNAL_H__
24 #define __APP_SIGNAL_H__
25
26 #include <dbus/dbus.h>
27
28 #define AUL_DBUS_PATH "/aul/dbus_handler"
29 #define AUL_DBUS_SIGNAL_INTERFACE "org.tizen.aul.signal"
30 #define AUL_DBUS_APPDEAD_SIGNAL "app_dead"
31 #define AUL_DBUS_APPLAUNCH_SIGNAL       "app_launch"
32 #define AUL_DBUS_HOMELAUNCH_SIGNAL      "home_launch"
33
34 #define AUL_APP_STATUS_DBUS_PATH "/Org/Tizen/Aul/AppStatus"
35 #define AUL_APP_STATUS_DBUS_SIGNAL_INTERFACE "org.tizen.aul.AppStatus"
36 #define STATUS_FOREGROUND "fg"
37 #define STATUS_BACKGROUND "bg"
38
39 #define AUL_APP_STATUS_DBUS_LAUNCH_REQUEST "AppLaunch"
40 #define AUL_APP_STATUS_DBUS_RESUME_REQUEST "AppResume"
41 #define AUL_APP_STATUS_DBUS_TERMINATE_REQUEST "AppTerminate"
42 #define AUL_APP_STATUS_DBUS_STATUS_CHANGE "AppStatusChange"
43 #define AUL_APP_STATUS_DBUS_GROUP "AppGroup"
44 #define AUL_APP_STATUS_DBUS_TERMINATED "AppTerminated"
45
46 #ifdef _APPFW_FEATURE_CPU_BOOST
47 #define SYSTEM_BUS_NAME       "org.tizen.system.deviced"
48 #define SYSTEM_OBJECT_PATH    "/Org/Tizen/System/DeviceD/PmQos"
49 #define SYSTEM_INTERFACE_NAME "org.tizen.system.deviced.PmQos"
50 #define SYSTEM_METHOD_NAME    "AppLaunch"
51 #endif
52
53 #define SYSTEM_PATH_CORE        "/Org/Tizen/System/DeviceD/Core"
54 #define SYSTEM_INTERFACE_CORE   "org.tizen.system.deviced.core"
55
56 #define SYSTEM_SIGNAL_BOOTING_DONE              "BootingDone"
57
58 #define SYSTEM_PATH_SYSNOTI     "/Org/Tizen/System/DeviceD/SysNoti"
59 #define SYSTEM_INTERFACE_SYSNOTI        "org.tizen.system.deviced.SysNoti"
60
61 #define SYSTEM_SIGNAL_COOLDOWN_CHANGED          "CoolDownChanged"
62
63 #define RESOURCED_PATH_CORE     "/Org/Tizen/ResourceD/Process"
64 #define RESOURCED_INTERFACE_CORE        "org.tizen.resourced.process"
65
66 #define RESOURCED_SIGNAL_PROCESS_STATUS         "ProcStatus"
67
68 #define ROTATION_BUS_NAME       "org.tizen.system.coord"
69 #define ROTATION_OBJECT_PATH    "/Org/Tizen/System/Coord/Rotation"
70 #define ROTATION_INTERFACE_NAME "org.tizen.system.coord.rotation"
71 #define ROTATION_METHOD_NAME    "Degree"
72
73 #define RESOURCED_PROC_OBJECT           "/Org/Tizen/ResourceD/Process"
74 #define RESOURCED_PROC_INTERFACE        "org.tizen.resourced.process"
75 #define RESOURCED_PROC_METHOD           "ProcExclude"
76
77 #define APPFW_SUSPEND_HINT_PATH "/Org/Tizen/Appfw/SuspendHint"
78 #define APPFW_SUSPEND_HINT_INTERFACE    "org.tizen.appfw.SuspendHint"
79 #define APPFW_SUSPEND_HINT_SIGNAL       "SuspendHint"
80
81 #define RESOURCED_FREEZER_PATH "/Org/Tizen/Resourced/Freezer"
82 #define RESOURCED_FREEZER_INTERFACE     "org.tizen.resourced.freezer"
83 #define RESOURCED_FREEZER_SIGNAL        "FreezerState"
84
85 #define RESOURCED_ALLOWED_BG_ATTRIBUTE                  0x100
86 #define RESOURCED_BACKGROUND_MANAGEMENT_ATTRIBUTE       0x200
87 #define RESOURCED_API_VER_2_4_ATTRIBUTE                 0x400
88
89 #define RESOURCED_PROC_PRELAUNCH_SIGNAL "ProcPrelaunch"
90 #define RESOURCED_PROC_WATCHDOG_SIGNAL "ProcWatchdog"
91 #define RESOURCED_PROC_GROUP_SIGNAL "ProcGroup"
92
93 #define PROC_TYPE_EXCLUDE               "exclude"
94 #define PROC_TYPE_INCLUDE               "include"
95 #define PROC_TYPE_WAKEUP                "wakeup"
96
97 #ifdef _APPFW_FEATURE_EXPANSION_PKG_INSTALL
98 #define TEP_BUS_NAME "org.tizen.system.deviced"
99 #define TEP_OBJECT_PATH "/Org/Tizen/System/DeviceD/Tzip"
100 #define TEP_INTERFACE_NAME "org.tizen.system.deviced.Tzip"
101 #define TEP_MOUNT_METHOD "Mount"
102 #define TEP_UNMOUNT_METHOD "Unmount"
103 #define TEP_IS_MOUNTED_METHOD "IsMounted"
104 #endif
105
106 #endif