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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // csesuresessionbase.h |
|
15 // CSession2 based secure session to the server |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef __LBSSECURESESSIONBASE_H__ |
|
27 #define __LBSSECURESESSIONBASE_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 |
|
31 /** |
|
32 @internalTechnology |
|
33 @released |
|
34 |
|
35 CSession2 based secure session to the server |
|
36 */ |
|
37 class CSecureSessionBase : public CSession2 |
|
38 { |
|
39 public: |
|
40 CSecureSessionBase(); |
|
41 virtual ~CSecureSessionBase(); |
|
42 virtual void CreateL(); |
|
43 virtual void Disconnect(const RMessage2& aMessage); |
|
44 virtual void ServiceL(const RMessage2& aMessage); |
|
45 virtual void ServiceError(const RMessage2& aMessage, TInt aError); |
|
46 protected: |
|
47 // Helpers |
|
48 virtual void DispatchL(const RMessage2& aMessage) = 0; |
|
49 virtual void DispatchError(const RMessage2& aMessage, const TInt aError) = 0; // force people to think about errors! |
|
50 virtual void ConstructSubSessionL(); |
|
51 virtual void DestroySubSession(); |
|
52 }; |
|
53 |
|
54 #endif // __LBSSECURESESSIONBASE_H__ |