|
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 @internalComponent |
|
19 @test |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef LBSNETSIMSERVER_H |
|
24 #define LBSNETSIMSERVER_H |
|
25 |
|
26 // Includes |
|
27 #include "lbsnetsim.h" |
|
28 #include "lbsnetsimhandlerretriever.h" |
|
29 |
|
30 // Forwards |
|
31 class MLbsNetSimSessionHandler; |
|
32 class CLbsNetSimTestHandler; |
|
33 class CLbsNetSimGatewayHandler; |
|
34 class CLbsNetSimAssistanceDataProvider; |
|
35 |
|
36 class CLbsNetSimServer : |
|
37 public CPolicyServer, |
|
38 public MLbsNetSimHandlerRetriever |
|
39 { |
|
40 public: |
|
41 virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
42 static TInt StartServer(); |
|
43 ~CLbsNetSimServer(); |
|
44 |
|
45 void IncClientCount(); |
|
46 void DecClientCount(); |
|
47 |
|
48 // MLbsNetSimHandlerRetreiver |
|
49 virtual MLbsNetSimSessionHandler* GetGatewayHandler(); |
|
50 virtual MLbsNetSimSessionHandler* GetTestHandler(); |
|
51 private: |
|
52 // Constructors |
|
53 static CLbsNetSimServer* NewL(); |
|
54 void ConstructL(); |
|
55 CLbsNetSimServer(TInt aPriority); |
|
56 |
|
57 |
|
58 static void StartServerL(); |
|
59 private: |
|
60 CLbsNetSimAssistanceDataProvider* iAssistanceDataProvider; |
|
61 CLbsNetSimTestHandler* iTestHandler; |
|
62 CLbsNetSimGatewayHandler* iGatewayHandler; |
|
63 TInt iClientCount; |
|
64 }; |
|
65 |
|
66 #endif // LBSNETSIMSERVER_H |