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 Init State |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TVCCSTATEINIT_H |
|
21 #define TVCCSTATEINIT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32cmn.h> // HBufC |
|
26 |
|
27 #include "tvccstate.h" |
|
28 |
|
29 /** Init state name */ |
|
30 const TUint KVccStateInit = 0; |
|
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 TVccStateInit: public TVccState |
|
43 { |
|
44 |
|
45 public: |
|
46 /** |
|
47 * c'tor |
|
48 */ |
|
49 TVccStateInit(); |
|
50 |
|
51 /** |
|
52 * Links the state i.e. provides transition points. |
|
53 * @param aCalling reference to the calling state |
|
54 */ |
|
55 void LinkState( TVccState& aCalling ); |
|
56 |
|
57 // From base class TVccState |
|
58 |
|
59 /** |
|
60 * @see TVccState::Name() |
|
61 */ |
|
62 TUint Name() const; |
|
63 |
|
64 /** |
|
65 * @see TVccState::Swap() |
|
66 */ |
|
67 TInt Swap(MCCPCall& aCall); |
|
68 |
|
69 /** |
|
70 * @see TVccState::ErrorOccurred() |
|
71 */ |
|
72 void ErrorOccurred(CVccPerformer& aContext, |
|
73 const TCCPError aError, |
|
74 MCCPCall* aCall ); |
|
75 |
|
76 /** |
|
77 * @see TVccState::CallStateChanged() |
|
78 */ |
|
79 void CallStateChanged(CVccPerformer& aContext, |
|
80 const MCCPCallObserver::TCCPCallState aState, |
|
81 MCCPCall* aCall ); |
|
82 |
|
83 /** |
|
84 * @see TVccState::CallStateChangedWithInband() |
|
85 */ |
|
86 void CallStateChangedWithInband(CVccPerformer& aContext, |
|
87 const MCCPCallObserver::TCCPCallState aState, |
|
88 MCCPCall* aCall ); |
|
89 |
|
90 /** |
|
91 * @see TVccState::CallEventOccurred() |
|
92 */ |
|
93 void CallEventOccurred( CVccPerformer& aContext, |
|
94 const MCCPCallObserver::TCCPCallEvent aEvent, |
|
95 MCCPCall* aCall ); |
|
96 |
|
97 /** |
|
98 * @see TVccState::CallCapsChanged() |
|
99 */ |
|
100 void CallCapsChanged(CVccPerformer& aContext, const TUint32 aCapsFlags ); |
|
101 |
|
102 /** |
|
103 * @see TVccState::SwitchL() |
|
104 */ |
|
105 void SwitchL(CVccPerformer& aContext); |
|
106 |
|
107 private: |
|
108 //no copying |
|
109 TVccStateInit(const TVccStateInit&); |
|
110 TVccStateInit operator = (const TVccStateInit&); |
|
111 |
|
112 private: // Data |
|
113 |
|
114 /** |
|
115 * Reference to Calling state |
|
116 * Not own. |
|
117 */ |
|
118 TVccState* iCalling; |
|
119 }; |
|
120 |
|
121 #endif // TVCCSTATEINIT_H |
|
122 |
|
123 // End of File |
|