equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Defines security policy data structure inline functions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 * Gets policy identifier of the security and trust policy |
|
25 * data |
|
26 * |
|
27 * @return TPolicyID policy identifier |
|
28 * |
|
29 */ |
|
30 inline TPolicyID CPolicy::PolicyID() const |
|
31 { |
|
32 return iPolicyID; |
|
33 } |
|
34 |
|
35 /** |
|
36 * Gets the list of protection domains associated with |
|
37 * the policy identifier |
|
38 * |
|
39 * @return const RProtectionDomains& protection domain list |
|
40 * |
|
41 */ |
|
42 inline const RProtectionDomains& CPolicy::ProtectionDomain() const |
|
43 { |
|
44 return iAccessPolicy; |
|
45 } |
|
46 |
|
47 /** |
|
48 * virtual destructor |
|
49 * |
|
50 */ |
|
51 inline CPolicy::~CPolicy() |
|
52 { |
|
53 iAccessPolicy.ResetAndDestroy (); |
|
54 iAliasGroup.ResetAndDestroy(); |
|
55 } |
|
56 |
|
57 /** |
|
58 * Gets the list of alias group associated with |
|
59 * the policy identifier |
|
60 * |
|
61 * @return const RAliasGroup& alias group list |
|
62 * |
|
63 */ |
|
64 inline const RAliasGroup& CPolicy::AliasGroup() const |
|
65 { |
|
66 return iAliasGroup; |
|
67 } |