|
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 CMCESTATEANSWERING_H |
|
22 #define CMCESTATEANSWERING_H |
|
23 |
|
24 #include "mcestate.h" |
|
25 |
|
26 /** |
|
27 * Represents MCE server state Answering |
|
28 * State transition is performed beacuse of following |
|
29 * trigger events: |
|
30 * - EMceAck |
|
31 * |
|
32 */ |
|
33 class CMceStateAnswering : public CMceState, |
|
34 public MMCEStateTransitionHandler |
|
35 { |
|
36 |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Consructor |
|
41 */ |
|
42 CMceStateAnswering (); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~CMceStateAnswering(); |
|
48 |
|
49 public: // from CMceState |
|
50 |
|
51 /** |
|
52 * Checks if state accepts event |
|
53 * @param aEvent atransition event |
|
54 */ |
|
55 TBool DoAcceptL( TMceStateTransitionEvent& aEvent ); |
|
56 |
|
57 /** |
|
58 * Reruns transition handler |
|
59 * @return transition handler |
|
60 */ |
|
61 inline MMCEStateTransitionHandler& TransitionHandler() |
|
62 { |
|
63 return *this; |
|
64 } |
|
65 |
|
66 /** |
|
67 * Performed when entering to state |
|
68 * @param aEvent atransition event |
|
69 */ |
|
70 void StateEntry( TMceStateTransitionEvent& aEvent ); |
|
71 |
|
72 |
|
73 public: // from MMCEStateTransitionHandler |
|
74 |
|
75 /** |
|
76 * Hanldes state transition message and executes |
|
77 * necessary actions |
|
78 * @param aEvent atransition event |
|
79 */ |
|
80 void EntryL( TMceStateTransitionEvent& aEvent ); |
|
81 |
|
82 /** |
|
83 * Handles entry of EMceBye |
|
84 * @param aEvent transition event |
|
85 */ |
|
86 void EntryByeL( TMceStateTransitionEvent& aEvent ); |
|
87 |
|
88 /** |
|
89 * Resolves state to which current state exit |
|
90 * @param aEvent atransition event |
|
91 */ |
|
92 void ExitL( TMceStateTransitionEvent& aEvent ); |
|
93 |
|
94 }; |
|
95 |
|
96 #endif |
|
97 |
|
98 // End of File |