1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2009 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 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
40 |
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 |
54 } |
55 } |
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 |
|
66 friend class PDPCprStates::TUpdateBundle; |
65 friend class PDPCprStates::TUpdateBundle; |
67 #endif |
|
68 |
66 |
69 public: |
67 public: |
70 typedef CPDPConnectionProviderFactory FactoryType; |
68 typedef CPDPConnectionProviderFactory FactoryType; |
71 |
69 |
72 static CPDPConnectionProvider* NewL(ESock::CConnectionProviderFactoryBase& aFactory); |
70 static CPDPConnectionProvider* NewL(ESock::CConnectionProviderFactoryBase& aFactory); |
73 |
71 |
74 // from MPDPCPRBearerObserver |
|
75 virtual void BearerChangeDetectedL(); |
72 virtual void BearerChangeDetectedL(); |
76 |
73 |
77 private: |
74 protected: |
78 CPDPConnectionProvider(ESock::CConnectionProviderFactoryBase& aFactory); |
75 CPDPConnectionProvider(ESock::CConnectionProviderFactoryBase& aFactory); |
79 |
|
80 protected: |
|
81 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
82 void StartListener(); |
76 void StartListener(); |
83 void StopListener(); |
77 void StopListener(); |
|
78 TUint32 Bearer(TUint aDynamicCaps, RMobilePhone::TMobilePhoneNetworkMode& aNetworkMode); |
84 void UpdateBearer(); |
79 void UpdateBearer(); |
85 TUint32 Bearer(TUint aDynamicCaps, RMobilePhone::TMobilePhoneNetworkMode& aNetworkMode); |
|
86 #endif |
|
87 |
|
88 virtual ~CPDPConnectionProvider(); |
80 virtual ~CPDPConnectionProvider(); |
89 virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
81 virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
90 void ConstructL(); |
82 void ConstructL(); |
91 private: |
83 private: |
92 CPDPCPRDynamicCapsListener* iDynamicCapsEventListener; |
84 CPDPCPRDynamicCapsListener* iDynamicCapsEventListener; |