|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Function definitions for VCC Releasing State |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TVCCSTATERELEASING_H |
|
21 #define TVCCSTATERELEASING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32cmn.h> // HBufC |
|
26 |
|
27 #include "tvccstate.h" |
|
28 |
|
29 /** Releasing state name */ |
|
30 const TUint KVccStateReleasing = 2; |
|
31 |
|
32 //forward declarations |
|
33 class CVccPerformer; |
|
34 |
|
35 /** |
|
36 * The base class for VCC state machine implementation. |
|
37 * Contains default implementations for the functions. |
|
38 * |
|
39 * @lib vccperformer.dll |
|
40 * @since S60 3.2 |
|
41 */ |
|
42 class TVccStateReleasing: public TVccState |
|
43 { |
|
44 |
|
45 public: |
|
46 /** |
|
47 * c'tor |
|
48 */ |
|
49 |
|
50 TVccStateReleasing(); |
|
51 |
|
52 /** |
|
53 * Links the state i.e. provides transition points. |
|
54 * @param aInit an init state |
|
55 */ |
|
56 void LinkState( TVccState& aInit ); |
|
57 |
|
58 // From base class TVccState |
|
59 |
|
60 /** |
|
61 * @see TVccState::Name() |
|
62 */ |
|
63 TUint Name() const; |
|
64 |
|
65 /** |
|
66 * @see TVccState::CallStateChanged() |
|
67 */ |
|
68 void CallStateChanged( CVccPerformer& aContext, |
|
69 const MCCPCallObserver::TCCPCallState aState, |
|
70 MCCPCall* aCall ); |
|
71 |
|
72 /** |
|
73 * @see TVccState::CallEventOccurred() |
|
74 */ |
|
75 void CallEventOccurred( CVccPerformer& aContext, |
|
76 const MCCPCallObserver::TCCPCallEvent aEvent, |
|
77 MCCPCall* aCall ); |
|
78 |
|
79 private: |
|
80 //no copying |
|
81 TVccStateReleasing(const TVccStateReleasing&); |
|
82 TVccStateReleasing operator = (const TVccStateReleasing&); |
|
83 |
|
84 private: |
|
85 |
|
86 /** |
|
87 * Reference to Init state |
|
88 * Not own. |
|
89 */ |
|
90 TVccState* iInit; |
|
91 }; |
|
92 |
|
93 #endif // TVCCSTATERELEASING_H |
|
94 |
|
95 // End of File |