creator/src/creator_document.cpp
branchRCL_3
changeset 19 b3cee849fa46
parent 18 48060abbbeaf
child 20 fad26422216a
equal deleted inserted replaced
18:48060abbbeaf 19:b3cee849fa46
     1 /*
       
     2 * Copyright (c) 2008 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 "creator_appui.h"
       
    21 #include "creator_document.h"
       
    22 
       
    23 
       
    24 // Standard Symbian OS construction sequence
       
    25 CCreatorDocument* CCreatorDocument::NewL(CEikApplication& aApp)
       
    26     {
       
    27     CCreatorDocument* self = NewLC(aApp);
       
    28     CleanupStack::Pop(self);
       
    29     return self;
       
    30     }
       
    31 
       
    32 CCreatorDocument* CCreatorDocument::NewLC(CEikApplication& aApp)
       
    33     {
       
    34     CCreatorDocument* self = new (ELeave) CCreatorDocument(aApp);
       
    35     CleanupStack::PushL(self);
       
    36     self->ConstructL();
       
    37     return self;
       
    38     }
       
    39 
       
    40 void CCreatorDocument::ConstructL()
       
    41     {
       
    42     // Add any construction that can leave here
       
    43     }    
       
    44 
       
    45 CCreatorDocument::CCreatorDocument(CEikApplication& aApp) : CAknDocument(aApp) 
       
    46     {
       
    47     // Add any construction that can not leave here
       
    48     }   
       
    49 
       
    50 CCreatorDocument::~CCreatorDocument()
       
    51     {
       
    52     // Any destruction code here
       
    53     }
       
    54 
       
    55 CEikAppUi* CCreatorDocument::CreateAppUiL()
       
    56     {
       
    57     // Create the application user interface, and return a pointer to it
       
    58     CEikAppUi* appUi = new (ELeave) CCreatorAppUi;
       
    59     return appUi;
       
    60     }
       
    61