--- a/telephonyprotocols/pdplayer/inc/PDPCPR.h Wed Jun 16 15:43:02 2010 +0100
+++ b/telephonyprotocols/pdplayer/inc/PDPCPR.h Thu Jul 22 16:45:24 2010 +0100
@@ -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();