browser/ui/inc/Document.h
changeset 0 c316ab048e9d
equal deleted inserted replaced
-1:000000000000 0:c316ab048e9d
       
     1 /*
       
     2  * Name        : Document.h
       
     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 #ifndef __DOCUMENT_H__
       
    16 #define __DOCUMENT_H__
       
    17 
       
    18 #include <akndoc.h>
       
    19 
       
    20 class CAppUi;
       
    21 class CEikApplication;
       
    22 
       
    23 class CDocument : public CAknDocument
       
    24 {
       
    25 public:
       
    26     static CDocument* NewL(CEikApplication& aApp);
       
    27     static CDocument* NewLC(CEikApplication& aApp);
       
    28     virtual ~CDocument();
       
    29 
       
    30 public:
       
    31     /**
       
    32      * CreateAppUiL
       
    33      * From CEikDocument, CreateAppUiL.
       
    34      * Create a CcamAppUi object and return a pointer to it.
       
    35      * The object returned is owned by the Uikon framework.
       
    36      * @return Pointer to created instance of AppUi.
       
    37      */
       
    38     CEikAppUi* CreateAppUiL();
       
    39 
       
    40 private:
       
    41     void ConstructL();
       
    42     CDocument(CEikApplication& aApp);
       
    43 };
       
    44 
       
    45 #endif // __DOCUMENT_H__