iaupdate/IAD/ui/inc/iaupdateapplication.h
branchRCL_3
changeset 25 7333d7932ef7
parent 0 ba25891c3a9e
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
     1 /*
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:   This file contains the header file of the CIAUpdateApplication
    14 * Description:   This file contains the header file of the IAUpdateApplication
    15 *                class 
    15 *                class 
    16 *
    16 *
    17 */
    17 */
    18 
    18 
       
    19 #ifndef IAUPDATEAPPLICATION_H_
       
    20 #define IAUPDATEAPPLICATION_H_
    19 
    21 
       
    22 #include <QSharedPointer>
       
    23 #include <hbapplication.h>
    20 
    24 
    21 #ifndef __IAUPDATE_APPLICATION_H__
    25 // forward declarations
    22 #define __IAUPDATE_APPLICATION_H__
    26 class IAUpdateEngine;
       
    27 class IAUpdateMainWindow;
    23 
    28 
    24 // INCLUDES
    29 class IAUpdateApplication : public HbApplication
    25 #include <aknapp.h>
    30     {
       
    31 public:
       
    32     IAUpdateApplication(int argc, char* argv[]);
       
    33     virtual ~IAUpdateApplication();
       
    34     
       
    35 private:
       
    36     IAUpdateEngine *mEngine;         // owned
       
    37     QSharedPointer<IAUpdateMainWindow> mMainWindow; // owned
       
    38     };
    26 
    39 
    27 #include "iaupdateuids.h"
    40 #endif /* IAUPDATEAPPLICATION_H_ */
    28 
       
    29 // CONSTANTS
       
    30 // UID for the application, this should correspond to the uid defined in the mmp file
       
    31 static const TUid KUidIAUpdateApp = { KIAUpdateUiUid };
       
    32 
       
    33 
       
    34 /**
       
    35 * CAppMngrApp application class.
       
    36 * Provides factory to create concrete document object and
       
    37 * application server object
       
    38 */
       
    39 class CIAUpdateApplication : public CAknApplication
       
    40     {
       
    41     
       
    42 private:  // from CAknApplication
       
    43 
       
    44     /**
       
    45     * Returns application's UID 
       
    46     * @return The UID value 
       
    47     */
       
    48     TUid AppDllUid() const;
       
    49 
       
    50     /**
       
    51     * From CApaApplication, creates CAppMngrDocument document object.
       
    52     * @return A pointer to the created document object.
       
    53     */
       
    54     CApaDocument* CreateDocumentL();
       
    55     
       
    56     /**
       
    57     * Creates application server.
       
    58     * @param aAppServer Instance of application server class
       
    59     */
       
    60     void NewAppServerL( CApaAppServer*& aAppServer );
       
    61     };
       
    62     
       
    63 
       
    64 #endif // __IAUPDATE_APPLICATION_H__
       
    65 
       
    66 // End of File