iaupdate/IAD/ui/inc/iaupdatemainview.h
changeset 33 8110bf1194d1
parent 29 26b6f0522fd8
child 42 d17dc5398051
equal deleted inserted replaced
29:26b6f0522fd8 33:8110bf1194d1
    26 #include "iaupdatefwnode.h"
    26 #include "iaupdatefwnode.h"
    27 #include "iaupdatebasenode.h"
    27 #include "iaupdatebasenode.h"
    28 
    28 
    29 
    29 
    30 class HbListWidget;
    30 class HbListWidget;
    31 //class HbListView;
    31 class IAUpdateEngine;
    32 
    32 
    33 
    33 
    34 class IAUpdateMainView : public HbView
    34 class IAUpdateMainView : public HbView
    35 {
    35 {
    36     Q_OBJECT 
    36     Q_OBJECT 
    37     
    37     
    38 public:
    38 public:
    39     IAUpdateMainView();
    39     IAUpdateMainView(IAUpdateEngine *engine);
    40     virtual ~IAUpdateMainView();
    40     virtual ~IAUpdateMainView();
    41         
    41         
    42     void refresh( const RPointerArray<MIAUpdateNode>& nodes,
    42     void refresh(const RPointerArray<MIAUpdateNode> &nodes,
    43                       const RPointerArray<MIAUpdateFwNode>& fwNodes,
    43                  const RPointerArray<MIAUpdateFwNode> &fwNodes,
    44                       int error );
    44                  int error);
    45 public slots:
    45 public slots:
    46     void handleStartUpdate();
    46     void handleStartUpdate();
    47  
    47  
    48     void handleSettings();
    48     void handleSettings();
    49  
    49  
    51     
    51     
    52     void handleSelectionChanged(QItemSelection);
    52     void handleSelectionChanged(QItemSelection);
    53     
    53     
    54 private:
    54 private:
    55     
    55     
    56 
    56     void getSelectedNodes(RPointerArray<MIAUpdateAnyNode> &selectedNodes) const;
       
    57     void markListItem(bool mark, int index);
       
    58     bool getMandatoryNodes(RPointerArray<MIAUpdateAnyNode> &mandNodes) const;
       
    59     void showUpdateCannotOmitDialog() const; 
       
    60     bool showDependenciesFoundDialog(QString &text) const;
       
    61     void updateSelectionsToList();
    57     
    62     
    58 private:
    63 private:
    59     //HbListView *mListView;
    64     IAUpdateEngine *mEngine;
    60     HbListWidget *mListView;
    65     HbListWidget *mListView;
    61     RPointerArray<MIAUpdateAnyNode> mAllNodes;
    66     RPointerArray<MIAUpdateAnyNode> mAllNodes;
    62 
    67 
    63 };
    68 };
    64 
    69