|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Access handler of the network session |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CPENGSESSIONMANAGER_H__ |
|
19 #define __CPENGSESSIONMANAGER_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include <ImpsClient.h> |
|
24 |
|
25 #include "MPEngSessionManager.h" |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MPEngAccessHandler; |
|
30 class CPEngAccessHandler; |
|
31 class MPEngPureDataHandler; |
|
32 class CPEngPureDataHandler; |
|
33 class MPEngTransAdapFactory; |
|
34 class CPEngSessionSlotId; |
|
35 |
|
36 /** |
|
37 * NWSessionSlotID implementation. |
|
38 * |
|
39 * @since 3.0 |
|
40 */ |
|
41 NONSHARABLE_CLASS( CPEngSessionManager ) : |
|
42 public CObject, |
|
43 public MPEngSessionManager |
|
44 { |
|
45 public: /* Construction */ |
|
46 |
|
47 |
|
48 /** |
|
49 * Instantiates CPEngSessionManager object. |
|
50 * |
|
51 * @return New CPEngSessionManager instance. |
|
52 */ |
|
53 static CPEngSessionManager* NewLC( MPEngTransAdapFactory& aFactory, |
|
54 const CPEngSessionSlotId& aSesssId ); |
|
55 |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 ~CPEngSessionManager(); |
|
61 |
|
62 //----------------------------------------------------------------------- |
|
63 public: // New function of the MPEngSessionManager |
|
64 |
|
65 /** |
|
66 * Close Access handler reference, deleted it |
|
67 * |
|
68 * @since 3.0 |
|
69 * |
|
70 * @param aHandler to be closed |
|
71 */ |
|
72 void CloseAccessHandler( ); |
|
73 |
|
74 /** |
|
75 * Close Access handler |
|
76 * |
|
77 * @since 3.0 |
|
78 * @param aHandler handler to be closed |
|
79 */ |
|
80 void ClosePureDataHandler( ); |
|
81 |
|
82 |
|
83 /** |
|
84 * Open reference |
|
85 * @since 3.0 |
|
86 */ |
|
87 void OpenRef(); |
|
88 |
|
89 //----------------------------------------------------------------------- |
|
90 public: // New functions |
|
91 |
|
92 /** |
|
93 * Access handler |
|
94 * |
|
95 * @since 3.0 |
|
96 * @return Access handler |
|
97 */ |
|
98 MPEngAccessHandler* AccessHandlerL(); |
|
99 |
|
100 /** |
|
101 * Pure Data handler |
|
102 * |
|
103 * @since 3.0 |
|
104 * @return Pure data handler |
|
105 */ |
|
106 MPEngPureDataHandler* PureDataHandlerL(); |
|
107 |
|
108 /** |
|
109 * Session Id |
|
110 * |
|
111 * @since 3.0 |
|
112 * @return session Id class |
|
113 */ |
|
114 const CPEngSessionSlotId& SessionId() const; |
|
115 |
|
116 protected: // construction |
|
117 |
|
118 /** |
|
119 * C++ constructor. protected |
|
120 */ |
|
121 CPEngSessionManager( MPEngTransAdapFactory& aFactory ); |
|
122 |
|
123 /** |
|
124 * Symbian Second phase constructor |
|
125 */ |
|
126 void ConstructL( const CPEngSessionSlotId& aSesssId ); |
|
127 |
|
128 private: //Data |
|
129 |
|
130 /// REF: Session manager Factory |
|
131 MPEngTransAdapFactory& iFactory; |
|
132 |
|
133 /// OWN: Session Id |
|
134 CPEngSessionSlotId* iSessionId; |
|
135 |
|
136 /// OWN: WV Session main client |
|
137 RImpsEng iImpsClient; |
|
138 |
|
139 /// OWN: Access handler |
|
140 CPEngAccessHandler* iAccessHandler; |
|
141 |
|
142 /// OWN: Pure data handler |
|
143 CPEngPureDataHandler* iPureDataHandler; |
|
144 |
|
145 }; |
|
146 |
|
147 #endif //__CPENGSESSIONMANAGER_H__ |
|
148 |
|
149 // End of File |