equal
deleted
inserted
replaced
26 #include <hbpopup.h> |
26 #include <hbpopup.h> |
27 #include <hbdocumentloader.h> |
27 #include <hbdocumentloader.h> |
28 #include <qstandarditemmodel.h> |
28 #include <qstandarditemmodel.h> |
29 #include <hbradiobuttonlist.h> |
29 #include <hbradiobuttonlist.h> |
30 #include <hblistwidget.h> |
30 #include <hblistwidget.h> |
31 |
31 #include <hbpushbutton.h> |
|
32 #include <hblabel.h> |
32 |
33 |
33 struct device |
34 struct device |
34 { |
35 { |
35 QString mDeviceName; |
36 QString mDeviceName; |
36 QString mDeviceType; |
37 QString mDeviceType; |
51 int deviceDialogError() const; |
52 int deviceDialogError() const; |
52 void closeDeviceDialog(bool byClient); |
53 void closeDeviceDialog(bool byClient); |
53 HbPopup *deviceDialogWidget() const; |
54 HbPopup *deviceDialogWidget() const; |
54 |
55 |
55 public slots: |
56 public slots: |
56 void stopClicked(); |
57 void stopRetryClicked(); |
57 void retryClicked(); |
58 void retryClicked(); |
58 // void viewByClicked(); |
59 void viewByClicked(); |
59 void deviceSelected(const QModelIndex& modelIndex); |
60 void deviceSelected(const QModelIndex& modelIndex); |
60 // void viewByItemSelected(int index); |
61 // void viewByItemSelected(int index); |
|
62 void selectionDialogClosed(HbAction*); |
61 |
63 |
62 private: |
64 private: |
63 bool constructDialog(const QVariantMap ¶meters); |
65 bool constructDialog(const QVariantMap ¶meters); |
64 void hideEvent(QHideEvent *event); |
66 void hideEvent(QHideEvent *event); |
65 void showEvent(QShowEvent *event); |
67 void showEvent(QShowEvent *event); |
83 HbDialog* mViewByDialog; |
85 HbDialog* mViewByDialog; |
84 HbRadioButtonList* mRbl; |
86 HbRadioButtonList* mRbl; |
85 QList<QString> mDeviceTypeList; |
87 QList<QString> mDeviceTypeList; |
86 QList<device> mDeviceList; |
88 QList<device> mDeviceList; |
87 HbListView* mListView; |
89 HbListView* mListView; |
|
90 HbPushButton* mStopRetryBtn; |
|
91 HbPushButton* mViewByBtn; |
|
92 HbLabel* mSearchLabel; |
|
93 HbLabel* mSearchIconLabel; |
|
94 HbLabel* mSearchDoneLabel; |
88 bool mViewByChosen; |
95 bool mViewByChosen; |
89 QList<device> mDeviceLstOfType; |
96 QList<device> mDeviceLstOfType; |
90 int mDeviceLstIdx; |
97 int mDeviceLstIdx; |
91 int mSelectedType; |
98 int mSelectedType; |
92 int mDeviceDialogData; |
99 int mDeviceDialogData; |