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