iaupdate/IAD/ui/inc/iaupdatemainwindow.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2009-2010 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:   This file contains the header file of the IAUpdateMainWindow
       
    15 *                class 
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef IAUPDATEMAINWINDOW_H_
       
    20 #define IAUPDATEMAINWINDOW_H_
       
    21 
       
    22 #include <QObject>
       
    23 #include <hbmainwindow.h>
       
    24 
       
    25 // Forward declarations
       
    26 class IAUpdateMainView;
       
    27 class HbDocumentLoader;
       
    28 class MIAUpdateNode;
       
    29 class MIAUpdateFwNode;
       
    30 class IAUpdateEngine;  
       
    31 class CIAUpdateSettingDialog;
       
    32 
       
    33 class IAUpdateMainWindow : public HbMainWindow
       
    34 {
       
    35     Q_OBJECT
       
    36     
       
    37 public:
       
    38     IAUpdateMainWindow(IAUpdateEngine *engine);
       
    39     virtual ~IAUpdateMainWindow();
       
    40     
       
    41     IAUpdateMainView*  GetMainView();
       
    42     CIAUpdateSettingDialog* GetSettingView();
       
    43 
       
    44 public slots:
       
    45     void toMainView();
       
    46     void refreshMainView(const RPointerArray<MIAUpdateNode>& nodes,
       
    47                          const RPointerArray<MIAUpdateFwNode>& fwNodes,
       
    48                          int error);
       
    49     void toSettingView();
       
    50 
       
    51 private:
       
    52     void addMainView(IAUpdateEngine *engine);
       
    53     void addSettingView();
       
    54     
       
    55 private:
       
    56     IAUpdateMainView *mMainView;
       
    57     CIAUpdateSettingDialog *mSettingView;
       
    58     
       
    59 };
       
    60 
       
    61 #endif /* IAUPDATEMAINWINDOW */