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