devicediagnostics/devdiagapp/inc/devdiagappdocument.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Document of the application.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DEVDIAGAPP_DOCUMENT_H
       
    19 #define DEVDIAGAPP_DOCUMENT_H
       
    20 
       
    21 
       
    22 #include <AknDoc.h>
       
    23 
       
    24 // Forward references
       
    25 class CDevDiagAppAppUi;
       
    26 class CEikApplication;
       
    27 class CDevDiagEngine;
       
    28 
       
    29 /**
       
    30 * An instance of class CDevDiagAppDocument is the Document part of the AVKON
       
    31 * application framework for the DevDiagApp.
       
    32 */
       
    33 class CDevDiagAppDocument : public CAknDocument
       
    34     {
       
    35 public:
       
    36 
       
    37     /**
       
    38     * Construct a CDevDiagAppDocument for the AVKON application aApp 
       
    39     * using two phase construction, and return a pointer to the created object
       
    40     *
       
    41     * @param aApp application creating this document
       
    42     * @return a pointer to the created instance of CDevDiagAppDocument.
       
    43     **/
       
    44     static CDevDiagAppDocument* NewL(CEikApplication& aApp);
       
    45 
       
    46     /**
       
    47     * Construct a CDevDiagAppDocument for the AVKON application aApp 
       
    48     * using two phase construction, and return a pointer to the created object
       
    49     *
       
    50     * @param aApp application creating this document
       
    51     * @return a pointer to the created instance of CDevDiagAppDocument
       
    52     **/
       
    53     static CDevDiagAppDocument* NewLC(CEikApplication& aApp);
       
    54 
       
    55     /**
       
    56     * Destroy the object and release all memory objects
       
    57     **/
       
    58     ~CDevDiagAppDocument();
       
    59 
       
    60 public: // from CAknDocument
       
    61 
       
    62     /**
       
    63     * Create a CDevDiagAppAppUi object and return a pointer to it
       
    64     * @return a pointer to the created instance of the AppUi created
       
    65     **/
       
    66     CEikAppUi* CreateAppUiL();
       
    67 
       
    68 public:
       
    69     
       
    70     /**
       
    71     * Return the Engine.
       
    72     * @return DevDiagEngine.
       
    73     **/
       
    74     CDevDiagEngine& Engine();
       
    75 
       
    76 private:
       
    77 
       
    78     /**
       
    79     * Perform the second phase construction of a CDevDiagAppDocument object
       
    80     **/
       
    81     void ConstructL();
       
    82 
       
    83     /**
       
    84     * Perform the first phase of two phase construction 
       
    85     *
       
    86     * @param aApp application creating this document
       
    87     **/
       
    88     CDevDiagAppDocument(CEikApplication& aApp);
       
    89     
       
    90 private:
       
    91 
       
    92     // Owns.
       
    93     CDevDiagEngine* iEngine;    
       
    94 
       
    95     };
       
    96 
       
    97 
       
    98 #endif // DEVDIAGAPP_DOCUMENT_H