vtengines/videoteleng/Src/State/CVtEngDtmfIdle.cpp
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  Idle state of DTMF sending.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    "CVtEngDtmfState.h"
       
    22 #include    "VtEngPanic.h"
       
    23 #include    "MVtEngDtmfHandler.h"
       
    24 #include    <cvtlogger.h>
       
    25 #include    <mvtprotocolhandler.h>
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CVtEngDtmfIdle::NewL
       
    32 // 
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CVtEngDtmfState* CVtEngDtmfIdle::NewL( 
       
    36     MVtEngDtmfHandler& aDtmfHandler,
       
    37     MVtH324ConfigCommand& aH324Config )
       
    38     {
       
    39     CVtEngDtmfIdle* self = new ( ELeave ) 
       
    40         CVtEngDtmfIdle( aDtmfHandler, aH324Config );
       
    41     return self;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CVtEngDtmfIdle::~CVtEngDtmfIdle
       
    46 // 
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 CVtEngDtmfIdle::~CVtEngDtmfIdle()
       
    50     {
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CVtEngDtmfIdle::SendDtmfL
       
    55 // 
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void CVtEngDtmfIdle::SendDtmfL( const TVtEngDtmfTone& aTone )
       
    59     {
       
    60     __VTPRINTENTER( "DtmfStateIdle.Send" )
       
    61     DoSendAndActivateStateL( aTone, MVtEngDtmfHandler::EVtDtmfStateSending );    
       
    62     __VTPRINTEXIT( "DtmfStateIdle.Send" )
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CVtEngDtmfIdle::DtmfSendCompleteL
       
    67 // 
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 void CVtEngDtmfIdle::DtmfSendCompleteL( TInt /*aError*/ )
       
    71     {
       
    72     __VTPRINT( DEBUG_MEDIA , "DtmfStateIdle.SendComplete" )
       
    73     // Do nothing (should be never called since state is always
       
    74     // "sending" or "buffered" when sending is completed).
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CVtEngDtmfIdle::CVtEngDtmfIdle
       
    79 // 
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 CVtEngDtmfIdle::CVtEngDtmfIdle( 
       
    83     MVtEngDtmfHandler& aDtmfHandler,
       
    84     MVtH324ConfigCommand& aH324Config ) 
       
    85     : CVtEngDtmfState( aDtmfHandler, aH324Config )
       
    86     {
       
    87     }
       
    88 
       
    89 //  End of File