browser/ui/src/Document.cpp
changeset 0 c316ab048e9d
equal deleted inserted replaced
-1:000000000000 0:c316ab048e9d
       
     1 /*
       
     2  * Name        : Document.cpp
       
     3  * Description : 
       
     4  * Project     : This file is part of OpenMAR, an Open Mobile Augmented Reality browser
       
     5  * Website     : http://OpenMAR.org
       
     6  *
       
     7  * Copyright (c) 2010 David Caabeiro
       
     8  *
       
     9  * All rights reserved. This program and the accompanying materials are made available 
       
    10  * under the terms of the Eclipse Public License v1.0 which accompanies this 
       
    11  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
       
    12  *
       
    13  */
       
    14 
       
    15 #include "Document.h"
       
    16 
       
    17 #include "AppUi.h"
       
    18 
       
    19 #include "Logger.h"
       
    20 
       
    21 CDocument* CDocument::NewL(CEikApplication& aApp)
       
    22 {
       
    23     CDocument* self = NewLC(aApp);
       
    24     CleanupStack::Pop(self);
       
    25     return self;
       
    26 }
       
    27 
       
    28 CDocument* CDocument::NewLC(CEikApplication& aApp)
       
    29 {
       
    30     CDocument* self = new(ELeave) CDocument(aApp);
       
    31     CleanupStack::PushL(self);
       
    32     self->ConstructL();
       
    33     return self;
       
    34 }
       
    35 
       
    36 void CDocument::ConstructL()
       
    37 {
       
    38 }
       
    39 
       
    40 CDocument::CDocument(CEikApplication& aApp)
       
    41     : CAknDocument(aApp)
       
    42 {
       
    43 }
       
    44 
       
    45 CDocument::~CDocument()
       
    46 {
       
    47     LOGCLOSE
       
    48 }
       
    49 
       
    50 CEikAppUi* CDocument::CreateAppUiL()
       
    51 {
       
    52     return new(ELeave) CAppUi;
       
    53 }