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