From 3164337c3c85c925272b36f2fcfaeece23375643 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 4 Nov 2008 19:14:51 +0000 Subject: [PATCH] - Some more cleanup --- src/bittorrent.cpp | 4 ---- src/bittorrent.h | 16 ---------------- 2 files changed, 20 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 6af6b1df7..0f05fab3c 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -67,9 +67,6 @@ bittorrent::bittorrent() : timerScan(0), DHTEnabled(false), preAllocateAll(false timerAlerts = new QTimer(); connect(timerAlerts, SIGNAL(timeout()), this, SLOT(readAlerts())); timerAlerts->start(3000); - fastResumeSaver = new QTimer(); - connect(fastResumeSaver, SIGNAL(timeout()), this, SLOT(saveFastResumeAndRatioData())); - fastResumeSaver->start(60000); // To download from urls downloader = new downloadThread(this); connect(downloader, SIGNAL(downloadFinished(QString, QString)), this, SLOT(processDownloadedFile(QString, QString))); @@ -98,7 +95,6 @@ bittorrent::~bittorrent() { // Disable directory scanning disableDirectoryScanning(); // Delete our objects - delete fastResumeSaver; delete timerAlerts; if(BigRatioTimer) delete BigRatioTimer; diff --git a/src/bittorrent.h b/src/bittorrent.h index 66e15f0fa..41f62c5e1 100644 --- a/src/bittorrent.h +++ b/src/bittorrent.h @@ -22,10 +22,7 @@ #define __BITTORRENT_H__ #include -#include -#include #include -#include #include #include #include @@ -48,7 +45,6 @@ class bittorrent : public QObject { QString scan_dir; QPointer timerScan; QPointer timerAlerts; - QPointer fastResumeSaver; QPointer BigRatioTimer; bool DHTEnabled; QPointer downloader; @@ -174,8 +170,6 @@ class bittorrent : public QObject { void deleteBigRatios(); signals: - //void invalidTorrent(QString path); - //void duplicateTorrent(QString path); void addedTorrent(QTorrentHandle& h); void deletedTorrent(QString hash); void pausedTorrent(QString hash); @@ -183,26 +177,16 @@ class bittorrent : public QObject { void finishedTorrent(QTorrentHandle& h); void fullDiskError(QTorrentHandle& h); void trackerError(QString hash, QString time, QString msg); - //void portListeningFailure(); void trackerAuthenticationRequired(QTorrentHandle& h); void scanDirFoundTorrents(const QStringList& pathList); void newDownloadedTorrent(QString path, QString url); - //void aboutToDownloadFromUrl(QString url); void updateFileSize(QString hash); - //void peerBlocked(QString); void downloadFromUrlFailure(QString url, QString reason); - //void fastResumeDataRejected(QString name); - //void urlSeedProblem(QString url, QString msg); void torrentFinishedChecking(QString hash); - //void torrent_ratio_deleted(QString fileName); - //void UPnPError(QString msg); - //void UPnPSuccess(QString msg); void updateFinishedTorrentNumber(); void updateUnfinishedTorrentNumber(); void forceUnfinishedListUpdate(); void forceFinishedListUpdate(); - /*void torrentSwitchedtoFinished(QString hash); - void torrentSwitchedtoUnfinished(QString hash);*/ }; #endif