|
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 #ifndef CMCENATSTATECONNECTED_H |
|
21 #define CMCENATSTATECONNECTED_H |
|
22 |
|
23 #include "mcenatstate.h" |
|
24 #include "mcestate.h" |
|
25 |
|
26 class TMceNatStateTransitionEvent; |
|
27 |
|
28 /** |
|
29 * IDLE |
|
30 * |
|
31 * |
|
32 */ |
|
33 class CMceNatStateConnected : public CMceNatState, |
|
34 public MMceNatStateTransitionHandler |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Consructor |
|
40 */ |
|
41 CMceNatStateConnected(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CMceNatStateConnected(); |
|
47 |
|
48 public: // from CMceState |
|
49 |
|
50 /** |
|
51 * Checks if state accepts event |
|
52 * @param aEvent atransition event |
|
53 */ |
|
54 TBool Accept( TMceNatStateTransitionEvent& aEvent ); |
|
55 |
|
56 /** |
|
57 * Reruns transition handler |
|
58 * @return transition handler |
|
59 */ |
|
60 inline MMceNatStateTransitionHandler& TransitionHandler() |
|
61 { |
|
62 return *this; |
|
63 } |
|
64 |
|
65 public: // from MMceNatStateTransitionHandler |
|
66 |
|
67 /** |
|
68 * Hanldes state transition message and executes |
|
69 * necessary actions |
|
70 * @param aEvent atransition event |
|
71 */ |
|
72 void EntryL( TMceNatStateTransitionEvent& aEvent ); |
|
73 |
|
74 /** |
|
75 * Resolves state to which current state exit |
|
76 * @param aEvent atransition event |
|
77 */ |
|
78 void ExitL( TMceNatStateTransitionEvent& aEvent ); |
|
79 |
|
80 private: // New functions |
|
81 |
|
82 void ExitErrorL( TMceNatStateTransitionEvent& aEvent ); |
|
83 |
|
84 void ExitUpdateSdpL( TMceNatStateTransitionEvent& aEvent ); |
|
85 |
|
86 void ExitHandleInviteL( TMceNatStateTransitionEvent& aEvent ); |
|
87 |
|
88 void ExitDefaultL( TMceNatStateTransitionEvent& aEvent ); |
|
89 |
|
90 }; |
|
91 |
|
92 #endif // CMCENATSTATECONNECTED_H |
|
93 |
|
94 // End of File |