telephonyprotocols/pdplayer/inc/PDPCPR.h
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     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".
    35     {
    35     {
    36     DECLARE_ACTIVITY_MAP(activityMap)
    36     DECLARE_ACTIVITY_MAP(activityMap)
    37     }
    37     }
    38 
    38 
    39 
    39 
    40 
    40 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
    41 namespace PDPCprStates
    41 namespace PDPCprStates
    42 {
    42 {
    43 typedef MeshMachine::TNodeContext<CPDPConnectionProvider, CprStates::TContext> TContext;
    43 typedef MeshMachine::TNodeContext<CPDPConnectionProvider, CprStates::TContext> TContext;
    44 
    44 
    45 DECLARE_SMELEMENT_HEADER( TUpdateBundle, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPCprStates::TContext)
    45 DECLARE_SMELEMENT_HEADER( TUpdateBundle, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPCprStates::TContext)
    49 DECLARE_AGGREGATED_TRANSITION2(
    49 DECLARE_AGGREGATED_TRANSITION2(
    50    TUpdateBundleAndRespondWithRetrievedParams,
    50    TUpdateBundleAndRespondWithRetrievedParams,
    51    TUpdateBundle,
    51    TUpdateBundle,
    52    PRStates::TRespondWithRetrievedParams
    52    PRStates::TRespondWithRetrievedParams
    53    )
    53    )
    54 
       
    55 }
    54 }
       
    55 #endif
    56 
    56 
    57 
    57 
    58 class CPDPConnectionProvider : public CCoreConnectionProvider, MPDPCPRBearerObserver
    58 class CPDPConnectionProvider : public CCoreConnectionProvider, MPDPCPRBearerObserver
    59 /** PDP connection provider
    59 /** PDP connection provider
    60 
    60 
    61 @internalTechnology
    61 @internalTechnology
    62 */
    62 */
    63     {
    63     {
    64 	friend class CPDPConnectionProviderFactory;
    64 	friend class CPDPConnectionProviderFactory;
       
    65 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
    65 	friend class PDPCprStates::TUpdateBundle;
    66 	friend class PDPCprStates::TUpdateBundle;
       
    67 #endif
    66 
    68 
    67 public:
    69 public:
    68     typedef CPDPConnectionProviderFactory FactoryType;
    70     typedef CPDPConnectionProviderFactory FactoryType;
    69 	
    71 	
    70 	static CPDPConnectionProvider* NewL(ESock::CConnectionProviderFactoryBase& aFactory);
    72 	static CPDPConnectionProvider* NewL(ESock::CConnectionProviderFactoryBase& aFactory);
    71 	
    73 
       
    74 	// from MPDPCPRBearerObserver
    72 	virtual void BearerChangeDetectedL();
    75 	virtual void BearerChangeDetectedL();
    73 	
    76 
    74 protected:	
    77 private:	
    75     CPDPConnectionProvider(ESock::CConnectionProviderFactoryBase& aFactory);
    78     CPDPConnectionProvider(ESock::CConnectionProviderFactoryBase& aFactory);
       
    79    
       
    80 protected:
       
    81 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
    76     void StartListener();
    82     void StartListener();
    77     void StopListener();
    83     void StopListener();
       
    84     void UpdateBearer();
    78     TUint32 Bearer(TUint aDynamicCaps, RMobilePhone::TMobilePhoneNetworkMode& aNetworkMode);
    85     TUint32 Bearer(TUint aDynamicCaps, RMobilePhone::TMobilePhoneNetworkMode& aNetworkMode);
    79     void UpdateBearer();
    86 #endif
       
    87     
    80     virtual ~CPDPConnectionProvider();
    88     virtual ~CPDPConnectionProvider();
    81     virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
    89     virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
    82 	void ConstructL();
    90 	void ConstructL();
    83 private:
    91 private:
    84 	CPDPCPRDynamicCapsListener* iDynamicCapsEventListener;
    92 	CPDPCPRDynamicCapsListener* iDynamicCapsEventListener;