Telephony/ctsydispatchlayer/exportinc/mltsydispatchpacketservicesinterface.h
changeset 22 e3587ca0d5e1
parent 21 ab1d0f4d2aa4
equal deleted inserted replaced
21:ab1d0f4d2aa4 22:e3587ca0d5e1
     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 	 *
   249 
   271 
   250 class MLtsyDispatchPacketServicesSetPacketAttachMode : public MLtsyDispatchInterface
   272 class MLtsyDispatchPacketServicesSetPacketAttachMode : public MLtsyDispatchInterface
   251 	{
   273 	{
   252 public:
   274 public:
   253 
   275 
   254 	static const TInt KLtsyDispatchPacketServicesSetPacketAttachModeApiId = KDispatchPacketServicesFuncUnitId + 9;
   276 	static const TInt KLtsyDispatchPacketServicesSetPacketAttachModeApiId = KDispatchPacketServicesFuncUnitId + 10;
   255 
   277 
   256 	/**
   278 	/**
   257 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketSetAttachMode
   279 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketSetAttachMode
   258 	 * request from the CTSY.
   280 	 * request from the CTSY.
   259 	 *
   281 	 *
   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 	 * 
   582 
   561 
   583 class MLtsyDispatchPacketServicesGetMaxNoMonitoredServiceLists : public MLtsyDispatchInterface
   562 class MLtsyDispatchPacketServicesGetMaxNoMonitoredServiceLists : public MLtsyDispatchInterface
   584 	{
   563 	{
   585 public:
   564 public:
   586 
   565 
   587 	static const TInt KLtsyDispatchPacketServicesGetMaxNoMonitoredServiceListsApiId = KDispatchPacketServicesFuncUnitId + 22;
   566 	static const TInt KLtsyDispatchPacketServicesGetMaxNoMonitoredServiceListsApiId = KDispatchPacketServicesFuncUnitId + 21;
   588 
   567 
   589 	/**
   568 	/**
   590 	 * The CTSY Dispatcher shall invoke this function during the packet services bootup
   569 	 * The CTSY Dispatcher shall invoke this function during the packet services bootup
   591 	 * as part of EPacketEnumerateMbmsMonitorServiceList call.
   570 	 * as part of EPacketEnumerateMbmsMonitorServiceList call.
   592 	 * 
   571 	 * 
   609 
   588 
   610 class MLtsyDispatchPacketServicesGetMaxNoActiveServices : public MLtsyDispatchInterface
   589 class MLtsyDispatchPacketServicesGetMaxNoActiveServices : public MLtsyDispatchInterface
   611 	{
   590 	{
   612 public:
   591 public:
   613 
   592 
   614 	static const TInt KLtsyDispatchPacketServicesGetMaxNoActiveServicesApiId = KDispatchPacketServicesFuncUnitId + 23;
   593 	static const TInt KLtsyDispatchPacketServicesGetMaxNoActiveServicesApiId = KDispatchPacketServicesFuncUnitId + 22;
   615 
   594 
   616 	/**
   595 	/**
   617 	 * The CTSY Dispatcher shall invoke this function during the packet services bootup
   596 	 * The CTSY Dispatcher shall invoke this function during the packet services bootup
   618 	 * as part of EPacketEnumerateMbmsActiveServiceList call.
   597 	 * as part of EPacketEnumerateMbmsActiveServiceList call.
   619 	 * 
   598 	 * 
   633 
   612 
   634 class MLtsyDispatchPacketServicesInitialiseMbmsContext : public MLtsyDispatchInterface
   613 class MLtsyDispatchPacketServicesInitialiseMbmsContext : public MLtsyDispatchInterface
   635 	{
   614 	{
   636 public:
   615 public:
   637 
   616 
   638 	static const TInt KLtsyDispatchPacketServicesInitialiseMbmsContextApiId = KDispatchPacketServicesFuncUnitId + 24;
   617 	static const TInt KLtsyDispatchPacketServicesInitialiseMbmsContextApiId = KDispatchPacketServicesFuncUnitId + 23;
   639 
   618 
   640 	/**
   619 	/**
   641 	 * The CTSY Dispatcher shall invoke this function on receiving the ECtsyPacketMbmsInitialiseContextReq
   620 	 * The CTSY Dispatcher shall invoke this function on receiving the ECtsyPacketMbmsInitialiseContextReq
   642 	 * request from the CTSY.
   621 	 * request from the CTSY.
   643 	 *
   622 	 *
   662 
   641 
   663 class MLtsyDispatchPacketServicesGetMbmsNetworkServiceStatus : public MLtsyDispatchInterface
   642 class MLtsyDispatchPacketServicesGetMbmsNetworkServiceStatus : public MLtsyDispatchInterface
   664 	{
   643 	{
   665 public:
   644 public:
   666 
   645 
   667 	static const TInt KLtsyDispatchPacketServicesGetMbmsNetworkServiceStatusApiId = KDispatchPacketServicesFuncUnitId + 25;
   646 	static const TInt KLtsyDispatchPacketServicesGetMbmsNetworkServiceStatusApiId = KDispatchPacketServicesFuncUnitId + 24;
   668 
   647 
   669 	/**
   648 	/**
   670 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketGetMbmsNetworkServiceStatus
   649 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketGetMbmsNetworkServiceStatus
   671 	 * request from the CTSY.
   650 	 * request from the CTSY.
   672 	 *
   651 	 *
   699 
   678 
   700 class MLtsyDispatchPacketServicesUpdateMbmsMonitorServiceList : public MLtsyDispatchInterface
   679 class MLtsyDispatchPacketServicesUpdateMbmsMonitorServiceList : public MLtsyDispatchInterface
   701 	{
   680 	{
   702 public:
   681 public:
   703 
   682 
   704 	static const TInt KLtsyDispatchPacketServicesUpdateMbmsMonitorServiceListApiId = KDispatchPacketServicesFuncUnitId + 26;
   683 	static const TInt KLtsyDispatchPacketServicesUpdateMbmsMonitorServiceListApiId = KDispatchPacketServicesFuncUnitId + 25;
   705 
   684 
   706 	/**
   685 	/**
   707 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketUpdateMbmsMonitorServiceList
   686 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketUpdateMbmsMonitorServiceList
   708 	 * request from the CTSY.
   687 	 * request from the CTSY.
   709 	 *
   688 	 *
   732 
   711 
   733 class MLtsyDispatchPacketServicesUpdateMbmsSessionList : public MLtsyDispatchInterface
   712 class MLtsyDispatchPacketServicesUpdateMbmsSessionList : public MLtsyDispatchInterface
   734 	{
   713 	{
   735 public:
   714 public:
   736 
   715 
   737 	static const TInt KLtsyDispatchPacketServicesUpdateMbmsSessionListApiId = KDispatchPacketServicesFuncUnitId + 27;
   716 	static const TInt KLtsyDispatchPacketServicesUpdateMbmsSessionListApiId = KDispatchPacketServicesFuncUnitId + 26;
   738 
   717 
   739 	/**
   718 	/**
   740 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextUpdateMbmsSessionList
   719 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextUpdateMbmsSessionList
   741 	 * request from the CTSY.
   720 	 * request from the CTSY.
   742 	 *
   721 	 *
   764 
   743 
   765 class MLtsyDispatchPacketServicesRemovePacketFilter : public MLtsyDispatchInterface
   744 class MLtsyDispatchPacketServicesRemovePacketFilter : public MLtsyDispatchInterface
   766 	{
   745 	{
   767 public:
   746 public:
   768 
   747 
   769 	static const TInt KLtsyDispatchPacketServicesRemovePacketFilterApiId = KDispatchPacketServicesFuncUnitId + 28;
   748 	static const TInt KLtsyDispatchPacketServicesRemovePacketFilterApiId = KDispatchPacketServicesFuncUnitId + 27;
   770 	/**
   749 	/**
   771 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextRemovePacketFilter
   750 	 * The CTSY Dispatcher shall invoke this function on receiving the EPacketContextRemovePacketFilter
   772 	 * request from the CTSY.
   751 	 * request from the CTSY.
   773 	 * Implementation of this interface should remove a packet filter from the packet service.
   752 	 * Implementation of this interface should remove a packet filter from the packet service.
   774 	 * 
   753 	 *