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