phoneuis/easydialing/tsrc/edta/src/edta_document.cpp
branchRCL_3
changeset 3 8871b09be73b
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Easy dialing test application.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "edta_appui.h"
       
    20 #include "edta_document.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CEdtaDocument::NewL()
       
    26 // Two-phased constructor.
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CEdtaDocument* CEdtaDocument::NewL( CEikApplication& aApp )
       
    30     {
       
    31     CEdtaDocument* self = NewLC( aApp );
       
    32     CleanupStack::Pop( self );
       
    33     return self;
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CEdtaDocument::NewLC()
       
    38 // Two-phased constructor.
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CEdtaDocument* CEdtaDocument::NewLC( CEikApplication& aApp )
       
    42     {
       
    43     CEdtaDocument* self = new ( ELeave ) CEdtaDocument( aApp );
       
    44 
       
    45     CleanupStack::PushL( self );
       
    46     return self;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CEdtaDocument::CEdtaDocument()
       
    51 // C++ default constructor can NOT contain any code, that might leave.
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CEdtaDocument::CEdtaDocument( CEikApplication& aApp )
       
    55     : CAknDocument( aApp )
       
    56     {
       
    57     // No implementation required
       
    58     }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // CEdtaDocument::~CEdtaDocument()
       
    62 // Destructor.
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 CEdtaDocument::~CEdtaDocument()
       
    66     {
       
    67     // No implementation required
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // CEdtaDocument::CreateAppUiL()
       
    72 // Constructs CreateAppUi.
       
    73 // ---------------------------------------------------------------------------
       
    74 //
       
    75 CEikAppUi* CEdtaDocument::CreateAppUiL()
       
    76     {
       
    77     // Create the application user interface, and return a pointer to it.
       
    78     // The framework takes ownership of this object.
       
    79     return ( static_cast <CEikAppUi*> ( new ( ELeave ) CEdtaAppUi ) );
       
    80     }
       
    81 
       
    82 // End of File
       
    83