telephonyprotocols/pdplayer/inc/PDPCPR.h
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
--- a/telephonyprotocols/pdplayer/inc/PDPCPR.h	Thu Aug 19 11:03:36 2010 +0300
+++ b/telephonyprotocols/pdplayer/inc/PDPCPR.h	Tue Aug 31 16:23:08 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -37,7 +37,7 @@
     }
 
 
-
+#ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
 namespace PDPCprStates
 {
 typedef MeshMachine::TNodeContext<CPDPConnectionProvider, CprStates::TContext> TContext;
@@ -51,8 +51,8 @@
    TUpdateBundle,
    PRStates::TRespondWithRetrievedParams
    )
-
 }
+#endif
 
 
 class CPDPConnectionProvider : public CCoreConnectionProvider, MPDPCPRBearerObserver
@@ -62,21 +62,29 @@
 */
     {
 	friend class CPDPConnectionProviderFactory;
+#ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
 	friend class PDPCprStates::TUpdateBundle;
+#endif
 
 public:
     typedef CPDPConnectionProviderFactory FactoryType;
 	
 	static CPDPConnectionProvider* NewL(ESock::CConnectionProviderFactoryBase& aFactory);
-	
+
+	// from MPDPCPRBearerObserver
 	virtual void BearerChangeDetectedL();
-	
-protected:	
+
+private:	
     CPDPConnectionProvider(ESock::CConnectionProviderFactoryBase& aFactory);
+   
+protected:
+#ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW
     void StartListener();
     void StopListener();
+    void UpdateBearer();
     TUint32 Bearer(TUint aDynamicCaps, RMobilePhone::TMobilePhoneNetworkMode& aNetworkMode);
-    void UpdateBearer();
+#endif
+    
     virtual ~CPDPConnectionProvider();
     virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
 	void ConstructL();