voiceui/voiceuivoicerecognition/src/vuicuimodel.cpp
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     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 "vuicuimodel.h"
       
    22 #include "vuicglobalnote.h"
       
    23 
       
    24 #include "rubydebug.h"
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CUiModel::NewL
       
    28 // Two-phased constructor.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CUiModel* CUiModel::NewL()
       
    32     {
       
    33     RUBY_DEBUG_BLOCK( "CUiModel::NewL" );
       
    34     
       
    35     CUiModel* self = new (ELeave) CUiModel();
       
    36     CleanupStack::PushL( self );
       
    37     self->ConstructL();
       
    38     CleanupStack::Pop( self );
       
    39     return self;
       
    40     } 
       
    41 
       
    42 // Destructor       
       
    43 CUiModel::~CUiModel()
       
    44     {
       
    45     RUBY_DEBUG0( "CUiModel::~CUiModel START" );
       
    46     
       
    47     delete iNote;   
       
    48     
       
    49     RUBY_DEBUG0( "CUiModel::~CUiModel EXIT" );
       
    50     }
       
    51 
       
    52 // ---------------------------------------------------------
       
    53 // CUiModel::Note
       
    54 // ---------------------------------------------------------
       
    55 //  
       
    56 CGlobalNote& CUiModel::Note() const
       
    57     {
       
    58     RUBY_DEBUG0( "CUiModel::Note" );
       
    59     
       
    60     return *iNote;
       
    61     }
       
    62 
       
    63 // ---------------------------------------------------------
       
    64 // CUiModel::CUiModel
       
    65 // ---------------------------------------------------------
       
    66 //              
       
    67 CUiModel::CUiModel()
       
    68     {
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------
       
    72 // CUiModel::ConstructL
       
    73 // ---------------------------------------------------------
       
    74 //           
       
    75 void CUiModel::ConstructL()
       
    76     {
       
    77     RUBY_DEBUG_BLOCK( "CUiModel::ConstructL" );
       
    78 
       
    79     iNote = CGlobalNote::NewL();
       
    80     }
       
    81 
       
    82     
       
    83 // End of File
       
    84