inc/NPRApplication.h
changeset 0 0049171ecffb
equal deleted inserted replaced
-1:000000000000 0:0049171ecffb
       
     1 /*
       
     2  ============================================================================
       
     3  Name	: NPRApplication.h
       
     4  Author	: John Kern
       
     5  
       
     6  Copyright (c) 2009 Symbian Foundation Ltd
       
     7  This component and the accompanying materials are made available
       
     8  under the terms of the License "Eclipse Public License v1.0"
       
     9  which accompanies this distribution, and is available
       
    10  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 
       
    12  Initial Contributors:
       
    13  - Symbian Foundation Ltd - initial contribution.
       
    14  
       
    15  Contributors:
       
    16  - John Kern
       
    17  
       
    18  Description : Declares main application class.
       
    19  ============================================================================
       
    20  */
       
    21 
       
    22 
       
    23 #ifndef __NPR_APPLICATION_H__
       
    24 #define __NPR_APPLICATION_H__
       
    25 
       
    26 // INCLUDES
       
    27 #include <aknapp.h>
       
    28 #include "NPR.hrh"
       
    29 
       
    30 // UID for the application;
       
    31 // this should correspond to the uid defined in the mmp file
       
    32 const TUid KUidNPRApp =
       
    33 	{
       
    34 	_UID3
       
    35 	};
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40  * CNPRApplication application class.
       
    41  * Provides factory to create concrete document object.
       
    42  * An instance of CNPRApplication is the application part of the
       
    43  * AVKON application framework for the NPR example application.
       
    44  */
       
    45 class CNPRApplication : public CAknApplication
       
    46 	{
       
    47 public:
       
    48 	// Functions from base classes
       
    49 
       
    50 	/**
       
    51 	 * From CApaApplication, AppDllUid.
       
    52 	 * @return Application's UID (KUidNPRApp).
       
    53 	 */
       
    54 	TUid AppDllUid() const;
       
    55 
       
    56 protected:
       
    57 	// Functions from base classes
       
    58 
       
    59 	/**
       
    60 	 * From CApaApplication, CreateDocumentL.
       
    61 	 * Creates CNPRDocument document object. The returned
       
    62 	 * pointer in not owned by the CNPRApplication object.
       
    63 	 * @return A pointer to the created document object.
       
    64 	 */
       
    65 	CApaDocument* CreateDocumentL();
       
    66 	};
       
    67 
       
    68 #endif // __NPR_APPLICATION_H__
       
    69 // End of File