X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=searchresultsdialog.h;h=1ae3d477cb092e28c19aa661f8706dca2c48ec2e;hb=4f302c4427507fec544f32b9003035e93f32b2e2;hp=96feecae18f8db139926cb01d724993262c00a5b;hpb=19cf9a449b50a2b52e552f5ba26974c06d1601ef;p=dorian diff --git a/searchresultsdialog.h b/searchresultsdialog.h index 96feeca..1ae3d47 100644 --- a/searchresultsdialog.h +++ b/searchresultsdialog.h @@ -7,18 +7,31 @@ #include "listwindow.h" #include "search.h" -class ListView; +class QModelIndex; +class ProgressDialog; +/** Search result list. */ class SearchResultsDialog: public ListWindow { + Q_OBJECT + public: - explicit SearchResultsDialog(const QList searchResults, + explicit SearchResultsDialog(QList searchResults, QWidget *parent = 0); +protected slots: + void onItemActivated(const QModelIndex &index); + void onBeginDownload(int size); + void onEndDownload(int status, const Search::Result &result, + const QString &fileName); + protected: - const QList results; - ListView *list; + QString downloadName() const; + +private: + QList results; QStringList data; + ProgressDialog *progress; }; #endif // SEARCHRESULTSDIALOG_H