|
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 CMCESTATETERMINATED_H |
|
22 #define CMCESTATETERMINATED_H |
|
23 |
|
24 #include "mcestate.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * Represents MCE server state Terminated |
|
29 * No state transitions |
|
30 */ |
|
31 class CMceStateTerminated : public CMceState, |
|
32 public MMCEStateTransitionHandler |
|
33 { |
|
34 |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Consructor |
|
39 */ |
|
40 CMceStateTerminated (); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CMceStateTerminated(); |
|
46 |
|
47 public: // from CMceState |
|
48 |
|
49 /** |
|
50 * Checks if state accepts event |
|
51 * @param aEvent atransition event |
|
52 */ |
|
53 TBool DoAcceptL( TMceStateTransitionEvent& aEvent ); |
|
54 |
|
55 /** |
|
56 * Reruns transition handler |
|
57 * @return transition handler |
|
58 */ |
|
59 inline MMCEStateTransitionHandler& TransitionHandler() |
|
60 { |
|
61 return *this; |
|
62 } |
|
63 |
|
64 public: // from MMCEStateTransitionHandler |
|
65 |
|
66 /** |
|
67 * Hanldes state transition message and executes |
|
68 * necessary actions |
|
69 * @param aEvent atransition event |
|
70 */ |
|
71 void EntryL( TMceStateTransitionEvent& aEvent ); |
|
72 |
|
73 /** |
|
74 * Resolves state to which current state exit |
|
75 * @param aEvent atransition event |
|
76 */ |
|
77 void ExitL( TMceStateTransitionEvent& aEvent ); |
|
78 |
|
79 }; |
|
80 |
|
81 #endif |
|
82 |
|
83 // End of File |