Remove security-server dependency
[apps/core/preloaded/lockscreen.git] / include / dbus.h
1 /*
2  * Copyright (c) 2009-2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __DBUS_H__
18 #define __DBUS_H__
19
20 typedef enum {
21         DBUS_EVENT_LCD_ON = 0,
22         DBUS_EVENT_LCD_OFF,
23         DBUS_EVENT_ANGLE_CHANGED,
24         DBUS_EVENT_MAX,
25 } dbus_event_type_e;
26
27 /* DBUS interfaces and signals */
28 #define DBUS_COORD_INTEFACE "org.tizen.system.coord"
29 #define DBUS_ROTATION_PATH "/Org/Tizen/System/Coord/Rotation"
30 #define DBUS_ROTATION_INTERFACE DBUS_COORD_INTEFACE".rotation"
31 #define DBUS_ROTATION_MEMBER_CHANGED "Changed"
32 #define DBUS_ROTATION_METHOD_DEGREE "Degree"
33
34 #define DBUS_LOW_BATTERY_PATH "/Org/Tizen/System/Popup/Lowbat"
35 #define DBUS_LOW_BATTERY_INTERFACE "org.tizen.system.popup.Lowbat"
36 #define DBUS_LOW_BATTERY_MEMBER_EXTREME_LEVEL "Extreme"
37
38 #define DBUS_DEVICED_BUS_NAME "org.tizen.system.deviced"
39 #define DBUS_DEVICED_PATH "/Org/Tizen/System/DeviceD"
40 #define DBUS_DEVICED_INTERFACE DBUS_DEVICED_BUS_NAME
41
42 /* deviced::display */
43 #define DBUS_DEVICED_DISPLAY_PATH DBUS_DEVICED_PATH"/Display"
44 #define DBUS_DEVICED_DISPLAY_INTERFACE DBUS_DEVICED_INTERFACE".display"
45 #define DBUS_DEVICED_DISPLAY_MEMBER_LCD_ON "LCDOn"
46 #define DBUS_DEVICED_DISPLAY_MEMBER_LCD_OFF "LCDOff"
47 #define DBUS_DEVICED_DISPLAY_MEMBER_LCD_ON_BY_POWERKEY "LCDOnByPowerkey"
48 #define DBUS_DEVICED_DISPLAY_METHOD_LCD_OFF "PowerKeyLCDOff"
49 #define DBUS_DEVICED_DISPLAY_METHOD_CHANGE_STATE "changestate"
50 #define DBUS_DEVICED_DISPLAY_METHOD_CUSTOM_LCD_ON "CustomLCDOn"
51 #define DBUS_DEVICED_DISPLAY_COMMAND_LCD_ON "lcdon"
52
53 int lock_dbus_register_cb(int type, void (*result_cb)(void *, void *), void *result_data);
54 void lock_dbus_unregister_cb(int type,  void (*result_cb)(void *, void *));
55
56 void lock_dbus_init(void *data);
57 void lock_dbus_fini(void *data);
58
59 #endif