21 #include <e32base.h> |
21 #include <e32base.h> |
22 |
22 |
23 _LIT( KConnMonStartupSemaphore, "ConnMonStartupSemaphore" ); |
23 _LIT( KConnMonStartupSemaphore, "ConnMonStartupSemaphore" ); |
24 |
24 |
25 // Security policy |
25 // Security policy |
26 const TUint KConnMonPolicyRangeCount = 11; |
26 const TUint KConnMonPolicyRangeCount = 12; |
27 |
27 |
28 const TInt KConnMonPolicyRanges[KConnMonPolicyRangeCount] = |
28 const TInt KConnMonPolicyRanges[KConnMonPolicyRangeCount] = |
29 { |
29 { |
30 0, //range is 0-2 inclusive |
30 0, //range is 0-2 inclusive |
31 3, //range is 3-7 inclusive |
31 3, //range is 3-7 inclusive |
32 8, //range is 8-12 inclusive |
32 8, //range is 8-12 inclusive |
33 13, //range is 13 |
33 13, //range is 13 |
34 14, //range is 14 |
34 14, //range is 14 |
35 15, //range is 15 |
35 15, //range is 15 |
36 16, //range is 16-499 inclusive |
36 16, //range is 16 |
|
37 17, //range is 17-499 inclusive |
37 500, //range is 500-507 inclusive |
38 500, //range is 500-507 inclusive |
38 508, //range is 508-599 inclusive |
39 508, //range is 508-599 inclusive |
39 600, //range is 600-601 inclusive |
40 600, //range is 600-601 inclusive |
40 602 //range is 602-KMaxTInt inclusive |
41 602 //range is 602-KMaxTInt inclusive |
41 }; |
42 }; |
68 //EReqReceiveEvent |
69 //EReqReceiveEvent |
69 |
70 |
70 CPolicyServer::EAlwaysPass, // Applies to 5th range (request number: 15) |
71 CPolicyServer::EAlwaysPass, // Applies to 5th range (request number: 15) |
71 //EReqCancelReceiveEvent |
72 //EReqCancelReceiveEvent |
72 |
73 |
73 CPolicyServer::ENotSupported, // Applies to 6th range (request number: 16-499) |
74 CPolicyServer::ECustomCheck, // Applies to 6th range (request number: 16) |
74 |
75 //EReqSetAsyncBoolAttribute |
75 4, // Applies to 7th range (request number: 500-507) |
76 |
|
77 CPolicyServer::ENotSupported, // Applies to 7th range (request number: 17-499) |
|
78 |
|
79 4, // Applies to 8th range (request number: 500-507) |
76 //EReqPluginCreateSubSession |
80 //EReqPluginCreateSubSession |
77 //EReqPluginCloseSubSession |
81 //EReqPluginCloseSubSession |
78 //EReqPluginRegisterAttribute |
82 //EReqPluginRegisterAttribute |
79 //EReqPluginCancelRegisterAttribute |
83 //EReqPluginCancelRegisterAttribute |
80 //EReqPluginEvent |
84 //EReqPluginEvent |
81 //EReqPluginGetQuery |
85 //EReqPluginGetQuery |
82 //EReqPluginCancelGetQuery |
86 //EReqPluginCancelGetQuery |
83 //EReqPluginAttribute |
87 //EReqPluginAttribute |
84 |
88 |
85 CPolicyServer::ENotSupported, // Applies to 8th range (request number: 508-599) |
89 CPolicyServer::ENotSupported, // Applies to 9th range (request number: 508-599) |
86 |
90 |
87 CPolicyServer::ENotSupported, // Applies to 9th range (request number: 600-601) |
91 CPolicyServer::ENotSupported, // Applies to 10th range (request number: 600-601) |
88 // Used internally in communicating with plugin |
92 // Used internally in communicating with plugin |
89 //EReqInternalSetThreshold |
93 //EReqInternalSetThreshold |
90 //EReqInternalResetThreshold |
94 //EReqInternalResetThreshold |
91 |
95 |
92 CPolicyServer::ENotSupported // Applies to 10th range (request number: 602-KMaxTInt) |
96 CPolicyServer::ENotSupported // Applies to 11th range (request number: 602-KMaxTInt) |
93 }; |
97 }; |
94 |
98 |
95 const CPolicyServer::TPolicyElement KConnMonPolicyElements[] = |
99 const CPolicyServer::TPolicyElement KConnMonPolicyElements[] = |
96 { |
100 { |
97 { _INIT_SECURITY_POLICY_C1( ECapabilityNetworkServices ), CPolicyServer::EFailClient }, |
101 { _INIT_SECURITY_POLICY_C1( ECapabilityNetworkServices ), CPolicyServer::EFailClient }, |