|
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 "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: Header file for Presence Cache Server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PRESENCECACHESECURITYPOLICY_H |
|
20 #define PRESENCECACHESECURITYPOLICY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "presencecachedefs2.h" |
|
24 |
|
25 // DATA TYPES |
|
26 |
|
27 // Server Security Policy Definition |
|
28 const TUint KCacheServerRangeCount = 4; |
|
29 |
|
30 const TInt KCacheServerRanges[KCacheServerRangeCount] = |
|
31 { |
|
32 0, // Read |
|
33 NRequest::EWritePresenceInfoSync, // write |
|
34 NRequest::ENoRequestMade, // read |
|
35 NRequest::EWritePresenceInfoAsync // write |
|
36 }; |
|
37 |
|
38 // Mapping IPCs to policy element |
|
39 const TUint8 KCacheServerElementsIndex[KCacheServerRangeCount] = |
|
40 { |
|
41 0, |
|
42 1, |
|
43 0, |
|
44 1 |
|
45 }; |
|
46 |
|
47 // Individual policy elements |
|
48 const CPolicyServer::TPolicyElement KCacheServerElements[] = |
|
49 { |
|
50 {_INIT_SECURITY_POLICY_C1(ECapabilityReadUserData), CPolicyServer::EFailClient}, |
|
51 {_INIT_SECURITY_POLICY_C1(ECapabilityWriteUserData), CPolicyServer::EFailClient}, |
|
52 }; |
|
53 |
|
54 // Main policy |
|
55 const CPolicyServer::TPolicy KCacheServerPolicy = |
|
56 { |
|
57 CPolicyServer::EAlwaysPass, |
|
58 KCacheServerRangeCount, |
|
59 KCacheServerRanges, |
|
60 KCacheServerElementsIndex, |
|
61 KCacheServerElements, |
|
62 }; |
|
63 |
|
64 #endif // PRESENCECACHESECURITYPOLICY_H |