voiceui/voiceuivoicerecognition/src/vuicexitstate.cpp
changeset 0 bf1d17376201
equal deleted inserted replaced
-1:000000000000 0:bf1d17376201
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "vuicstate.h"
       
    22 #include "vuicexitstate.h"
       
    23 
       
    24 #include "vuicdatastorage.h"
       
    25 
       
    26 #include "vuicvoicerecogdialogimpl.h"
       
    27 
       
    28 #include "rubydebug.h"
       
    29     
       
    30 // -----------------------------------------------------------------------------
       
    31 // CExitState::NewL
       
    32 // Two-phased constructor.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CExitState* CExitState::NewL( CDataStorage& aDataStorage, CUiModel& aUiModel )
       
    36     {
       
    37     CExitState* self = new (ELeave) CExitState( aDataStorage, aUiModel );
       
    38     CleanupStack::PushL( self );
       
    39     self->ConstructL();
       
    40     CleanupStack::Pop( self );
       
    41     return self;
       
    42     }       
       
    43     
       
    44 // Destructor       
       
    45 CExitState::~CExitState()
       
    46     {
       
    47     RUBY_DEBUG0( "CExitState::~CExitState START" );
       
    48         
       
    49     RUBY_DEBUG0( "CExitState::~CExitState EXIT" );
       
    50     }
       
    51     
       
    52 // ---------------------------------------------------------
       
    53 // CExitState::HandleEventL
       
    54 // ---------------------------------------------------------
       
    55 //       
       
    56 void CExitState::HandleEventL( TInt /*aEvent*/ )
       
    57     {
       
    58     RUBY_DEBUG_BLOCK( "CExitState::HandleEventL" );
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // CExitState::ExecuteL
       
    63 // ---------------------------------------------------------
       
    64 //       
       
    65 void CExitState::ExecuteL()
       
    66     {
       
    67     RUBY_DEBUG_BLOCK( "CExitState::ExecuteL" );
       
    68 
       
    69     DataStorage().VoiceRecognitionImpl()->Exit();
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------
       
    73 // CExitState::CExitState
       
    74 // ---------------------------------------------------------
       
    75 //              
       
    76 CExitState::CExitState( CDataStorage& aDataStorage, CUiModel& aUiModel )
       
    77  : CState( aDataStorage, aUiModel )
       
    78     {
       
    79     }
       
    80     
       
    81 // End of File
       
    82