|
1 /* |
|
2 * Copyright (c) 2006 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: Sending state of DTMF sending. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "CVtEngDtmfState.h" |
|
22 #include "VtEngPanic.h" |
|
23 #include <cvtlogger.h> |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CVtEngDtmfSending::NewL |
|
30 // |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CVtEngDtmfState* CVtEngDtmfSending::NewL( |
|
34 MVtEngDtmfHandler& aDtmfHandler, |
|
35 MVtH324ConfigCommand& aH324Config ) |
|
36 { |
|
37 CVtEngDtmfState* self = new ( ELeave ) |
|
38 CVtEngDtmfSending( aDtmfHandler, aH324Config ); |
|
39 return self; |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CVtEngDtmfSending::~CVtEngDtmfSending |
|
44 // |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 CVtEngDtmfSending::~CVtEngDtmfSending() |
|
48 { |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CVtEngDtmfSending::SendDtmfL |
|
53 // |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 void CVtEngDtmfSending::SendDtmfL( const TVtEngDtmfTone& aTone ) |
|
57 { |
|
58 __VTPRINTENTER( "DtmfStateSending.Send" ) |
|
59 CVtEngDtmfState& state = iDtmfHandler.ActivateState( |
|
60 MVtEngDtmfHandler::EVtDtmfStateBuffered ); |
|
61 // let buffered state handle this |
|
62 state.SendDtmfL( aTone ); |
|
63 __VTPRINTEXIT( "DtmfStateSending.Send" ) |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CVtEngDtmfSending::DtmfSendCompleteL |
|
68 // |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 void CVtEngDtmfSending::DtmfSendCompleteL( TInt aError ) |
|
72 { |
|
73 __VTPRINTENTER( "DtmfStateSending.SendComplete" ) |
|
74 CVtEngDtmfState::DtmfSendCompleteL( aError ); |
|
75 // sending complete, change state |
|
76 iDtmfHandler.ActivateState( MVtEngDtmfHandler::EVtDtmfStateIdle ); |
|
77 __VTPRINTEXIT( "DtmfStateSending.SendComplete" ) |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CVtEngDtmfSending::CVtEngDtmfSending |
|
82 // |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 CVtEngDtmfSending::CVtEngDtmfSending( |
|
86 MVtEngDtmfHandler& aDtmfHandler, |
|
87 MVtH324ConfigCommand& aH324Config ) |
|
88 : CVtEngDtmfState( aDtmfHandler, aH324Config ) |
|
89 { |
|
90 } |
|
91 |
|
92 // End of File |