4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #ifndef __APP_SIGNAL_H__
24 #define __APP_SIGNAL_H__
26 #include <dbus/dbus.h>
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"
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"
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"
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"
53 #define SYSTEM_PATH_CORE "/Org/Tizen/System/DeviceD/Core"
54 #define SYSTEM_INTERFACE_CORE "org.tizen.system.deviced.core"
56 #define SYSTEM_SIGNAL_BOOTING_DONE "BootingDone"
58 #define SYSTEM_PATH_SYSNOTI "/Org/Tizen/System/DeviceD/SysNoti"
59 #define SYSTEM_INTERFACE_SYSNOTI "org.tizen.system.deviced.SysNoti"
61 #define SYSTEM_SIGNAL_COOLDOWN_CHANGED "CoolDownChanged"
63 #define RESOURCED_PATH_CORE "/Org/Tizen/ResourceD/Process"
64 #define RESOURCED_INTERFACE_CORE "org.tizen.resourced.process"
66 #define RESOURCED_SIGNAL_PROCESS_STATUS "ProcStatus"
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"
73 #define RESOURCED_PROC_OBJECT "/Org/Tizen/ResourceD/Process"
74 #define RESOURCED_PROC_INTERFACE "org.tizen.resourced.process"
75 #define RESOURCED_PROC_METHOD "ProcExclude"
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"
81 #define RESOURCED_FREEZER_PATH "/Org/Tizen/Resourced/Freezer"
82 #define RESOURCED_FREEZER_INTERFACE "org.tizen.resourced.freezer"
83 #define RESOURCED_FREEZER_SIGNAL "FreezerState"
85 #define RESOURCED_ALLOWED_BG_ATTRIBUTE 0x100
86 #define RESOURCED_BACKGROUND_MANAGEMENT_ATTRIBUTE 0x200
87 #define RESOURCED_API_VER_2_4_ATTRIBUTE 0x400
89 #define RESOURCED_PROC_PRELAUNCH_SIGNAL "ProcPrelaunch"
90 #define RESOURCED_PROC_WATCHDOG_SIGNAL "ProcWatchdog"
91 #define RESOURCED_PROC_GROUP_SIGNAL "ProcGroup"
93 #define PROC_TYPE_EXCLUDE "exclude"
94 #define PROC_TYPE_INCLUDE "include"
95 #define PROC_TYPE_WAKEUP "wakeup"
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"