idlehomescreen/xmluicontroller/inc/application.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2005-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 "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:  Application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_APPLICATION_H
       
    20 #define C_APPLICATION_H
       
    21 
       
    22 #include <aisystemuids.hrh>
       
    23 #include "xnapplication.h"
       
    24 #include "ai3.hrh"
       
    25 
       
    26 #ifdef FF_HOMESCREEN_COMMON_IDLEFW
       
    27 const TUid KUidXmlUiApp = { AI_UID3_AIFW_EXE };
       
    28 #else
       
    29 const TUid KUidXmlUiApp = { AI3_UID_EXE_TEST_APPLICATION };
       
    30 #endif // FF_HOMESCREEN_COMMON_IDLEFW
       
    31 
       
    32 
       
    33 namespace AiXmlUiController
       
    34 {
       
    35     
       
    36 class CXmlUiController;
       
    37 
       
    38 
       
    39 /**
       
    40  *  @ingroup group_xmluicontroller
       
    41  * 
       
    42  * Application class of XML UI Controller application 
       
    43  *
       
    44  *  @lib AiXmlUiMain
       
    45  */
       
    46 class CApplication : public CXnApplication
       
    47     {
       
    48     
       
    49 public:   // Constructors and destructor
       
    50 
       
    51     static CApplication* New(CXmlUiController& aUiCtl);
       
    52 
       
    53     virtual ~CApplication();
       
    54     
       
    55 public:  // Functions from base classes
       
    56 
       
    57     CApaDocument* CreateDocumentL();
       
    58 
       
    59     virtual TUid AppDllUid() const;
       
    60 
       
    61     virtual TFileName ResourceFileName() const;
       
    62 
       
    63 private:
       
    64 
       
    65     CApplication(TUid aAppUid, CXmlUiController& aUiCtl);
       
    66 
       
    67 private:     // Data
       
    68 
       
    69     /**
       
    70      * UI Controller. Not own
       
    71      */
       
    72     CXmlUiController&   iUiCtl;
       
    73 
       
    74     };
       
    75 
       
    76 } // namespace AiXmlUiController
       
    77 
       
    78 #endif  // C_APPLICATION_H
       
    79 
       
    80 // End of File.