X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=searchresultsdialog.h;h=1ae3d477cb092e28c19aa661f8706dca2c48ec2e;hb=44ff5ab2f9734db75a458c76f281b7ddc6ac8f24;hp=b16183645e948921e2dd2e750755fc0a03c69a33;hpb=8eea7446dbcf2df23b7633db28d6e8e78bb856f3;p=dorian diff --git a/searchresultsdialog.h b/searchresultsdialog.h index b161836..1ae3d47 100644 --- a/searchresultsdialog.h +++ b/searchresultsdialog.h @@ -7,30 +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 onDownload(); void onItemActivated(const QModelIndex &index); void onBeginDownload(int size); - void onEndDownload(); + void onEndDownload(int status, const Search::Result &result, + const QString &fileName); protected: QString downloadName() const; private: - const QList results; - ListView *list; + QList results; QStringList data; + ProgressDialog *progress; }; #endif // SEARCHRESULTSDIALOG_H