Add Privacy-Guard
[platform/core/security/privacy-guard.git] / common / inc / PrivacyGuardTypes.h
1 /*
2  * Copyright (c) 2013 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 _PRIVACYGUARDTYPES_H_
18 #define _PRIVACYGUARDTYPES_H_
19
20 #include <string>
21 #include <tzplatform_config.h>
22 #include "privacy_guard_client_types.h"
23
24 #define PRIVACY_DB_PATH         tzplatform_mkpath(TZ_SYS_DB,".privacy_guard.db")
25 #define PRIVACY_INFO_DB_PATH    tzplatform_mkpath(TZ_SYS_DB,".privacy_guard_privacylist.db")
26
27 typedef struct _privacy_data_s {
28         char* privacy_id;
29         int monitor_policy;
30 } privacy_data_s;
31
32 static const std::string SERVER_ADDRESS ("/tmp/privacy_guard_server");
33 static const std::string DBUS_PATH("/privacy_guard/dbus_notification");
34 static const std::string DBUS_SIGNAL_INTERFACE("org.tizen.privacy_guard.signal");
35 static const std::string DBUS_SIGNAL_SETTING_CHANGED("privacy_setting_changed");
36 static const std::string DBUS_SIGNAL_PKG_REMOVED("privacy_pkg_removed");
37
38 #endif // _PRIVACYGUARDTYPES_H_