22 #include <hblistviewitem.h> |
22 #include <hblistviewitem.h> |
23 |
23 |
24 class HbLabel; |
24 class HbLabel; |
25 class HbCheckBox; |
25 class HbCheckBox; |
26 class HbLineEdit; |
26 class HbLineEdit; |
27 |
27 class QGraphicsLinearLayout; |
|
28 class HbWidget; |
|
29 class FmFileIconProvider; |
28 //FmRestoreViewItem |
30 //FmRestoreViewItem |
29 class FmRestoreViewItem : public HbListViewItem |
31 class FmRestoreViewItem : public HbListViewItem |
30 { |
32 { |
31 Q_OBJECT |
33 Q_OBJECT |
32 |
34 |
33 public: |
35 public: |
34 FmRestoreViewItem( QGraphicsItem *parent = 0 ); |
36 FmRestoreViewItem( QGraphicsItem *parent = 0 ); |
35 ~FmRestoreViewItem(); |
37 ~FmRestoreViewItem(); |
36 |
38 |
37 public: |
39 public: |
38 virtual HbAbstractViewItem *createItem(); |
40 virtual HbAbstractViewItem *createItem(); |
39 virtual void updateChildItems(); |
41 virtual void updateChildItems(); |
40 void setCheckBoxState(); |
42 void setCheckBoxState(); |
41 bool getCheckBoxState(); |
43 bool getCheckBoxState(); |
|
44 signals: |
|
45 void stateChanged(int); |
|
46 |
42 |
47 |
43 private: |
48 private: |
44 virtual void polish(HbStyleParameters& params); |
49 virtual void polish(HbStyleParameters& params); |
45 |
50 |
46 private: |
51 private: |
47 void init(); |
52 void init(); |
48 |
53 |
49 private: |
54 private: |
50 HbLabel *mRestoreContentLabel; |
55 HbLabel *mRestoreContentLabel; |
51 HbLabel *mDateTimeLabel; |
56 HbLabel *mDateTimeLabel; |
52 |
57 |
53 HbCheckBox *mCheckBox; |
58 HbCheckBox *mCheckBox; |
|
59 QGraphicsLinearLayout *hLayout; |
|
60 HbWidget *mParentWidget; |
|
61 HbLabel *mIconLabel; |
|
62 FmFileIconProvider *mIconProvider; |
54 }; |
63 }; |
55 |
64 |
56 #endif |
65 #endif |