|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // RTPSCPR States |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_RTPSCPRSTATES_H |
|
24 #define SYMBIAN_RTPSCPRSTATES_H |
|
25 |
|
26 #include <comms-infras/corescprstates.h> |
|
27 #include <comms-infras/corescpractivities.h> |
|
28 #include <comms-infras/ss_coreprstates.h> |
|
29 #include <rtp_subconparams.h> |
|
30 #include "rtpscpr.h" |
|
31 |
|
32 |
|
33 //-========================================================= |
|
34 // |
|
35 // States |
|
36 // |
|
37 //-========================================================= |
|
38 namespace RtpSCprStates |
|
39 { |
|
40 enum { |
|
41 KRtp = 1, |
|
42 KNoRtp |
|
43 }; |
|
44 |
|
45 typedef MeshMachine::TNodeContext<CRtpSubConnectionProvider, SCprStates::TContext> TContext; |
|
46 |
|
47 |
|
48 DECLARE_SMELEMENT_HEADER( TNoTagOrErrorTag, MeshMachine::TStateFork<TContext>, NetStateMachine::MStateFork, TContext ) |
|
49 virtual TInt TransitionTag(); |
|
50 DECLARE_SMELEMENT_FOOTER( TNoTagOrErrorTag ) |
|
51 |
|
52 DECLARE_SMELEMENT_HEADER( TSendCommsBinderToCntrlProv, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
53 virtual void DoL(); |
|
54 DECLARE_SMELEMENT_FOOTER( TSendCommsBinderToCntrlProv ) |
|
55 |
|
56 DECLARE_SMELEMENT_HEADER( TCreateDataClient, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
57 virtual void DoL(); |
|
58 virtual void InitLocalParameterBundleL(CSubConRTPGenericParamSet* aReqGenericParams); |
|
59 DECLARE_SMELEMENT_FOOTER( TCreateDataClient ) |
|
60 |
|
61 DECLARE_SMELEMENT_HEADER( TRequestCommsBinder, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
62 virtual void DoL(); |
|
63 DECLARE_SMELEMENT_FOOTER( TRequestCommsBinder ) |
|
64 |
|
65 DECLARE_SMELEMENT_HEADER( TAwaitingReadyForBind, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext ) |
|
66 virtual TBool Accept(); |
|
67 DECLARE_SMELEMENT_FOOTER( TAwaitingReadyForBind ) |
|
68 |
|
69 DECLARE_SMELEMENT_HEADER( TAwaitingBinderRequest, MeshMachine::TState<TContext>, NetStateMachine::MState, TContext ) |
|
70 virtual TBool Accept(); |
|
71 DECLARE_SMELEMENT_FOOTER( TAwaitingBinderRequest ) |
|
72 |
|
73 DECLARE_SMELEMENT_HEADER( TSetPostedToFlow, MeshMachine::TStateTransition<TContext>, NetStateMachine::MStateTransition, TContext ) |
|
74 virtual void DoL(); |
|
75 DECLARE_SMELEMENT_FOOTER( TSetPostedToFlow ) |
|
76 |
|
77 typedef MeshMachine::TRetryTransition<RtpSCprStates::TRequestCommsBinder, ESock::TCFServiceProvider::TCommsBinderRequest> TRequestCommsBinderRetry; |
|
78 } |
|
79 |
|
80 #endif // SYMBIAN_RTPSCPRSTATES_H |