equal
deleted
inserted
replaced
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". |
23 #ifndef SYMBIAN_PDPSCPRSTATES_H |
23 #ifndef SYMBIAN_PDPSCPRSTATES_H |
24 #define SYMBIAN_PDPSCPRSTATES_H |
24 #define SYMBIAN_PDPSCPRSTATES_H |
25 |
25 |
26 #include <comms-infras/corescprstates.h> |
26 #include <comms-infras/corescprstates.h> |
27 #include <comms-infras/corescpractivities.h> |
27 #include <comms-infras/corescpractivities.h> |
|
28 #include "PDPMessageDefn.h" |
28 #include "PDPSCPR.h" |
29 #include "PDPSCPR.h" |
29 |
|
30 class TPDPFSMMessages |
|
31 { |
|
32 public: |
|
33 enum { ERealmId = 0x102822EF }; |
|
34 |
|
35 private: |
|
36 enum |
|
37 /** |
|
38 Definition of generic Link Tier message ids |
|
39 */ |
|
40 { |
|
41 EPDPFSMMessage = Messages::KNullMessageId + 1, |
|
42 }; |
|
43 public: |
|
44 typedef Messages::TMessageSigNumberNumber<EPDPFSMMessage, TPDPFSMMessages::ERealmId> TPDPFSMMessage; |
|
45 }; |
|
46 |
30 |
47 //-========================================================= |
31 //-========================================================= |
48 // |
32 // |
49 // |
33 // |
50 // |
34 // |
58 const TInt KFakeStart = 1; |
42 const TInt KFakeStart = 1; |
59 const TInt KBlocked = 2; |
43 const TInt KBlocked = 2; |
60 const TInt KUnblocked = 3; |
44 const TInt KUnblocked = 3; |
61 const TInt KSendErrorRecoveryRequest = 4; |
45 const TInt KSendErrorRecoveryRequest = 4; |
62 const TInt KContentionTag = 5; |
46 const TInt KContentionTag = 5; |
63 |
47 const TInt KUserAuthenticate = 6; |
64 |
48 |
65 typedef MeshMachine::TNodeContext<CPDPSubConnectionProvider, SCprStates::TContext> TContext; |
49 typedef MeshMachine::TNodeContext<CPDPSubConnectionProvider, SCprStates::TContext> TContext; |
66 typedef MeshMachine::TNodeContext<CPDPDefaultSubConnectionProvider, PDPSCprStates::TContext> TDefContext; |
50 typedef MeshMachine::TNodeContext<CPDPDefaultSubConnectionProvider, PDPSCprStates::TContext> TDefContext; |
67 |
51 |
68 //-========================================================= |
52 //-========================================================= |
75 |
59 |
76 DECLARE_SMELEMENT_HEADER( TNoTagOrError, MeshMachine::TStateFork<TContext>, NetStateMachine::MStateFork, TContext ) |
60 DECLARE_SMELEMENT_HEADER( TNoTagOrError, MeshMachine::TStateFork<TContext>, NetStateMachine::MStateFork, TContext ) |
77 virtual TInt TransitionTag(); |
61 virtual TInt TransitionTag(); |
78 DECLARE_SMELEMENT_FOOTER( TNoTagOrError ) |
62 DECLARE_SMELEMENT_FOOTER( TNoTagOrError ) |
79 |
63 |
80 DECLARE_SMELEMENT_HEADER( TNoTagOrAlreadyStarted, MeshMachine::TStateFork<TContext>, NetStateMachine::MStateFork, TContext ) |
64 DECLARE_SMELEMENT_HEADER( TNoTagOrUserAuthenticateOrAlreadyStarted, MeshMachine::TStateFork<TDefContext>, NetStateMachine::MStateFork, TDefContext ) |
81 virtual TInt TransitionTag(); |
65 virtual TInt TransitionTag(); |
82 DECLARE_SMELEMENT_FOOTER( TNoTagOrAlreadyStarted ) |
66 DECLARE_SMELEMENT_FOOTER( TNoTagOrUserAuthenticateOrAlreadyStarted ) |
83 |
67 |
84 DECLARE_SMELEMENT_HEADER( TSendDataClientIdleIfNoSubconnsAndNoClients, MeshMachine::TStateTransition<TDefContext>, NetStateMachine::MStateTransition, TDefContext ) |
68 DECLARE_SMELEMENT_HEADER( TSendDataClientIdleIfNoSubconnsAndNoClients, MeshMachine::TStateTransition<TDefContext>, NetStateMachine::MStateTransition, TDefContext ) |
85 virtual void DoL(); |
69 virtual void DoL(); |
86 DECLARE_SMELEMENT_FOOTER( TSendDataClientIdleIfNoSubconnsAndNoClients ) |
70 DECLARE_SMELEMENT_FOOTER( TSendDataClientIdleIfNoSubconnsAndNoClients ) |
87 |
71 |
100 |
84 |
101 //-========================================================= |
85 //-========================================================= |
102 //Provision |
86 //Provision |
103 //-========================================================= |
87 //-========================================================= |
104 DECLARE_SMELEMENT_HEADER( TSelfInit, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPSCprStates::TContext) |
88 DECLARE_SMELEMENT_HEADER( TSelfInit, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPSCprStates::TContext) |
105 virtual void DoL(); |
89 virtual void SetupProvisionCfgL(ESock::CCommsDatIapView* aIapView); |
|
90 virtual void DoL(); |
106 DECLARE_SMELEMENT_FOOTER( TSelfInit) |
91 DECLARE_SMELEMENT_FOOTER( TSelfInit) |
107 |
92 |
108 DECLARE_AGGREGATED_TRANSITION2( |
93 DECLARE_AGGREGATED_TRANSITION2( |
109 TStoreProvisionAndInitSelf, |
94 TStoreProvisionAndInitSelf, |
110 PRStates::TStoreProvision, |
95 PRStates::TStoreProvision, |
128 virtual void DoL(); |
113 virtual void DoL(); |
129 private: |
114 private: |
130 void SetupSipServerAddrRetrievalL(RPacketContext::TProtocolConfigOptionV2& aPco); |
115 void SetupSipServerAddrRetrievalL(RPacketContext::TProtocolConfigOptionV2& aPco); |
131 void SetImsSignallingFlagL(RPacketContext::TProtocolConfigOptionV2& aPco, TBool aImcn); |
116 void SetImsSignallingFlagL(RPacketContext::TProtocolConfigOptionV2& aPco, TBool aImcn); |
132 TBool IsModeGsmL() const; |
117 TBool IsModeGsmL() const; |
|
118 void SetChapInformationL(RPacketContext::TProtocolConfigOptionV2& aPco); |
|
119 void CreateChallengeAndResponseForChapL(RPacketContext::TProtocolConfigOptionV2& aPco); |
133 DECLARE_SMELEMENT_FOOTER( TCreatePrimaryPDPCtx) |
120 DECLARE_SMELEMENT_FOOTER( TCreatePrimaryPDPCtx) |
134 |
121 |
135 DECLARE_SMELEMENT_HEADER( TCreateSecondaryOrMbmsPDPCtx, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPSCprStates::TContext) |
122 DECLARE_SMELEMENT_HEADER( TCreateSecondaryOrMbmsPDPCtx, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPSCprStates::TContext) |
136 virtual void DoL(); |
123 virtual void DoL(); |
137 DECLARE_SMELEMENT_FOOTER( TCreateSecondaryOrMbmsPDPCtx) |
124 DECLARE_SMELEMENT_FOOTER( TCreateSecondaryOrMbmsPDPCtx) |
412 |
399 |
413 DECLARE_SMELEMENT_HEADER( TCancelDataClientStartInPDP, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPSCprStates::TContext) |
400 DECLARE_SMELEMENT_HEADER( TCancelDataClientStartInPDP, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, PDPSCprStates::TContext) |
414 virtual void DoL(); |
401 virtual void DoL(); |
415 DECLARE_SMELEMENT_FOOTER( TCancelDataClientStartInPDP ) |
402 DECLARE_SMELEMENT_FOOTER( TCancelDataClientStartInPDP ) |
416 |
403 |
|
404 //=========================================================== |
|
405 // User Authentication |
|
406 //=========================================================== |
|
407 DECLARE_SMELEMENT_HEADER(TSendAuthenticate, MeshMachine::TStateTransition<PDPSCprStates::TDefContext>, NetStateMachine::MStateTransition, PDPSCprStates::TDefContext) |
|
408 virtual void DoL(); |
|
409 DECLARE_SMELEMENT_FOOTER(TSendAuthenticate) |
|
410 |
|
411 DECLARE_SMELEMENT_HEADER(TAwaitingAuthenticateComplete, MeshMachine::TState<PDPSCprStates::TDefContext>, NetStateMachine::MState, PDPSCprStates::TDefContext) |
|
412 virtual TBool Accept(); |
|
413 DECLARE_SMELEMENT_FOOTER(TAwaitingAuthenticateComplete) |
|
414 |
417 } |
415 } |
418 |
416 |
419 #endif // SYMBIAN_PDPSCPRSTATES_H |
417 #endif // SYMBIAN_PDPSCPRSTATES_H |