Tizen 2.1 base
[framework/security/security-server.git] / ace / include / ace-dao-ro / BasePermission.h
1 /*
2  * Copyright (c) 2011 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  *
18  *
19  * @file       IPermission.h
20  * @author     Grzegorz Krawczyk (g.krawczyk@samsung.com)
21  * @version    0.1
22  * @brief
23  */
24
25 #ifndef ACCESS_CONTROL_DAO_BASEPERMISSION_H_
26 #define ACCESS_CONTROL_DAO_BASEPERMISSION_H_
27
28 #include <ace-dao-ro/PreferenceTypes.h>
29 #include <ace-dao-ro/common_dao_types.h>
30
31 namespace AceDB{
32
33 struct BasePermission
34 {
35     BasePermission(WidgetHandle handler,
36                    const std::string& devCap,
37                    PreferenceTypes accessAllowed) :
38         appId(handler),
39         devCap(devCap),
40         access(accessAllowed)
41     {
42     }
43
44     WidgetHandle appId;
45     std::string devCap;
46     PreferenceTypes access;
47 };
48
49 typedef std::list<BasePermission> BasePermissionList;
50
51 }
52
53 #endif