Code clean up

This commit is contained in:
Christophe Dumez
2011-01-24 18:11:25 +00:00
parent 35e36036be
commit 66ee39df9a
11 changed files with 28 additions and 33 deletions

View File

@@ -135,7 +135,7 @@ QBtSession::QBtSession()
connect(&resumeDataTimer, SIGNAL(timeout()), this, SLOT(saveTempFastResumeData()));
resumeDataTimer.start(180000); // 3min
// To download from urls
downloader = new downloadThread(this);
downloader = new DownloadThread(this);
connect(downloader, SIGNAL(downloadFinished(QString, QString)), this, SLOT(processDownloadedFile(QString, QString)));
connect(downloader, SIGNAL(downloadFailure(QString, QString)), this, SLOT(handleDownloadFailure(QString, QString)));
appendLabelToSavePath = pref.appendTorrentLabel();
@@ -2429,7 +2429,7 @@ void QBtSession::downloadUrlAndSkipDialog(QString url, QString save_path, QStrin
savepathLabel_fromurl[qurl] = qMakePair(save_path, label);
url_skippingDlg << qurl;
// Launch downloader thread
downloader->downloadUrl(url);
downloader->downloadTorrentUrl(url);
}
// Add to Bittorrent session the downloaded torrent file

View File

@@ -53,7 +53,7 @@
#define MAX_SAMPLES 20
class downloadThread;
class DownloadThread;
class QTimer;
class FilterParserThread;
class HttpServer;
@@ -224,7 +224,7 @@ private:
// Ratio
QPointer<QTimer> BigRatioTimer;
// HTTP
QPointer<downloadThread> downloader;
DownloadThread* downloader;
// File System
ScanFoldersModel *m_scanFolders;
// Console / Log