author | mikaruus <mika.a.ruuskanen@nokia.com> |
Thu, 14 Jan 2010 10:44:58 +0200 | |
changeset 5 | 8ccc39f9d787 |
parent 0 | 63b37f68c1ce |
child 9 | 8486d82aef45 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* Copyright (c) 2007-2008 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 the License "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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
#ifndef CMMMESSAGEROUTER_H |
|
21 |
#define CMMMESSAGEROUTER_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
||
25 |
//NCP_COMMON_S60_VERSION_SUPPORT flag. |
|
26 |
#if ( NCP_COMMON_S60_VERSION_SUPPORT == S60_VERSION_32 ) |
|
27 |
#include <cmmmessagerouterbase.h> |
|
28 |
#else |
|
29 |
#include <ctsy/pluginapi/mmessagerouter.h> |
|
30 |
#include <ctsy/pluginapi/mmmessagemanagercallback.h> |
|
31 |
#endif // NCP_COMMON_S60_VERSION_SUPPORT |
|
32 |
||
33 |
#include <iscapi.h> |
|
34 |
#include "mmmmesshandlerbase.h" |
|
35 |
||
36 |
// CONSTANTS |
|
37 |
//None |
|
38 |
||
39 |
// MACROS |
|
40 |
//None |
|
41 |
||
42 |
// DATA TYPES |
|
43 |
//None |
|
44 |
||
45 |
// FUNCTION PROTOTYPES |
|
46 |
//None |
|
47 |
||
48 |
// FORWARD DECLARATIONS |
|
49 |
class CMmCallMessHandler; |
|
50 |
class CMmPhoNetSender; |
|
51 |
class CMmPhoNetReceiver; |
|
52 |
class CMmCallMessHandler; |
|
53 |
class CMmConferenceCallMessHandler; |
|
54 |
class CMmDtmfMessHandler; |
|
55 |
class CMmNetMessHandler; |
|
56 |
class CMmNetOperatorNameHandler; |
|
57 |
class CMmSupplServMessHandler; |
|
58 |
class CMmPhoneBookStoreMessHandler; |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
59 |
class CMmENStoreMessHandler; |
0 | 60 |
class CMmPacketServiceMessHandler; |
61 |
class CMmPacketContextMessHandler; |
|
62 |
class CMmPacketQoSMessHandler; |
|
63 |
class CMmCustomMessHandler; |
|
64 |
class CMmBroadMessHandler; |
|
65 |
class CMmUssdMessHandler; |
|
66 |
class CMmSmsMessHandler; |
|
67 |
class CMmSecurityMessHandler; |
|
68 |
class CMmPhoneMessHandler; |
|
69 |
// Temporarily removed for bridge camp! |
|
70 |
//class CTsySatMessagingBase; |
|
71 |
class CMmUiccMessHandler; |
|
72 |
||
73 |
#if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
|
74 |
class CMmMessageManager; |
|
75 |
#endif |
|
76 |
||
77 |
// CLASS DECLARATION |
|
78 |
||
79 |
/** |
|
80 |
* Routes between Tsy objects and Message Handler objects |
|
81 |
*/ |
|
82 |
class CMmMessageRouter : |
|
83 |
#if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
|
84 |
public CMmMessageRouterBase |
|
85 |
#else |
|
86 |
public CBase, public MMessageRouter |
|
87 |
#endif // NCP_COMMON_S60_VERSION_SUPPORT |
|
88 |
{ |
|
89 |
||
90 |
// public methods |
|
91 |
public: |
|
92 |
||
93 |
/** |
|
94 |
* Creates a new CMmMessageRouter object |
|
95 |
* @return reference to created CMmMessageRouter type of object |
|
96 |
*/ |
|
97 |
IMPORT_C static CMmMessageRouter* NewL( |
|
98 |
#if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
|
99 |
CMmMessageManager* aMessageManager ); |
|
100 |
#else |
|
101 |
MmMessageManagerCallback* aMessageManager ); |
|
102 |
#endif // NCP_COMMON_S60_VERSION_SUPPORT |
|
103 |
||
104 |
/** |
|
105 |
* Destructor |
|
106 |
*/ |
|
107 |
virtual ~CMmMessageRouter(); |
|
108 |
||
109 |
/** |
|
110 |
* Creates and initialises class attributes |
|
111 |
*/ |
|
112 |
#if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
|
113 |
void ConstructL( CMmMessageManager* aMessageManager ); |
|
114 |
#else |
|
115 |
void ConstructL( MmMessageManagerCallback* aMessageManager ); |
|
116 |
#endif // NCP_COMMON_S60_VERSION_SUPPORT |
|
117 |
||
118 |
/** |
|
119 |
* Completes a request or a notification with no data |
|
120 |
* @param aIpc |
|
121 |
* @param aResult |
|
122 |
*/ |
|
123 |
void Complete( TInt aIpc, TInt aResult ); |
|
124 |
||
125 |
/** |
|
126 |
* Completes a request or a notification with packaged data |
|
127 |
* @param aIpc |
|
128 |
* @param aData |
|
129 |
* @param aResult |
|
130 |
*/ |
|
131 |
void Complete( TInt aIpc, CMmDataPackage* aData, TInt aResult ); |
|
132 |
||
133 |
/** |
|
134 |
* Returns pointer to the message handler for this |
|
135 |
* request, based on IPC number |
|
136 |
*/ |
|
137 |
MMmMessHandlerBase* RouteRequest( TInt aIpc ); |
|
138 |
||
139 |
/** |
|
140 |
* From MMessageRouter. Passes request to the correct message |
|
141 |
* handler |
|
142 |
* @param TInt aIpc: number of the request |
|
143 |
* @param CMmDataPackage* aDataPackage: pointer to data package |
|
144 |
* @return TInt KErrNone or error code |
|
145 |
*/ |
|
146 |
TInt ExtFuncL( TInt aIpc, const CMmDataPackage* aDataPackage ); |
|
147 |
||
148 |
/** |
|
149 |
* Returns pointer to Phonet sender |
|
150 |
*/ |
|
151 |
IMPORT_C CMmPhoNetSender* GetPhoNetSender(); |
|
152 |
||
153 |
/** |
|
154 |
* Returns pointer to Phonet receiver |
|
155 |
*/ |
|
156 |
IMPORT_C CMmPhoNetReceiver* GetPhoNetReceiver(); |
|
157 |
||
158 |
/** |
|
159 |
* Returns pointer to call message handler |
|
160 |
*/ |
|
161 |
CMmCallMessHandler* GetCallMessHandler(); |
|
162 |
||
163 |
/** |
|
164 |
* Returns pointer to GSM-specific Phone message handler |
|
165 |
*/ |
|
166 |
CMmPhoneMessHandler* GetPhoneMessHandler(); |
|
167 |
||
168 |
/** |
|
169 |
* Returns pointer to Packet Service Message handler |
|
170 |
*/ |
|
171 |
CMmPacketServiceMessHandler* GetPacketServiceMessHandler(); |
|
172 |
||
173 |
/** |
|
174 |
* Returns pointer to GSM-specific Custom API Message handler |
|
175 |
*/ |
|
176 |
CMmCustomMessHandler* GetCustomMessHandler(); |
|
177 |
||
178 |
/** |
|
179 |
* Returns pointer to SMS message handler |
|
180 |
*/ |
|
181 |
CMmSmsMessHandler* GetSmsMessHandler(); |
|
182 |
||
183 |
/** |
|
184 |
* Returns pointer to SS message handler |
|
185 |
*/ |
|
186 |
CMmSupplServMessHandler* GetSupplServHandler(); |
|
187 |
||
188 |
/** |
|
189 |
* Returns pointer to phonebookstore message handler |
|
190 |
*/ |
|
191 |
CMmPhoneBookStoreMessHandler* PhoneBookStoreMessHandler(); |
|
192 |
||
193 |
/** |
|
194 |
* Returns pointer to NET message handler |
|
195 |
*/ |
|
196 |
CMmNetMessHandler* GetNetMessHandler(); |
|
197 |
||
198 |
// protected methods |
|
199 |
protected: |
|
200 |
||
201 |
// private methods |
|
202 |
private: |
|
203 |
||
204 |
/** |
|
205 |
* Default constructor |
|
206 |
*/ |
|
207 |
CMmMessageRouter(); |
|
208 |
||
209 |
// public attributes |
|
210 |
public: |
|
211 |
||
212 |
// pointer to SAT Messaging |
|
213 |
// Temporarily removed for bridge camp! |
|
214 |
//CTsySatMessagingBase* iSatMessaging; |
|
215 |
||
216 |
// protected attributes |
|
217 |
protected: |
|
218 |
||
219 |
#if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
|
220 |
// pointer to message manager |
|
221 |
CMmMessageManager* iMessageManager; |
|
222 |
#else |
|
223 |
MmMessageManagerCallback* iMessageManager; |
|
224 |
#endif //NCP_COMMON_S60_VERSION_SUPPORT |
|
225 |
||
226 |
// pointer to GSM-specific Phone message handler |
|
227 |
CMmPhoneMessHandler* iMmPhoneMessHandler; |
|
228 |
||
229 |
// pointer to Call message handler |
|
230 |
CMmCallMessHandler* iMmCallMessHandler; |
|
231 |
||
232 |
// pointer to Conference Call message handler |
|
233 |
CMmConferenceCallMessHandler* iMmConferenceCallMessHandler; |
|
234 |
||
235 |
// pointer to Dtmf message handler |
|
236 |
CMmDtmfMessHandler* iMmDtmfMessHandler; |
|
237 |
||
238 |
// pointer to Net message handler |
|
239 |
CMmNetMessHandler* iMmNetMessHandler; |
|
240 |
||
241 |
// pointer to USSD message handler |
|
242 |
CMmUssdMessHandler* iMmUssdMessHandler; |
|
243 |
||
244 |
// pointer to Supplementary Services message handler |
|
245 |
CMmSupplServMessHandler* iMmSupplServMessHandler; |
|
246 |
||
247 |
// pointer to PhoneBook store message handler |
|
248 |
CMmPhoneBookStoreMessHandler* iMmPhoneBookStoreMessHandler; |
|
249 |
||
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
250 |
// pointer to emergency number store message handler |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
251 |
CMmENStoreMessHandler* iMmENStoreMessHandler; |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
252 |
|
0 | 253 |
// pointer to Phonet/ISA interface |
254 |
RIscApi iPhoNet; |
|
255 |
||
256 |
// pointer to Phonet sender |
|
257 |
CMmPhoNetSender* iPhoNetSender; |
|
258 |
||
259 |
// pointer to Phonet receiver |
|
260 |
CMmPhoNetReceiver* iPhoNetReceiver; |
|
261 |
||
262 |
// pointer to Packet Service Message handler |
|
263 |
CMmPacketServiceMessHandler* iMmPacketServiceMessHandler; |
|
264 |
||
265 |
// pointer to Packet Context Message handler |
|
266 |
CMmPacketContextMessHandler* iMmPacketContextMessHandler; |
|
267 |
||
268 |
// pointer to Packet QoS Message handler |
|
269 |
CMmPacketQoSMessHandler* iMmPacketQoSMessHandler; |
|
270 |
||
271 |
// pointer to Custom Tsy GSM extension Message handler |
|
272 |
CMmCustomMessHandler* iMmCustomMessHandler; |
|
273 |
||
274 |
//pointer to the Broadcast messagehandler |
|
275 |
CMmBroadMessHandler* iMmBroadMessHandler; |
|
276 |
||
277 |
//pointer to the SMS message handler |
|
278 |
CMmSmsMessHandler* iMmSmsMessHandler; |
|
279 |
||
280 |
//pointer to security message handler |
|
281 |
CMmSecurityMessHandler* iMmSecurityMessHandler; |
|
282 |
||
283 |
// Pointer to UICC message handler |
|
284 |
CMmUiccMessHandler* iMmUiccMessHandler; |
|
285 |
||
286 |
// private attributes |
|
287 |
private: |
|
288 |
||
289 |
}; |
|
290 |
||
291 |
#endif // CMMMESSAGEROUTER_H |
|
292 |
||
293 |
// End of file |