- Torrent downloading is now handled by search engine plugins to allow for more flexibility

This commit is contained in:
Christophe Dumez
2009-03-27 22:11:41 +00:00
parent 8214d87ce5
commit c2244f746e
17 changed files with 182 additions and 25 deletions

View File

@@ -26,6 +26,7 @@
#include <QProcess>
#include <QList>
#include <QPair>
#include "ui_search.h"
#include "engineSelectDlg.h"
#include "SearchTab.h"
@@ -42,6 +43,7 @@ class SearchEngine : public QWidget, public Ui::search_engine{
private:
// Search related
QProcess *searchProcess;
QList<QProcess*> downloaders;
bool search_stopped;
bool no_search_results;
QByteArray search_result_line_truncated;
@@ -81,6 +83,8 @@ class SearchEngine : public QWidget, public Ui::search_engine{
void on_clearPatternButton_clicked();
void propagateSectionResized(int index, int oldsize , int newsize);
void saveResultsColumnsWidth();
void downloadFinished(int exitcode, QProcess::ExitStatus);
void downloadTorrent(QString engine_url, QString torrent_url);
};
#endif