|
1 /** |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * THIS API IS INTERNAL TO NETWORKING AND IS SUBJECT TO CHANGE AND NOT FOR EXTERNAL USE |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file netmcprstates.h |
|
24 @internalTechnology |
|
25 @prototype |
|
26 */ |
|
27 |
|
28 #ifndef SYMBIAN_NETMCPRSTATES_H |
|
29 #define SYMBIAN_NETMCPRSTATES_H |
|
30 |
|
31 #define SYMBIAN_NETWORKING_UPS |
|
32 |
|
33 #include <comms-infras/mobilitymcprstates.h> |
|
34 #include "netmcpr.h" |
|
35 |
|
36 class CNetworkMetaConnectionProvider; |
|
37 #ifdef SYMBIAN_NETWORKING_UPS |
|
38 #include <comms-infras/upsmessages.h> |
|
39 class CUpsNetworkMetaConnectionProvider; |
|
40 #endif |
|
41 |
|
42 namespace NetMCprStates |
|
43 { |
|
44 typedef MeshMachine::TNodeContext<CNetworkMetaConnectionProvider, MobilityMCprStates::TContext> TContext; |
|
45 |
|
46 DECLARE_SMELEMENT_HEADER( TAwaitingPolicyParams, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext) |
|
47 virtual TBool Accept(); |
|
48 DECLARE_SMELEMENT_FOOTER( TAwaitingPolicyParams) |
|
49 |
|
50 #ifdef SYMBIAN_NETWORKING_UPS |
|
51 DECLARE_SMELEMENT_HEADER( TAwaitingUPSStatusChange, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext ) |
|
52 virtual TBool Accept(); |
|
53 DECLARE_SMELEMENT_FOOTER( TAwaitingUPSStatusChange ) |
|
54 #endif |
|
55 |
|
56 #ifdef DUMMY_MOBILITY_MCPR |
|
57 |
|
58 const TInt KMigrationRejected = 1; |
|
59 const TInt KMigrationAccepted = 2; |
|
60 const TInt KMigrationRequested = 3; |
|
61 |
|
62 typedef CoreStates::TAwaitingMessageState<ESock::TCFMessage::TMigrationAvailable> TDummyAwaitingMigrationAvailable; |
|
63 |
|
64 DECLARE_SMELEMENT_HEADER( TAwaitingMigrationRejectedOrMigrationAccepted, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext) |
|
65 virtual TBool Accept(); |
|
66 DECLARE_SMELEMENT_FOOTER( TAwaitingMigrationRejectedOrMigrationAccepted) |
|
67 |
|
68 DECLARE_SMELEMENT_HEADER( TAwaitingMigrationRequestedOrMigrationRejected, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext) |
|
69 virtual TBool Accept(); |
|
70 DECLARE_SMELEMENT_FOOTER( TAwaitingMigrationRequestedOrMigrationRejected) |
|
71 |
|
72 DECLARE_SMELEMENT_HEADER( TMigrationRequestedOrMigrationRejected, MeshMachine::TStateFork<TContext>, NetStateMachine::MStateFork, TContext) |
|
73 virtual TInt TransitionTag(); |
|
74 DECLARE_SMELEMENT_FOOTER( TMigrationRequestedOrMigrationRejected) |
|
75 |
|
76 DECLARE_SMELEMENT_HEADER( TSendMigrationAvailable, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext) |
|
77 virtual void DoL(); |
|
78 DECLARE_SMELEMENT_FOOTER( TSendMigrationAvailable) |
|
79 |
|
80 DECLARE_SMELEMENT_HEADER( TSendMigrateToAccessPoint, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext) |
|
81 virtual void DoL(); |
|
82 DECLARE_SMELEMENT_FOOTER( TSendMigrateToAccessPoint) |
|
83 |
|
84 #endif |
|
85 |
|
86 #ifdef SYMBIAN_NETWORKING_UPS |
|
87 |
|
88 // |
|
89 // Support for User Prompt Service |
|
90 // |
|
91 // These tuple classes were added for UPS support but are not in themselves UPS specific. |
|
92 |
|
93 // States |
|
94 |
|
95 DECLARE_SMELEMENT_HEADER( TAwaitingNoBearerNotFromSelf, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext) |
|
96 virtual TBool Accept(); |
|
97 DECLARE_SMELEMENT_FOOTER( TAwaitingNoBearerNotFromSelf) |
|
98 |
|
99 DECLARE_SMELEMENT_HEADER( TAwaitingBindToCompleteOrCancel, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext) |
|
100 virtual TBool Accept(); |
|
101 DECLARE_SMELEMENT_FOOTER( TAwaitingBindToCompleteOrCancel) |
|
102 |
|
103 // Transitions |
|
104 |
|
105 DECLARE_SMELEMENT_HEADER( TSendNoBearerToSelf, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext) |
|
106 virtual void DoL(); |
|
107 DECLARE_SMELEMENT_FOOTER( TSendNoBearerToSelf) |
|
108 |
|
109 #endif // SYMBIAN_NETWORKING_UPS |
|
110 |
|
111 DECLARE_SMELEMENT_HEADER( TProcessPolicyParams, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext) |
|
112 virtual void DoL(); |
|
113 DECLARE_SMELEMENT_FOOTER( TProcessPolicyParams) |
|
114 |
|
115 //-========================================================= |
|
116 // |
|
117 //Network Meta Connection Provider Transition Ids 11000..20000 |
|
118 // |
|
119 //-========================================================= |
|
120 |
|
121 //const TInt KAwaitAvailabilityNotification = 11000; |
|
122 //const TInt KProcessAvailabilityNotification = 11001; |
|
123 |
|
124 } // namespace NetMCprStates |
|
125 |
|
126 #ifdef SYMBIAN_NETWORKING_UPS |
|
127 |
|
128 namespace NetMCprUpsStates |
|
129 /** |
|
130 Support for UPS |
|
131 |
|
132 These states are dependent on CUpsNetworkMetaConnectionProvider. |
|
133 */ |
|
134 { |
|
135 typedef MeshMachine::TNodeContext<CUpsNetworkMetaConnectionProvider, MobilityMCprStates::TContext> TContext; |
|
136 |
|
137 DECLARE_SMELEMENT_HEADER( TUpsProcessProviderStatusChange, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext) |
|
138 virtual void DoL(); |
|
139 DECLARE_SMELEMENT_FOOTER( TUpsProcessProviderStatusChange) |
|
140 |
|
141 #ifdef SYMBIAN_NETWORKING_UPS |
|
142 DECLARE_SMELEMENT_HEADER( TProcessUpsStatusChange, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext) |
|
143 virtual void DoL(); |
|
144 DECLARE_SMELEMENT_FOOTER( TProcessUpsStatusChange) |
|
145 #endif |
|
146 |
|
147 } //NetMCprUpsStates |
|
148 |
|
149 #endif //SYMBIAN_NETWORKING_UPS |
|
150 |
|
151 #endif //SYMBIAN_NETMCPRSTATES_H |