1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-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". |
29 #include <comms-infras/ss_msgintercept.h> |
29 #include <comms-infras/ss_msgintercept.h> |
30 #include <comms-infras/agentscprstates.h> |
30 #include <comms-infras/agentscprstates.h> |
31 #include <comms-infras/agentscpractivities.h> |
31 #include <comms-infras/agentscpractivities.h> |
32 #include <comms-infras/ss_nodemessages_factory.h> |
32 #include <comms-infras/ss_nodemessages_factory.h> |
33 |
33 |
34 #if defined __FLOG_ACTIVE || defined SYMBIAN_TRACE_ENABLE |
34 #if defined SYMBIAN_TRACE_ENABLE |
35 #define KPDPSCprTag KESockSubConnectionTag |
35 #define KPDPSCprTag KESockSubConnectionTag |
36 _LIT8(KPDPSCprSubTag, "pdpscpr"); |
36 _LIT8(KPDPSCprSubTag, "pdpscpr"); |
37 #endif |
37 #endif |
38 |
38 |
39 using namespace Messages; |
39 using namespace Messages; |
89 // Cleanup if error occurred |
89 // Cleanup if error occurred |
90 THROUGH_NODEACTIVITY_ENTRY(KErrorTag, MeshMachine::TDoNothing, CoreNetStates::TNoTagOrNoDataClientsToStop) |
90 THROUGH_NODEACTIVITY_ENTRY(KErrorTag, MeshMachine::TDoNothing, CoreNetStates::TNoTagOrNoDataClientsToStop) |
91 NODEACTIVITY_ENTRY(KNoTag, SCprStates::TStopYourFlows, CoreNetStates::TAwaitingDataClientStopped, MeshMachine::TTag<CoreNetStates::KNoDataClientsToStop>) |
91 NODEACTIVITY_ENTRY(KNoTag, SCprStates::TStopYourFlows, CoreNetStates::TAwaitingDataClientStopped, MeshMachine::TTag<CoreNetStates::KNoDataClientsToStop>) |
92 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KNoDataClientsToStop, MeshMachine::TDoNothing, PDPSCprStates::TNoTagOrProviderStopped) |
92 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KNoDataClientsToStop, MeshMachine::TDoNothing, PDPSCprStates::TNoTagOrProviderStopped) |
93 NODEACTIVITY_ENTRY(KNoTag, PDPSCprStates::TDestroyPDPContext, PDPSCprStates::TAwaitingPDPContextDestroyed, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
93 NODEACTIVITY_ENTRY(KNoTag, PDPSCprStates::TDestroyPDPContext, PDPSCprStates::TAwaitingPDPContextDestroyed, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
94 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, PRStates::TDestroyOrphanedDataClients, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
94 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, PDPSCprStates::TCleanupFSMAndDataClients, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
95 LAST_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, MeshMachine::TRaiseActivityError) |
95 LAST_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, MeshMachine::TRaiseActivityError) |
96 NODEACTIVITY_END() |
96 NODEACTIVITY_END() |
97 } |
97 } |
98 |
98 |
99 namespace PDPSCprStopActivity |
99 namespace PDPSCprStopActivity |
104 |
104 |
105 // stopping |
105 // stopping |
106 NODEACTIVITY_ENTRY(KNoTag, SCprStates::TStopYourFlows, CoreNetStates::TAwaitingDataClientStopped, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
106 NODEACTIVITY_ENTRY(KNoTag, SCprStates::TStopYourFlows, CoreNetStates::TAwaitingDataClientStopped, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
107 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, MeshMachine::TDoNothing, PDPSCprStates::TNoTagOrProviderStopped) |
107 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, MeshMachine::TDoNothing, PDPSCprStates::TNoTagOrProviderStopped) |
108 NODEACTIVITY_ENTRY(KNoTag, PDPSCprStates::TDestroyPDPContext, PDPSCprStates::TAwaitingPDPContextDestroyed, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
108 NODEACTIVITY_ENTRY(KNoTag, PDPSCprStates::TDestroyPDPContext, PDPSCprStates::TAwaitingPDPContextDestroyed, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
109 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, PRStates::TDestroyOrphanedDataClients, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
109 THROUGH_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, PDPSCprStates::TCleanupFSMAndDataClients, MeshMachine::TTag<CoreNetStates::KProviderStopped>) |
110 LAST_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, PDPSCprStates::TSendDataClientStopped) |
110 LAST_NODEACTIVITY_ENTRY(CoreNetStates::KProviderStopped, PDPSCprStates::TSendDataClientStopped) |
111 NODEACTIVITY_END() |
111 NODEACTIVITY_END() |
112 } |
112 } |
113 |
113 |
114 namespace PDPSCprGoneDownActivity |
114 namespace PDPSCprGoneDownActivity |
547 |
547 |
548 if(grantedIPAddressInfo) |
548 if(grantedIPAddressInfo) |
549 { |
549 { |
550 grantedIPAddressInfo->AddParamInfo(aParamInfo); |
550 grantedIPAddressInfo->AddParamInfo(aParamInfo); |
551 |
551 |
552 iPacketFilterId.Append(aId); |
552 User::LeaveIfError(iPacketFilterId.Append(aId)); |
553 iPacketFilterMaskId |= 1 << aId; |
553 iPacketFilterMaskId |= 1 << aId; |
554 } |
554 } |
555 else |
555 else |
556 { |
556 { |
557 User::Leave(KErrNotFound); |
557 User::Leave(KErrNotFound); |