author | Christian Morlok <symbian.org@christianmorlok.de> |
Thu, 25 Mar 2010 09:33:14 +0100 | |
branch | v5backport |
changeset 20 | d2ab7c3d0c48 |
permissions | -rw-r--r-- |
20
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
1 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
3 |
* All rights reserved. |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
8 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
11 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
12 |
* Contributors: |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
13 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
14 |
* Description: Defines permission set class |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
15 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
16 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
17 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
18 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
19 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
20 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
21 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
22 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
23 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
24 |
#ifndef _CPERMISSIONSET_H_ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
25 |
#define _CPERMISSIONSET_H_ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
26 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
27 |
#include <e32debug.h> |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
28 |
#include <s32strm.h> |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
29 |
#include <s32mem.h> |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
30 |
#include <rtsecmgrcommondef.h> |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
31 |
#include <rtsecmgrpermission.h> |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
32 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
33 |
//Forward declaration |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
34 |
class CPermissionSet; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
35 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
36 |
typedef RPointerArray<CPermission> RPermissions; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
37 |
typedef TUint32 TUnConditionalPermission; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
38 |
typedef RArray<TCapability> RUnConditionals; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
39 |
typedef RPointerArray<CPermissionSet> RPermissionSet; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
40 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
41 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
42 |
* CPermissionSet represents list of user grantable permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
43 |
* and list of unconditional permissions. |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
44 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
45 |
* CPermissionSet provides accessor and modifier methods to access |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
46 |
* and modify CPermissionSet object state |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
47 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
48 |
* @lib rtsecmgrutil.lib |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
49 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
50 |
NONSHARABLE_CLASS(CPermissionSet) : public CBase |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
51 |
{ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
52 |
public: |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
53 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
54 |
* Two-phased constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
55 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
56 |
* Constructs a CPermissionSet instance |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
57 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
58 |
* @return pointer to an instance of CPermissionSet |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
59 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
60 |
IMPORT_C static CPermissionSet* NewL(); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
61 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
62 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
63 |
* Two-phased constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
64 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
65 |
* Constructs a CPermissionSet instance and leaves the created instance |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
66 |
* on the cleanupstack |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
67 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
68 |
* @return pointer to an instance of CPermissionSet |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
69 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
70 |
IMPORT_C static CPermissionSet* NewLC(); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
71 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
72 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
73 |
* Two-phased constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
74 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
75 |
* Constructs a CPermissionSet instance from another permissionset |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
76 |
* object |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
77 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
78 |
* @param aPermSet CPermissionSet source permissionset object |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
79 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
80 |
* @return pointer to an instance of CPermissionSet |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
81 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
82 |
IMPORT_C static CPermissionSet* NewL(const CPermissionSet& aPermSet); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
83 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
84 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
85 |
* Two-phased constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
86 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
87 |
* Constructs a CPermissionSet instance from another permissionset |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
88 |
* object and leaves the created instance on the cleanupstack |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
89 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
90 |
* @param aPermSet CPermissionSet source permissionset object |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
91 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
92 |
* @return pointer to an instance of CPermissionSet |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
93 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
94 |
IMPORT_C static CPermissionSet* NewLC(const CPermissionSet& aPermSet); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
95 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
96 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
97 |
* Destructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
98 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
99 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
100 |
IMPORT_C ~CPermissionSet(); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
101 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
102 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
103 |
* Externalizes permissionset data to stream |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
104 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
105 |
* @param aOutStream RWriteStream output stream |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
106 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
107 |
IMPORT_C void ExternalizeL(RWriteStream& aSink) const; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
108 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
109 |
/** |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
110 |
* Internalizes permissionset data from stream |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
111 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
112 |
* @param aInStream RReadStream input source stream |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
113 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
114 |
IMPORT_C void InternalizeL(RReadStream& aSource); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
115 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
116 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
117 |
* Adds an unconditional capability to the permissionset |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
118 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
119 |
* @param aCapability TCapability unconditional capability to be added |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
120 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
121 |
IMPORT_C void AppendUncondCap(TCapability aCapability); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
122 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
123 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
124 |
* Adds a list of unconditional capabilities to the permissionset |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
125 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
126 |
* @param TUnConditionalPermission aUnConditionals - list of TCapability that are to be added |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
127 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
128 |
IMPORT_C void AppendUncondCapabilities(TUnConditionalPermission aUnConditionals); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
129 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
130 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
131 |
* Adds a permission to the permissionset |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
132 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
133 |
* @param aPermission CPermission permission data to be added |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
134 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
135 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
136 |
IMPORT_C void AppendPermission(CPermission& aPermission); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
137 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
138 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
139 |
* Gets the list of user-grantable permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
140 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
141 |
* @return RPermissions non-modifiable reference to the list of user-grantable permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
142 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
143 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
144 |
IMPORT_C const RPermissions& Permissions() const; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
145 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
146 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
147 |
* Gets the list of unconditional permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
148 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
149 |
* @return TUnConditionalPermission unconditional permission |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
150 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
151 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
152 |
IMPORT_C TUnConditionalPermission UnconditionalCaps() const; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
153 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
154 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
155 |
* Gets the list of unconditional permissions as array of |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
156 |
* TCapability |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
157 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
158 |
* @return RUnConditionals list of unconditional capabilities |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
159 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
160 |
* @see TCapability |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
161 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
162 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
163 |
IMPORT_C void UnconditionalCaps(RUnConditionals& aUnConditionals) const; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
164 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
165 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
166 |
* Gets list of user-grantable permissions. This overloaded version |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
167 |
* returns modifiable list of user-grantable permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
168 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
169 |
* @return RPermissions list of user-grantable permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
170 |
* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
171 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
172 |
IMPORT_C RPermissions& Permissions(); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
173 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
174 |
private: |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
175 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
176 |
* Default private constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
177 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
178 |
inline CPermissionSet() |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
179 |
{} |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
180 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
181 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
182 |
* private copy constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
183 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
184 |
CPermissionSet(const CPermissionSet& aPermSet); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
185 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
186 |
/* |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
187 |
* Private second phase constructor |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
188 |
*/ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
189 |
void ConstructL(const CPermissionSet& aPermSet); |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
190 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
191 |
private: |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
192 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
193 |
//unconditional permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
194 |
TUnConditionalPermission iUncondCapSet; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
195 |
|
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
196 |
//user-grantable permissions |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
197 |
RPermissions iPermissions; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
198 |
}; |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
199 |
#endif //_CPERMISSIONSET_H_ |
d2ab7c3d0c48
homescreenpluginsrv component compiles now
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
200 |