modify logs
[platform/core/security/privacy-manager.git] / common / inc / PrivacyIdInfo.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 _PRIVACY_ID_INFO_H_
18 #define _PRIVACY_ID_INFO_H_
19
20 #include <string>
21 #include <map>
22 #include <list>
23
24 class PrivacyIdInfo
25 {
26 private:
27         static std::map <std::string, std::string> m_privilegeToPrivacyMap;
28         static bool m_isInitialized;
29
30 public:
31         static int initialize(void);
32         static int getPrivacyIdFromPrivilege(const std::string privilege, std::string& privacyId);
33         static int getPrivacyIdListFromPrivilegeList(const std::list < std::string> privilegeList, std::list < std::string> & privacyIdList);
34         static int getAllPrivacyId(std::list < std::string >& privacyIdList);
35
36         static int getPrivaycDisplayName(const std::string privacyId, std::string& displayName);
37         static int getPrivaycDescription(const std::string privacyId, std::string& description);
38 };
39
40 #endif //_PRIVACY_ID_INFO_H_