multimediacommsengine/tsrc/MCETestUI/src/createSendDTMFSequenceDialog.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    21 // INCLUDES
       
    22 #include "createSendDTMFSequenceDialog.h"
       
    23 #include "CMCETestUIEngineAudioStream.h"
       
    24 #include "CMCETestUIEngineSink.h"
       
    25 #include <MCEAudioStream.h>
       
    26 #include <MCERtpSink.h>
       
    27 #include <MCEMediaSink.h>
       
    28 #include <MCESpeakerSink.h>
       
    29 // CONSTANTS
       
    30 
       
    31 const TInt KBufLength = 100;
       
    32 
       
    33 // ============================ MEMBER FUNCTIONS ==============================
       
    34 
       
    35 // ----------------------------------------------------------------------------
       
    36 // CStartDTMFDialog::CCreateRtpSinkDialog( )
       
    37 // .
       
    38 // ----------------------------------------------------------------------------
       
    39 //
       
    40 CSendDTMFSequenceDialog::CSendDTMFSequenceDialog( TDes& aSequence ) :
       
    41     iSequence( aSequence )
       
    42     {
       
    43     
       
    44     // No implementation required
       
    45     }
       
    46 
       
    47 // ----------------------------------------------------------------------------
       
    48 // CStartDTMFDialog::PreLayoutDynInitL()
       
    49 // .
       
    50 // ----------------------------------------------------------------------------
       
    51 //
       
    52 void CSendDTMFSequenceDialog::PreLayoutDynInitL()
       
    53     {
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // CStartDTMFDialog::OkToExitL( TInt )
       
    58 // .
       
    59 // ----------------------------------------------------------------------------
       
    60 //
       
    61 
       
    62 TBool CSendDTMFSequenceDialog::OkToExitL( TInt aKey )
       
    63     {
       
    64     if ( aKey == EEikCmdCanceled )
       
    65         {
       
    66         // Cancel pressed. Just exit.
       
    67         return ETrue;
       
    68         }
       
    69     CEikEdwin* sourceFile = static_cast<CEikEdwin*>(
       
    70                                  Control( ESendDtmfToneSequence ) );
       
    71     
       
    72     sourceFile->GetText( iSequence );
       
    73     return ETrue;
       
    74     }
       
    75 
       
    76 // ----------------------------------------------------------------------------
       
    77 // CStartDTMFDialog::~CStartDTMFDialog()
       
    78 // .
       
    79 // ----------------------------------------------------------------------------
       
    80 //
       
    81 CSendDTMFSequenceDialog::~CSendDTMFSequenceDialog()
       
    82     {
       
    83     return;
       
    84     } 
       
    85 
       
    86 // End of File