|
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 CMCESTATEOFFERING_H |
|
22 #define CMCESTATEOFFERING_H |
|
23 |
|
24 #include "mcestate.h" |
|
25 |
|
26 /** |
|
27 * Represents MCE server state Offering |
|
28 * State transition is performed beacuse of following |
|
29 * trigger events: |
|
30 * - EMceResponse |
|
31 * - EMceProvisionalResponse |
|
32 * - EMceRedirectionResponse |
|
33 * - EMceErrorResponse |
|
34 * - EMceAnswerDecoded |
|
35 * - EMceAnswerToUpdateDecoded |
|
36 * - EMceItcCancel |
|
37 * |
|
38 */ |
|
39 class CMceStateOffering : public CMceState, |
|
40 public MMCEStateTransitionHandler |
|
41 { |
|
42 |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Consructor |
|
47 */ |
|
48 CMceStateOffering (); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CMceStateOffering(); |
|
54 |
|
55 public: // from CMceState |
|
56 |
|
57 /** |
|
58 * Checks if state accepts event |
|
59 * @param aEvent atransition event |
|
60 */ |
|
61 TBool DoAcceptL( TMceStateTransitionEvent& aEvent ); |
|
62 |
|
63 /** |
|
64 * Reruns transition handler |
|
65 * @return transition handler |
|
66 */ |
|
67 inline MMCEStateTransitionHandler& TransitionHandler() |
|
68 { |
|
69 return *this; |
|
70 } |
|
71 |
|
72 public: // from MMCEStateTransitionHandler |
|
73 |
|
74 /** |
|
75 * Hanldes state transition message and executes |
|
76 * necessary actions |
|
77 * @param aEvent atransition event |
|
78 */ |
|
79 void EntryL( TMceStateTransitionEvent& aEvent ); |
|
80 |
|
81 /** |
|
82 * Resolves state to which current state exit |
|
83 * @param aEvent atransition event |
|
84 */ |
|
85 void ExitL( TMceStateTransitionEvent& aEvent ); |
|
86 |
|
87 |
|
88 private://handler routines |
|
89 |
|
90 /** |
|
91 * Handles entry of EMceUpdate |
|
92 * @param aEvent transition event |
|
93 */ |
|
94 void EntryUpdateL( TMceStateTransitionEvent& aEvent ); |
|
95 |
|
96 /** |
|
97 * Handles entry of EMceMediaUpdated |
|
98 * @param aEvent transition event |
|
99 */ |
|
100 void EntryMediaUpdatedL( TMceStateTransitionEvent& aEvent ); |
|
101 |
|
102 /** |
|
103 * Handles entry of EMceProvisionalResponse |
|
104 * @param aEvent transition event |
|
105 */ |
|
106 void EntryProvisionalResponseL( TMceStateTransitionEvent& aEvent ); |
|
107 |
|
108 /** |
|
109 * Handles entry of EMceRedirectionResponse |
|
110 * @param aEvent transition event |
|
111 */ |
|
112 void EntryRedirectionResponseL( TMceStateTransitionEvent& aEvent ); |
|
113 |
|
114 /* |
|
115 * handle exit 3xx redirection response |
|
116 */ |
|
117 void ExitRedirectionEventL( TMceStateTransitionEvent& aEvent ); |
|
118 |
|
119 /** |
|
120 * Handles entry of EMceResponse |
|
121 * @param aEvent transition event |
|
122 */ |
|
123 void EntryResponseL( TMceStateTransitionEvent& aEvent ); |
|
124 |
|
125 /** |
|
126 * Handles entry of EMceErrorResponse |
|
127 * @param aEvent transition event |
|
128 */ |
|
129 void EntryErrorResponseL( TMceStateTransitionEvent& aEvent ); |
|
130 |
|
131 /** |
|
132 * Handles entry of EMceItcCancel |
|
133 * @param aEvent transition event |
|
134 */ |
|
135 void EntryCancelL( TMceStateTransitionEvent& aEvent ); |
|
136 |
|
137 /** |
|
138 * Handles entry of EMceAnswerToUpdateDecoded |
|
139 * @param aEvent transition event |
|
140 */ |
|
141 void EntryAnswerToUpdateDecodedL( TMceStateTransitionEvent& aEvent ); |
|
142 |
|
143 |
|
144 /** |
|
145 * Handles entry of EMceBye |
|
146 * @param aEvent transition event |
|
147 */ |
|
148 void EntryByeL( TMceStateTransitionEvent& aEvent ); |
|
149 |
|
150 /** |
|
151 * Handles exit of EMceResponse, EMceErrorResponse, EMceProvisionalResponse |
|
152 * @param aEvent transition event |
|
153 */ |
|
154 void ExitSIPEventL( TMceStateTransitionEvent& aEvent ); |
|
155 |
|
156 void EntryAnswerToOfferDecodedL( TMceStateTransitionEvent& aEvent ); |
|
157 |
|
158 }; |
|
159 |
|
160 #endif |
|
161 |
|
162 // End of File |