iaupdate/IAD/ui/inc/iaupdateapplication.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
     1 /*
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007-2008 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 IAUpdateApplication
    14 * Description:   This file contains the header file of the CIAUpdateApplication
    15 *                class 
    15 *                class 
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 #ifndef IAUPDATEAPPLICATION_H_
       
    20 #define IAUPDATEAPPLICATION_H_
       
    21 
    19 
    22 #include <QSharedPointer>
       
    23 #include <hbapplication.h>
       
    24 
    20 
    25 // forward declarations
    21 #ifndef __IAUPDATE_APPLICATION_H__
    26 class IAUpdateEngine;
    22 #define __IAUPDATE_APPLICATION_H__
    27 class IAUpdateMainWindow;
       
    28 
    23 
    29 class IAUpdateApplication : public HbApplication
    24 // INCLUDES
       
    25 #include <aknapp.h>
       
    26 
       
    27 #include "iaupdateuids.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
    30     {
    40     {
    31 public:
       
    32     IAUpdateApplication(int argc, char* argv[]);
       
    33     virtual ~IAUpdateApplication();
       
    34     
    41     
    35 private:
    42 private:  // from CAknApplication
    36     IAUpdateEngine *mEngine;         // owned
    43 
    37     QSharedPointer<IAUpdateMainWindow> mMainWindow; // owned
    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 );
    38     };
    61     };
       
    62     
    39 
    63 
    40 #endif /* IAUPDATEAPPLICATION_H_ */
    64 #endif // __IAUPDATE_APPLICATION_H__
       
    65 
       
    66 // End of File