|
1 /* |
|
2 * Copyright (c) 2005 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CMCESTATEESTABLISHED_H |
|
22 #define CMCESTATEESTABLISHED_H |
|
23 |
|
24 #include "mcestate.h" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * MCE SIP state machine |
|
32 * |
|
33 * @lib |
|
34 * @since |
|
35 */ |
|
36 class CMceStateEstablished : public CMceState, |
|
37 public MMCEStateTransitionHandler |
|
38 { |
|
39 |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Consructor |
|
44 */ |
|
45 CMceStateEstablished (); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CMceStateEstablished(); |
|
51 |
|
52 public: // from CMceState |
|
53 |
|
54 /** |
|
55 * Checks if state accepts event |
|
56 * @param aEvent atransition event |
|
57 */ |
|
58 TBool DoAcceptL( TMceStateTransitionEvent& aEvent ); |
|
59 |
|
60 /** |
|
61 * Reruns transition handler |
|
62 * @return transition handler |
|
63 */ |
|
64 inline MMCEStateTransitionHandler& TransitionHandler() |
|
65 { |
|
66 return *this; |
|
67 } |
|
68 |
|
69 |
|
70 /** |
|
71 * Performed when entering to state |
|
72 * @param aEvent atransition event |
|
73 */ |
|
74 void StateEntry( TMceStateTransitionEvent& aEvent ); |
|
75 |
|
76 /** |
|
77 * Performed when receiving MediaError |
|
78 * @param aEvent atransition event |
|
79 */ |
|
80 void MediaErrorOccured( TMceStateTransitionEvent& aEvent ); |
|
81 |
|
82 |
|
83 public: // from MMCEStateTransitionHandler |
|
84 |
|
85 /** |
|
86 * Hanldes state transition message and executes |
|
87 * necessary actions |
|
88 * @param aEvent atransition event |
|
89 */ |
|
90 void EntryL( TMceStateTransitionEvent& aEvent ); |
|
91 |
|
92 /** |
|
93 * Resolves state to which current state exit |
|
94 * @param aEvent atransition event |
|
95 */ |
|
96 void ExitL( TMceStateTransitionEvent& aEvent ); |
|
97 |
|
98 |
|
99 private://handler routines |
|
100 |
|
101 |
|
102 /** |
|
103 * Handles entry of EMceItcUpdate |
|
104 * @param aEvent transition event |
|
105 */ |
|
106 void EntryUpdateL( TMceStateTransitionEvent& aEvent ); |
|
107 |
|
108 /** |
|
109 * Handles entry of EMceUpdate |
|
110 * @param aEvent transition event |
|
111 */ |
|
112 void EntryInUpdateL( TMceStateTransitionEvent& aEvent ); |
|
113 |
|
114 /** |
|
115 * Handles entry of EMceInvite |
|
116 * @param aEvent transition event |
|
117 */ |
|
118 void EntryInviteL( TMceStateTransitionEvent& aEvent ); |
|
119 |
|
120 /** |
|
121 * Handles entry of EMceItcTerminateSession |
|
122 * @param aEvent transition event |
|
123 */ |
|
124 void EntryTerminateSessionL( TMceStateTransitionEvent& aEvent ); |
|
125 |
|
126 /** |
|
127 * Handles entry of EMceBye |
|
128 * @param aEvent transition event |
|
129 */ |
|
130 void EntryByeL( TMceStateTransitionEvent& aEvent ); |
|
131 |
|
132 /** |
|
133 * Handles entry of EMceItcEnable, EMceItcDisable, |
|
134 * EMceItcSendRR, EMceItcSendSR, EMceMediaPaused, EMceMediaResumed, |
|
135 * EMceMediaInactivityTimeout |
|
136 * @param aEvent transition event |
|
137 */ |
|
138 void EntryMediaL( TMceStateTransitionEvent& aEvent ); |
|
139 |
|
140 }; |
|
141 |
|
142 #endif |
|
143 |
|
144 // End of File |