phoneapp/phoneui/inc/cphoneapplication.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Provide a basis for applications working 
       
    15                  within the framework provided by Avkon.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONEAPPLICATION_H
       
    21 #define CPHONEAPPLICATION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <eikenv.h>
       
    25 #include <eikapp.h>
       
    26 #include <eikappui.h>
       
    27 #include <aknapp.h>
       
    28 #include <eikdoc.h>
       
    29 
       
    30 #include "phoneconstants.h"
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 // CLASS DECLARATION
       
    35 class CPhoneLibraryContainer;
       
    36 
       
    37 /**
       
    38 *  Application class for the PhoneUI.
       
    39 *
       
    40 *  @since 4.0
       
    41 */
       
    42 class CPhoneApplication : public CAknApplication
       
    43     {
       
    44     public:
       
    45  
       
    46         /**
       
    47         * From CEikApplication, creates an instance of the document for 
       
    48         * application.
       
    49         *
       
    50         * @return Returns the created instance.
       
    51         */
       
    52         CApaDocument* CreateDocumentL();
       
    53 
       
    54         /**
       
    55         * From CEikApplication, returns the uid of the application.
       
    56         *
       
    57         * @return Returns the uid.
       
    58         */
       
    59         TUid AppDllUid() const;
       
    60 
       
    61         /**
       
    62         * destructor
       
    63         */
       
    64         ~CPhoneApplication();
       
    65 
       
    66     protected:
       
    67 
       
    68         /**
       
    69         * From CAknApplication, called before document construction.
       
    70         * Creates factories.
       
    71         */
       
    72         void PreDocConstructL();
       
    73 
       
    74     private:
       
    75         /**
       
    76         * From CAknApplication Returns the application resource file name.
       
    77         */
       
    78         TFileName ResourceFileName() const;
       
    79 
       
    80         // Library handle container
       
    81         CPhoneLibraryContainer*      iLibraryContainer;
       
    82     };
       
    83 
       
    84 #endif      // CPHONEAPPLICATION_H   
       
    85             
       
    86 // End of File