smartinstaller/bootstrap/inc/bootstrapdocument.h
branchADM
changeset 14 343c622c9f65
equal deleted inserted replaced
13:8ed1157e9487 14:343c622c9f65
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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: 
       
    15 *     Declaration of CBootstrapDocument class.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __BOOTSTRAPDOCUMENT_H__
       
    22 #define __BOOTSTRAPDOCUMENT_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <akndoc.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CBootstrapAppUi;
       
    29 class CEikApplication;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 * CBootstrapDocument application class.
       
    36 * An instance of class CBootstrapDocument is the Document part of the
       
    37 * AVKON application framework for the Bootstrap application.
       
    38 */
       
    39 class CBootstrapDocument : public CAknDocument
       
    40 	{
       
    41 	public: // Constructors and destructor
       
    42 
       
    43 		/**
       
    44 		* NewL.
       
    45 		* Two-phased constructor.
       
    46 		* Construct a CBootstrapDocument for the AVKON application aApp
       
    47 		* using two phase construction, and return a pointer
       
    48 		* to the created object.
       
    49 		* @param aApp Application creating this document.
       
    50 		* @return A pointer to the created instance of CBootstrapDocument.
       
    51 		*/
       
    52 		static CBootstrapDocument* NewL( CEikApplication& aApp );
       
    53 
       
    54 		/**
       
    55 		* NewLC.
       
    56 		* Two-phased constructor.
       
    57 		* Construct a CBootstrapDocument for the AVKON application aApp
       
    58 		* using two phase construction, and return a pointer
       
    59 		* to the created object.
       
    60 		* @param aApp Application creating this document.
       
    61 		* @return A pointer to the created instance of CBootstrapDocument.
       
    62 		*/
       
    63 		static CBootstrapDocument* NewLC( CEikApplication& aApp );
       
    64 
       
    65 		/**
       
    66 		* ~CBootstrapDocument
       
    67 		* Virtual Destructor.
       
    68 		*/
       
    69 		virtual ~CBootstrapDocument();
       
    70 
       
    71 	public: // Functions from base classes
       
    72 
       
    73 		/**
       
    74 		* CreateAppUiL
       
    75 		* From CEikDocument, CreateAppUiL.
       
    76 		* Create a CBootstrapAppUi object and return a pointer to it.
       
    77 		* The object returned is owned by the Uikon framework.
       
    78 		* @return Pointer to created instance of AppUi.
       
    79 		*/
       
    80 		CEikAppUi* CreateAppUiL();
       
    81 
       
    82 	private: // Constructors
       
    83 
       
    84 		/**
       
    85 		* ConstructL
       
    86 		* 2nd phase constructor.
       
    87 		*/
       
    88 		void ConstructL();
       
    89 
       
    90 		/**
       
    91 		* CBootstrapDocument.
       
    92 		* C++ default constructor.
       
    93 		* @param aApp Application creating this document.
       
    94 		*/
       
    95 		CBootstrapDocument( CEikApplication& aApp );
       
    96 
       
    97 	};
       
    98 
       
    99 #endif // __BOOTSTRAPDOCUMENT_H__
       
   100 
       
   101 // End of File
       
   102