|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef SYMBIAN_SS_CONNECTIONSERVER_H |
|
22 #define SYMBIAN_SS_CONNECTIONSERVER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <comms-infras/ss_thread.h> |
|
26 |
|
27 #include <comms-infras/ss_metaconnprov.h> |
|
28 #include <comms-infras/ss_connselect.h> |
|
29 #include <comms-infras/ss_common.h> |
|
30 #include <comms-infras/es_availability.h> |
|
31 #include <comms-infras/api_ext_msg.h> |
|
32 |
|
33 namespace ESock |
|
34 { |
|
35 |
|
36 _LIT(KConnectionServerName,"!ConnectionServer"); |
|
37 |
|
38 NONSHARABLE_CLASS(CConnectionServer) : public Den::CCommonServer |
|
39 /** |
|
40 @class CConnectionServer |
|
41 @internalComponent |
|
42 */ |
|
43 { |
|
44 public: |
|
45 enum {EPriority=0}; |
|
46 public: |
|
47 static CConnectionServer* NewL(CWorkerThread* aOwnerThread); |
|
48 ~CConnectionServer(); |
|
49 |
|
50 CSession2* DoNewSessionL(const TProcessId& aProcessId, const TUidType& aProcessUid) const; |
|
51 virtual TVersion CurrentVersion() const; |
|
52 |
|
53 protected: |
|
54 CConnectionServer(CWorkerThread* aOwnerThread, TInt aPriority); |
|
55 void ConstructL(); |
|
56 |
|
57 private: |
|
58 // platsec |
|
59 static const TUint PolicyRangeCount; |
|
60 static const TInt PolicyRanges[]; |
|
61 static const CPolicyServer::TPolicyElement PolicyElements[]; |
|
62 static const TUint8 PolicyElementsIndex[]; |
|
63 static const CPolicyServer::TPolicy Policy; |
|
64 }; |
|
65 |
|
66 |
|
67 } // namespace ESock |
|
68 |
|
69 #endif // SYMBIAN_SS_CONNECTIONSERVER_H |
|
70 |