piprofilerui/ui/avkon/src/profiler_gui_document.cpp
branchRCL_3
changeset 12 aefcba28a3e0
equal deleted inserted replaced
11:454d022d514b 12:aefcba28a3e0
       
     1 /*
       
     2 * Copyright (c) 2009 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 // INCLUDE FILES
       
    21 #include "profiler_gui_document.h"
       
    22 #include "profiler_gui_appui.h"
       
    23 #include "profiler_gui_model.h"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // constructor
       
    28 CProfilerGuiDocument::CProfilerGuiDocument(CEikApplication& aApp)
       
    29 : CAknDocument(aApp)    
       
    30     {
       
    31     }
       
    32 
       
    33 // ----------------------------------------------------
       
    34 
       
    35 // destructor
       
    36 CProfilerGuiDocument::~CProfilerGuiDocument()
       
    37     {
       
    38     delete iModel;
       
    39     }
       
    40 
       
    41 // ----------------------------------------------------
       
    42 
       
    43 // EPOC default constructor can leave.
       
    44 void CProfilerGuiDocument::ConstructL()
       
    45     {
       
    46     iModel = CProfilerGuiModel::NewL();
       
    47     }
       
    48 
       
    49 // ----------------------------------------------------
       
    50 
       
    51 // Two-phased constructor.
       
    52 CProfilerGuiDocument* CProfilerGuiDocument::NewL(CEikApplication& aApp)
       
    53     {
       
    54     CProfilerGuiDocument* self = new(ELeave) CProfilerGuiDocument(aApp);
       
    55     CleanupStack::PushL(self);
       
    56     self->ConstructL();
       
    57     CleanupStack::Pop();
       
    58 
       
    59     return self;
       
    60     }
       
    61     
       
    62 // ----------------------------------------------------
       
    63 // CProfilerGuiDocument::CreateAppUiL()
       
    64 // constructs CProfilerGuiAppUi
       
    65 // ----------------------------------------------------
       
    66 //
       
    67 CEikAppUi* CProfilerGuiDocument::CreateAppUiL()
       
    68     {
       
    69     return new (ELeave) CProfilerGuiAppUi;
       
    70     }
       
    71 
       
    72 // End of File