1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
145 * It is a request call that is completed by invoking |
145 * It is a request call that is completed by invoking |
146 * CCtsyDispatcherCallback::CallbackPacketServicesSetPdpContextConfigComp() |
146 * CCtsyDispatcherCallback::CallbackPacketServicesSetPdpContextConfigComp() |
147 * Implementation of this interface should pass LTSY the parameters it needs to set the |
147 * Implementation of this interface should pass LTSY the parameters it needs to set the |
148 * context configuration |
148 * context configuration |
149 * |
149 * |
150 * @param aContextId the context name |
150 * @param aContextName the context name |
151 * @param aAccessPointName the access name which identifies the GGSN to be used |
151 * @param aAccessPointName the access name which identifies the GGSN to be used |
152 * @param aPdpType the protocol type |
152 * @param aPdpType the protocol type |
153 * @param aPdpAddress the PDP address for this context |
153 * @param aPdpAddress the PDP address for this context |
154 * @param aPcoBuffer the pco buffer |
154 * @param aPcoBuffer the pco buffer |
155 * |
155 * |
156 * @return KErrNone on success, otherwise another error code indicating the |
156 * @return KErrNone on success, otherwise another error code indicating the |
157 * failure. |
157 * failure. |
158 */ |
158 */ |
159 virtual TInt HandleSetPdpContextConfigReqL(const TDesC& aContextId, |
159 virtual TInt HandleSetPdpContextConfigReqL(const TDesC& aContextName, |
160 const TDesC8& aAccessPointName, |
160 const TDesC8& aAccessPointName, |
161 const RPacketContext::TProtocolType aPdpType, |
161 const RPacketContext::TProtocolType aPdpType, |
162 const TDesC8& aPdpAddress, |
162 const TDesC8& aPdpAddress, |
163 const TDesC8& aPcoBuffer) = 0; |
163 const TDesC8& aPcoBuffer) = 0; |
164 |
164 |
190 virtual TInt HandleModifyActivePdpContextReqL(const TDesC& aContextName) = 0; |
190 virtual TInt HandleModifyActivePdpContextReqL(const TDesC& aContextName) = 0; |
191 }; // class MLtsyDispatchPacketServicesModifyActivePdpContext |
191 }; // class MLtsyDispatchPacketServicesModifyActivePdpContext |
192 |
192 |
193 |
193 |
194 |
194 |
195 class MLtsyDispatchPacketServicesInitialisePdpContext : public MLtsyDispatchInterface |
195 class MLtsyDispatchPacketServicesInitialisePrimaryPdpContext : public MLtsyDispatchInterface |
196 { |
196 { |
197 public: |
197 public: |
198 |
198 |
199 static const TInt KLtsyDispatchPacketServicesInitialisePdpContextApiId = KDispatchPacketServicesFuncUnitId + 7; |
199 static const TInt KLtsyDispatchPacketServicesInitialisePrimaryPdpContextApiId = KDispatchPacketServicesFuncUnitId + 7; |
200 |
200 |
201 /** |
201 /** |
202 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextInitialiseContext |
202 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextInitialiseContext |
203 * request from the CTSY. |
203 * request to initialize a primary context from the CTSY. |
204 * |
204 * |
205 * It is a request call that is completed by invoking |
205 * It is a request call that is completed by invoking |
206 * CCtsyDispatcherCallback::CallbackPacketServicesInitialisePdpContextComp() |
206 * CCtsyDispatcherCallback::CallbackPacketServicesInitialisePdpContextComp() |
207 * Implementation of this interface should initialise either primary or secondary contexts |
207 * Implementation of this interface should initialise either primary or secondary contexts |
208 * |
208 * |
209 * |
209 * |
210 * @param aPrimaryContextName Primary context name in the form of a character string, |
210 * @param aPrimaryContextName Primary context name in the form of a character string, |
211 * the maximum length of the descriptor should not exceed KMaxInfoName. |
211 * the maximum length of the descriptor should not exceed KMaxInfoName. |
212 * @param aSecondaryContextName Optional secondary context name in the form of a character |
212 * |
|
213 * @return KErrNone on success, otherwise another error code indicating the |
|
214 * failure. |
|
215 */ |
|
216 virtual TInt HandleInitialisePrimaryPdpContextReqL(const TDesC& aPrimaryContextName) = 0; |
|
217 }; // class MLtsyDispatchPacketServicesInitialisePrimaryPdpContext |
|
218 |
|
219 class MLtsyDispatchPacketServicesInitialiseSecondaryPdpContext : public MLtsyDispatchInterface |
|
220 { |
|
221 public: |
|
222 |
|
223 static const TInt KLtsyDispatchPacketServicesInitialiseSecondaryPdpContextApiId = KDispatchPacketServicesFuncUnitId + 8; |
|
224 |
|
225 /** |
|
226 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextInitialiseContext |
|
227 * request to initialize a secondary context from the CTSY. |
|
228 * |
|
229 * It is a request call that is completed by invoking |
|
230 * CCtsyDispatcherCallback::CallbackPacketServicesInitialisePdpContextComp() |
|
231 * Implementation of this interface should initialise either primary or secondary contexts |
|
232 * |
|
233 * |
|
234 * @param aPrimaryContextName Primary context name in the form of a character string, |
|
235 * the maximum length of the descriptor should not exceed KMaxInfoName. |
|
236 * @param aSecondaryContextName Secondary context name in the form of a character |
213 * string, the maximum length of the descriptor should not exceed KMaxInfoName. |
237 * string, the maximum length of the descriptor should not exceed KMaxInfoName. |
214 * |
238 * |
215 * @return KErrNone on success, otherwise another error code indicating the |
239 * @return KErrNone on success, otherwise another error code indicating the |
216 * failure. |
240 * failure. |
217 */ |
241 */ |
218 virtual TInt HandleInitialisePdpContextReqL(const TDesC& aPrimaryContextName, const TDesC& aSecondaryContextName) = 0; |
242 virtual TInt HandleInitialiseSecondaryPdpContextReqL(const TDesC& aPrimaryContextName, const TDesC& aSecondaryContextName) = 0; |
219 }; // class MLtsyDispatchPacketServicesInitialisePdpContext |
243 }; // class MLtsyDispatchPacketServicesInitialiseSecondaryPdpContext |
220 |
|
221 |
|
222 |
244 |
223 class MLtsyDispatchPacketServicesDeletePdpContext : public MLtsyDispatchInterface |
245 class MLtsyDispatchPacketServicesDeletePdpContext : public MLtsyDispatchInterface |
224 { |
246 { |
225 public: |
247 public: |
226 |
248 |
227 static const TInt KLtsyDispatchPacketServicesDeletePdpContextApiId = KDispatchPacketServicesFuncUnitId + 8; |
249 static const TInt KLtsyDispatchPacketServicesDeletePdpContextApiId = KDispatchPacketServicesFuncUnitId + 9; |
228 |
250 |
229 /** |
251 /** |
230 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextDelete |
252 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextDelete |
231 * request from the CTSY. |
253 * request from the CTSY. |
232 * |
254 * |
269 virtual TInt HandleSetPacketAttachModeReqL(RPacketService::TAttachMode aAttachMode) = 0; |
291 virtual TInt HandleSetPacketAttachModeReqL(RPacketService::TAttachMode aAttachMode) = 0; |
270 |
292 |
271 }; // class MLtsyDispatchPacketServicesSetPacketAttachMode |
293 }; // class MLtsyDispatchPacketServicesSetPacketAttachMode |
272 |
294 |
273 |
295 |
274 |
|
275 class MLtsyDispatchPacketServicesNotifyPacketStatusChange : public MLtsyDispatchInterface |
|
276 { |
|
277 public: |
|
278 |
|
279 static const TInt KLtsyDispatchPacketServicesNotifyPacketStatusChangeApiId = KDispatchPacketServicesFuncUnitId + 10; |
|
280 |
|
281 /** |
|
282 * The CTSY Dispatcher shall invoke this function on receiving the EPacketNotifyStatusChange |
|
283 * request from the CTSY. |
|
284 * |
|
285 * It is a request call that is completed by invoking |
|
286 * CCtsyDispatcherCallback::CallbackPacketServicesNotifyPacketStatusChangeComp() |
|
287 * |
|
288 * Implementation of this interface should notify when the status of the packet service was changed. |
|
289 * |
|
290 * @return KErrNone on success, otherwise another error code indicating the |
|
291 * failure. |
|
292 */ |
|
293 virtual TInt HandleNotifyPacketStatusChangeReqL() = 0; |
|
294 |
|
295 }; // class MLtsyDispatchPacketServicesNotifyPacketStatusChange |
|
296 |
296 |
297 |
297 |
298 |
298 |
299 class MLtsyDispatchPacketServicesSetDefaultPdpContextGprsParams : public MLtsyDispatchInterface |
299 class MLtsyDispatchPacketServicesSetDefaultPdpContextGprsParams : public MLtsyDispatchInterface |
300 { |
300 { |
529 */ |
529 */ |
530 virtual TInt HandleAddPacketFilterSyncL(const TDesC& aContextName, CArrayFixFlat<RPacketContext::TPacketFilterV2>& aContextFilter) = 0; |
530 virtual TInt HandleAddPacketFilterSyncL(const TDesC& aContextName, CArrayFixFlat<RPacketContext::TPacketFilterV2>& aContextFilter) = 0; |
531 |
531 |
532 }; // class MLtsyDispatchPacketServicesAddPacketFilter |
532 }; // class MLtsyDispatchPacketServicesAddPacketFilter |
533 |
533 |
534 class MLtsyDispatchPacketServicesGetStatus : public MLtsyDispatchInterface |
|
535 { |
|
536 public: |
|
537 |
|
538 static const TInt KLtsyDispatchPacketServicesGetStatusApiId = KDispatchPacketServicesFuncUnitId + 20; |
|
539 |
|
540 /** |
|
541 * The CTSY Dispatcher shall invoke this function during the packet services bootup |
|
542 * as part of EPacketNotifyStatusChange call. |
|
543 * |
|
544 * It is a request call that is completed by invoking |
|
545 * CCtsyDispatcherCallback::CallbackPacketServicesGetStatusComp() |
|
546 * |
|
547 * Implemetation of this interface should retrieve the packet service status. |
|
548 * |
|
549 * @return KErrNone on success, otherwise another error code indicating the |
|
550 * failure. |
|
551 */ |
|
552 virtual TInt HandleGetStatusReqL() = 0; |
|
553 |
|
554 }; // class MLtsyDispatchPacketServicesGetStatus |
|
555 |
534 |
556 class MLtsyDispatchPacketServicesGetStaticCapabilities : public MLtsyDispatchInterface |
535 class MLtsyDispatchPacketServicesGetStaticCapabilities : public MLtsyDispatchInterface |
557 { |
536 { |
558 public: |
537 public: |
559 |
538 |
560 static const TInt KLtsyDispatchPacketServicesGetStaticCapabilitiesApiId = KDispatchPacketServicesFuncUnitId + 21; |
539 static const TInt KLtsyDispatchPacketServicesGetStaticCapabilitiesApiId = KDispatchPacketServicesFuncUnitId + 20; |
561 |
540 |
562 /** |
541 /** |
563 * The CTSY Dispatcher shall invoke this function during the packet services bootup |
542 * The CTSY Dispatcher shall invoke this function during the packet services bootup |
564 * as part of EPacketGetStaticCaps call. |
543 * as part of EPacketGetStaticCaps call. |
565 * |
544 * |