equal
deleted
inserted
replaced
|
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 LBSNETSIMSESSION_H |
|
24 #define LBSNETSIMSESSION_H |
|
25 |
|
26 #include "lbsnetsim.h" |
|
27 |
|
28 // Forwards |
|
29 class MLbsNetSimHandlerRetriever; |
|
30 class MLbsNetSimSessionHandler; |
|
31 class CLbsNetSimServer; |
|
32 |
|
33 class CLbsNetSimSession : public CSession2 |
|
34 { |
|
35 public: |
|
36 // Constructor |
|
37 CLbsNetSimSession(MLbsNetSimHandlerRetriever* aRetriever); |
|
38 virtual ~CLbsNetSimSession(); |
|
39 |
|
40 // CSession2 |
|
41 void ServiceL(const RMessage2& aMessage); |
|
42 void Disconnect(const RMessage2& aMessage); |
|
43 protected: |
|
44 CLbsNetSimServer* Server(); |
|
45 private: |
|
46 void RetrieveTestHandler(); |
|
47 void RetrieveGatewayHandler(); |
|
48 void ForwardToHandlerL(const RMessage2& aMessage); |
|
49 private: |
|
50 #ifdef _DEBUG |
|
51 TBufC<256> iWhich; |
|
52 #endif |
|
53 |
|
54 MLbsNetSimSessionHandler* iHandler; // Session handler |
|
55 MLbsNetSimHandlerRetriever* iRetriever; // Used to retrieve handler |
|
56 }; |
|
57 |
|
58 |
|
59 #endif // LBSNETSIMSESSION_H |
|
60 |
|
61 |