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