|
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 CMCESTATEUPDATED_H |
|
22 #define CMCESTATEUPDATED_H |
|
23 |
|
24 #include "mcestate.h" |
|
25 |
|
26 /** |
|
27 * Represents MCE server state Updated |
|
28 * State transition is performed beacuse of following |
|
29 * trigger events: |
|
30 * - EMceItcEnable |
|
31 * - EMceItcDisable |
|
32 * - EMceMediaPaused |
|
33 * - EMceMediaResumed |
|
34 * - EMceItcAcceptSession |
|
35 * - EMceItcRejectSession |
|
36 * - EMceItcRing |
|
37 * |
|
38 */ |
|
39 class CMceStateUpdated : public CMceState, |
|
40 public MMCEStateTransitionHandler |
|
41 { |
|
42 |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Consructor |
|
47 */ |
|
48 CMceStateUpdated (); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CMceStateUpdated(); |
|
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 |
|
89 #endif |
|
90 |
|
91 // End of File |