Get rid of unused Options menu items on Symbian.
[dorian] / searchresultsdialog.h
1 #ifndef SEARCHRESULTSDIALOG_H
2 #define SEARCHRESULTSDIALOG_H
3
4 #include <QList>
5 #include <QStringList>
6
7 #include "listwindow.h"
8 #include "search.h"
9
10 class ListView;
11 class QModelIndex;
12 class ProgressDialog;
13
14 /** Search result list. */
15 class SearchResultsDialog: public ListWindow
16 {
17     Q_OBJECT
18
19 public:
20     explicit SearchResultsDialog(const QList<Search::Result> searchResults,
21                                  QWidget *parent = 0);
22
23 protected slots:
24     void onDownload();
25     void onItemActivated(const QModelIndex &index);
26     void onBeginDownload(int size);
27     void onEndDownload(int status, const Search::Result &result,
28                        const QString &fileName);
29
30 protected:
31     QString downloadName() const;
32
33 private:
34     const QList<Search::Result> results;
35     ListView *list;
36     QStringList data;
37     ProgressDialog *progress;
38 };
39
40 #endif // SEARCHRESULTSDIALOG_H