networkcontrol/ipnetworklayer/inc/IPProtoSCPR.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // IPProto SubConnection Provider class definition.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef SYMBIAN_IPPROTOSCPR_H
       
    24 #define SYMBIAN_IPPROTOSCPR_H
       
    25 
       
    26 #include <comms-infras/ss_subconnprov.h>
       
    27 #include <comms-infras/corescpr.h>
       
    28 #include <comms-infras/corescprstates.h>
       
    29 #include <comms-infras/corecprstates.h>
       
    30 #include <comms-infras/netcfgextnotify.h>
       
    31 #include <comms-infras/nifconfigurationcontrol.h>
       
    32 #include <networking/pdpdef.h>
       
    33 #include "IPProtoSCPRFactory.h"
       
    34 #include <comms-infras/ss_datamonitoringprovider.h>
       
    35 #include <comms-infras/ss_log.h>
       
    36 #include <comms-infras/ss_nodemessages_legacy.h>
       
    37 
       
    38 #define KIPProtoSCPRTag KESockSubConnectionTag
       
    39 
       
    40 namespace IPProtoSCpr
       
    41 {
       
    42     class TStoreProvision;
       
    43 	class TAwaitingFlowUp;
       
    44 	class TAwaitingFlowDown;
       
    45 	class TStartNetCfgExt;
       
    46 	class TStopNetCfgExtOrNoTag;
       
    47 	class TStopNetCfgExt;
       
    48 	class TProcessIoctl;
       
    49 	class TCancelOutstandingIoctls;
       
    50 	class THandoffToNetCfgExt;
       
    51 	class TNoTagOrTryNetCfgExtOrCancelIoctl;
       
    52 	class TTryPdpOrTryNetCfgExtOrCancelIoctl;
       
    53 	class TNoTagOrCancelIoctl;
       
    54 	class TProcessAgentEvent;
       
    55 #ifndef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
       
    56 	class TSendParamsToServiceProvider;
       
    57 #endif // SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
       
    58 	class TSendDataClientRoutedToFlow;
       
    59 	class TStopNetCfgExtDelete;
       
    60 	class TNoTagOrProviderStoppedOrDaemonReleased;
       
    61 }
       
    62 
       
    63 class CIPProtoSubConnectionProvider : public CCoreSubConnectionProvider, public ESock::ADataMonitoringProvider, public ESock::ALegacySubConnectionActiveApiExt,
       
    64                                    	  public ITFHIERARCHY_LINK_2(CIPProtoSubConnectionProvider, CCoreSubConnectionProvider, ESock::ADataMonitoringProtocolReq, ESock::ALegacySubConnectionActiveApiExt)
       
    65 /** IPProto subconnection provider base class
       
    66 
       
    67 @internalTechnology
       
    68 @released Since 9.4 */
       
    69 	{
       
    70 	friend class CIPProtoSubConnectionProviderFactory;
       
    71 	friend class IPProtoSCpr::TStoreProvision;
       
    72     friend class IPProtoSCpr::TAwaitingFlowUp;
       
    73 	friend class IPProtoSCpr::TAwaitingFlowDown;
       
    74 	friend class IPProtoSCpr::TStartNetCfgExt;
       
    75 	friend class IPProtoSCpr::TStopNetCfgExtOrNoTag;
       
    76 	friend class IPProtoSCpr::TStopNetCfgExt;
       
    77 	friend class IPProtoSCpr::TProcessIoctl;
       
    78 	friend class IPProtoSCpr::TCancelOutstandingIoctls;
       
    79 	friend class IPProtoSCpr::THandoffToNetCfgExt;
       
    80 	friend class IPProtoSCpr::TNoTagOrTryNetCfgExtOrCancelIoctl;
       
    81 	friend class IPProtoSCpr::TNoTagOrCancelIoctl;
       
    82 	friend class IPProtoSCpr::TTryPdpOrTryNetCfgExtOrCancelIoctl;
       
    83 	friend class IPProtoSCpr::TProcessAgentEvent;		// for iControl
       
    84 #ifndef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
       
    85 	friend class IPProtoSCpr::TSendParamsToServiceProvider;
       
    86 #endif // SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
       
    87 	friend class IPProtoSCpr::TSendDataClientRoutedToFlow;
       
    88 	friend class IPProtoSCpr::TStopNetCfgExtDelete;
       
    89 	friend class IPProtoSCpr::TNoTagOrProviderStoppedOrDaemonReleased;
       
    90 public:
       
    91 	typedef ITFHIERARCHY_LINK_2(CIPProtoSubConnectionProvider, CCoreSubConnectionProvider, ADataMonitoringProtocolReq, ALegacySubConnectionActiveApiExt) TIfStaticFetcherNearestInHierarchy;
       
    92 
       
    93     typedef CIPProtoSubConnectionProviderFactory FactoryType;
       
    94 	virtual ~CIPProtoSubConnectionProvider();
       
    95 
       
    96 	void ReturnInterfacePtrL(ADataMonitoringProtocolReq*& aInterface);
       
    97 	void ReturnInterfacePtrL(ALegacySubConnectionActiveApiExt*& aInterface);
       
    98 
       
    99 protected:
       
   100     CIPProtoSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory);
       
   101     void ConstructL();
       
   102     static CIPProtoSubConnectionProvider* NewL(ESock::CSubConnectionProviderFactoryBase& aFactory);
       
   103     void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
       
   104 
       
   105 protected:
       
   106 	CNetCfgExtNotify* iNotify;
       
   107 	CNifConfigurationControl* iControl;
       
   108     Messages::RNodeInterface iFlow;
       
   109 	TBool iIoctlCancelled;
       
   110 	};
       
   111 
       
   112 #endif //SYMBIAN_IPPROTOSCPR_H