block: Add mmc inserted & removed popup
[platform/core/system/storaged.git] / src / shared / dbus_macro.h
1 /*
2  * storaged
3  *
4  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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 __STORAGED_DBUS_MACRO_H__
21 #define __STORAGED_DBUS_MACRO_H__
22
23
24 /*******************************************************************************
25  *
26  * Template
27  *
28  ******************************************************************************/
29 /*
30 #define XXX_BUS_NAME                        "org.tizen.system.XXX"
31 #define XXX_OBJECT_PATH                     "/Org/Tizen/System/XXX"
32 #define XXX_INTERFACE_NAME                  XXX_BUS_NAME
33 #define XXX_PATH_YYY                        XXX_OBJECT_PATH"/YYY"
34 #define XXX_INTERFACE_YYY                   XXX_INTERFACE_NAME".YYY"
35 #define XXX_SIGNAL_ZZZ                      "ZZZ"
36 #define XXX_METHOD_ZZZ                      "ZZZ"
37  */
38
39
40 /*******************************************************************************
41  *
42  * System daemon (systemd)
43  *
44  ******************************************************************************/
45 #define SYSTEMD_DBUS_PATH                            "/org/freedesktop/systemd1"
46 #define SYSTEMD_DBUS_DEST                            "org.freedesktop.systemd1"
47 #define SYSTEMD_DBUS_IFACE_MANAGER                   SYSTEMD_DBUS_DEST ".Manager"
48 #define SYSTEMD_DBUS_SIGNAL_SYSTEM_STARTUP_FINISHED  "StartupFinished"
49
50
51 /*******************************************************************************
52  *
53  * Device daemon (deviced)
54  *
55  ******************************************************************************/
56 #define DEVICED_BUS_NAME                    "org.tizen.system.deviced"
57 #define DEVICED_OBJECT_PATH                 "/Org/Tizen/System/DeviceD"
58 #define DEVICED_INTERFACE_NAME              DEVICED_BUS_NAME
59
60 /* Poweroff service: get power off status operations about Poweroff */
61 #define DEVICED_PATH_POWEROFF               DEVICED_OBJECT_PATH"/PowerOff"
62 #define DEVICED_INTERFACE_POWEROFF          DEVICED_INTERFACE_NAME".PowerOff"
63
64
65 /*******************************************************************************
66  *
67  * Storage daemon (storaged)
68  *
69  ******************************************************************************/
70 #define STORAGED_BUS_NAME                    "org.tizen.system.storage"
71 #define STORAGED_OBJECT_PATH                 "/Org/Tizen/System/Storage"
72 #define STORAGED_INTERFACE_NAME              STORAGED_BUS_NAME
73
74 /* Block service */
75 #define STORAGED_PATH_BLOCK                  STORAGED_OBJECT_PATH"/Block"
76 #define STORAGED_PATH_BLOCK_MANAGER          STORAGED_PATH_BLOCK"/Manager"
77 #define STORAGED_INTERFACE_BLOCK_MANAGER     STORAGED_INTERFACE_NAME".BlockManager"
78
79 /* Storage service: get storage size operatioins about storage */
80 #define STORAGED_PATH_STORAGE                STORAGED_OBJECT_PATH"/Storage"
81 #define STORAGED_INTERFACE_STORAGE           STORAGED_INTERFACE_NAME".storage"
82
83 /* Lowmem service: get critical low status operations about Lowmem */
84 #define STORAGED_PATH_LOWMEM                 STORAGED_OBJECT_PATH"/Lowmem"
85 #define STORAGED_INTERFACE_LOWMEM            STORAGED_INTERFACE_NAME".lowmem"
86
87
88 /*******************************************************************************
89  *
90  * Popup launcher (system-popup)
91  *
92  ******************************************************************************/
93 #define POPUP_BUS_NAME                      "org.tizen.system.popup"
94 #define POPUP_OBJECT_PATH                   "/Org/Tizen/System/Popup"
95 #define POPUP_INTERFACE_NAME                POPUP_BUS_NAME
96
97 /* System */
98 #define POPUP_PATH_SYSTEM                   POPUP_OBJECT_PATH"/System"
99 #define POPUP_INTERFACE_SYSTEM              POPUP_INTERFACE_NAME".System"
100
101 #define POPUP_PATH_NOTI                     POPUP_OBJECT_PATH"/Noti"
102 #define POPUP_INTERFACE_NOTI                POPUP_INTERFACE_NAME".Noti"
103
104 /* ODE */
105 #define POPUP_METHOD_LAUNCH                 "PopupLaunch"
106 #define POPUP_KEY_CONTENT                   "_SYSPOPUP_CONTENT_"
107 #define POPUP_SDCARD_ID                     "_SDCARD_NUM_"
108 #define VIEWTYPE_KEY                        "viewtype"
109 #define DEVPATH_KEY                         "dev_path"
110 #define MAPPING_NODE_KEY                    "mapping_node"
111 #define SDCARD_SETUP_TYPE                   "_SDCARD_SETUP_TYPE_"
112 #define INSERT_SD_CARD                      "INSERT_SD_CARD"
113
114 #endif /* __STORAGED_DBUS_MACRO_H__ */