htiui/HtiAdmin/inc/HtiAdminDocument.h
branchRCL_3
changeset 18 48060abbbeaf
parent 17 d40e813b23c0
child 19 b3cee849fa46
equal deleted inserted replaced
17:d40e813b23c0 18:48060abbbeaf
     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:  Document class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __HTIADMIN_DOCUMENT_H__
       
    20 #define __HTIADMIN_DOCUMENT_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <AknDoc.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CHtiAdminAppUi;
       
    27 class CEikApplication;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31   An instance of class CHtiAdminDocument is the Document part of the AVKON
       
    32   application framework for the HtiAdmin example application
       
    33   */
       
    34 class CHtiAdminDocument : public CAknDocument
       
    35     {
       
    36 public:
       
    37 
       
    38 /**
       
    39     Construct a CHtiAdminDocument for the AVKON application aApp
       
    40   using two phase construction, and return a pointer to the created object
       
    41 
       
    42   @param aApp application creating this document
       
    43   @return a pointer to the created instance of CHtiAdminDocument
       
    44   */
       
    45     static CHtiAdminDocument* NewL(CEikApplication& aApp);
       
    46 
       
    47 /**
       
    48     Construct a CHtiAdminDocument for the AVKON application aApp
       
    49   using two phase construction, and return a pointer to the created object
       
    50   @param aApp application creating this document
       
    51 
       
    52   @return a pointer to the created instance of CHtiAdminDocument
       
    53   */
       
    54     static CHtiAdminDocument* NewLC(CEikApplication& aApp);
       
    55 
       
    56 /**
       
    57 Destroy the object and release all memory objects
       
    58   */
       
    59     ~CHtiAdminDocument();
       
    60 
       
    61 public: // from CAknDocument
       
    62 /**
       
    63     Create a CHtiAdminAppUi 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 private:
       
    69 
       
    70 /**
       
    71     Perform the second phase construction of a CHtiAdminDocument object
       
    72   */
       
    73     void ConstructL();
       
    74 
       
    75 /**
       
    76     Perform the first phase of two phase construction
       
    77   @param aApp application creating this document
       
    78   */
       
    79     CHtiAdminDocument(CEikApplication& aApp);
       
    80 
       
    81     };
       
    82 
       
    83 
       
    84 #endif // __HTIADMIN_DOCUMENT_H__
       
    85 
       
    86 
       
    87 // End of File