|
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 // Definition of secure subsession base class |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 */ |
|
24 |
|
25 #ifndef __LBSSECURESESSIONSUBSESSIONBASE_H__ |
|
26 #define __LBSSECURESESSIONSUBSESSIONBASE_H__ |
|
27 |
|
28 #include <e32base.h> // for CObject etc. |
|
29 #include "csecuresessionbase.h" |
|
30 #include "csecureserverbase.h" |
|
31 |
|
32 |
|
33 /** |
|
34 @internalTechnology |
|
35 @released |
|
36 |
|
37 Subsession base class |
|
38 */ |
|
39 class CSecureSessionSubSessionBase : public CSecureSessionBase |
|
40 { |
|
41 public: |
|
42 CSecureSessionSubSessionBase(); |
|
43 virtual ~CSecureSessionSubSessionBase(); |
|
44 virtual void CreateL(); |
|
45 virtual void CreateSubSessionL(const RMessage2& aMessage); |
|
46 virtual void DestroySubSession(const RMessage2& aMessage); |
|
47 protected: |
|
48 virtual void DispatchMessageL(const RMessage2& aMesssage); |
|
49 const CSecureServerBase* Server() const; |
|
50 // Helpers |
|
51 virtual void DispatchL(const RMessage2& aMessage); |
|
52 virtual void DispatchError(const RMessage2& aMessage, const TInt aError); // force people to think about errors! |
|
53 virtual void ServiceMessageL(const RMessage2& aMessage) = 0; |
|
54 virtual void ServiceMessageError(const RMessage2& aMessage, const TInt aError) = 0; |
|
55 protected: |
|
56 // property |
|
57 /** the array to store subsession object handles */ |
|
58 CObjectIx* iObjectIx; |
|
59 /** the array container to store subsessions */ |
|
60 CObjectConIx* iContainerIx; |
|
61 /** array to store subsessions */ |
|
62 CObjectCon* iObjectCon; |
|
63 private: |
|
64 // property - really do mean private here |
|
65 /** indicate whether the base construct has been called */ |
|
66 TBool iBaseCreateCalled; |
|
67 }; |
|
68 |
|
69 |
|
70 |
|
71 #endif // __LBSSECURESESSIONSUBSESSIONBASE_H__ |