19 #include "afserver.h" |
19 #include "afserver.h" |
20 #include "afsession.h" |
20 #include "afsession.h" |
21 #include "afstorage.h" |
21 #include "afstorage.h" |
22 #include "aftask.h" |
22 #include "aftask.h" |
23 #include "afapplicationsengine.h" |
23 #include "afapplicationsengine.h" |
|
24 #include "afcmd.h" |
24 |
25 |
25 _LIT( KActivityServerName, "hsactivitydbserver" ); |
26 _LIT( KActivityServerName, "hsactivitydbserver" ); |
26 _LIT(KObserverAlreadyExists, "Observer task exists"); |
27 _LIT(KObserverAlreadyExists, "Observer task exists"); |
27 |
28 |
|
29 |
|
30 |
|
31 const TInt KSecureServerRanges[] = |
|
32 { |
|
33 SaveActivity, |
|
34 Activities, |
|
35 ApplicationActivities, |
|
36 CancelNotify + 1 |
|
37 }; |
|
38 |
|
39 const TUint8 KSecureServerElementsIndex[] = |
|
40 { |
|
41 0, |
|
42 1, |
|
43 CPolicyServer::EAlwaysPass, |
|
44 CPolicyServer::ENotSupported |
|
45 }; |
|
46 |
|
47 const TInt KSecureServerRangeCount(sizeof(KSecureServerRanges) / sizeof(TInt)); |
|
48 |
|
49 const CPolicyServer::TPolicyElement KSecureServerElements[] = |
|
50 { |
|
51 {_INIT_SECURITY_POLICY_C1(ECapabilityWriteDeviceData), CPolicyServer::EFailClient}, |
|
52 {_INIT_SECURITY_POLICY_C1(ECapabilityReadDeviceData ), CPolicyServer::EFailClient} |
|
53 }; |
|
54 |
|
55 const CPolicyServer::TPolicy KSecureServerPolicy = |
|
56 { |
|
57 CPolicyServer::EAlwaysPass, |
|
58 KSecureServerRangeCount, |
|
59 KSecureServerRanges, |
|
60 KSecureServerElementsIndex, |
|
61 KSecureServerElements |
|
62 }; |
28 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
29 /** |
64 /** |
30 * Constructor for performing 1st stage construction |
65 * Constructor for performing 1st stage construction |
31 */ |
66 */ |
32 CAfServer::CAfServer() |
67 CAfServer::CAfServer() |
33 : |
68 : |
34 CServer2( EPriorityStandard ) |
69 CPolicyServer( EPriorityStandard, KSecureServerPolicy ) |
35 { |
70 { |
36 // No implementation required |
71 // No implementation required |
37 } |
72 } |
38 |
73 |
39 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |