mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00:00
- still optimizing includes
This commit is contained in:
parent
0db60065c0
commit
93938d8597
@ -29,6 +29,7 @@
|
|||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
|
#include <QHeaderView>
|
||||||
|
|
||||||
FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession){
|
FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession){
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
@ -28,9 +28,7 @@
|
|||||||
#include <QTcpSocket>
|
#include <QTcpSocket>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QShortcut>
|
#include <QShortcut>
|
||||||
|
#include <QStandardItemModel>
|
||||||
#include <libtorrent/extensions/metadata_transfer.hpp>
|
|
||||||
#include <libtorrent/extensions/ut_pex.hpp>
|
|
||||||
|
|
||||||
#include "GUI.h"
|
#include "GUI.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
@ -45,6 +43,10 @@
|
|||||||
#include "FinishedTorrents.h"
|
#include "FinishedTorrents.h"
|
||||||
#include "allocationDlg.h"
|
#include "allocationDlg.h"
|
||||||
#include "bittorrent.h"
|
#include "bittorrent.h"
|
||||||
|
#include "about_imp.h"
|
||||||
|
#include "trackerLogin.h"
|
||||||
|
#include "previewSelect.h"
|
||||||
|
#include "options_imp.h"
|
||||||
|
|
||||||
/*****************************************************
|
/*****************************************************
|
||||||
* *
|
* *
|
||||||
|
10
src/GUI.h
10
src/GUI.h
@ -22,15 +22,11 @@
|
|||||||
#ifndef GUI_H
|
#ifndef GUI_H
|
||||||
#define GUI_H
|
#define GUI_H
|
||||||
|
|
||||||
#include <QMainWindow>
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QSystemTrayIcon>
|
#include <QSystemTrayIcon>
|
||||||
|
#include <libtorrent/torrent_handle.hpp>
|
||||||
|
|
||||||
#include "ui_MainWindow.h"
|
#include "ui_MainWindow.h"
|
||||||
#include "options_imp.h"
|
|
||||||
#include "about_imp.h"
|
|
||||||
#include "previewSelect.h"
|
|
||||||
#include "trackerLogin.h"
|
|
||||||
|
|
||||||
class bittorrent;
|
class bittorrent;
|
||||||
class createtorrent;
|
class createtorrent;
|
||||||
@ -45,6 +41,10 @@ class QTcpSocket;
|
|||||||
class QCloseEvent;
|
class QCloseEvent;
|
||||||
class RSSImp;
|
class RSSImp;
|
||||||
class QShortcut;
|
class QShortcut;
|
||||||
|
class about;
|
||||||
|
class previewSelect;
|
||||||
|
class options_imp;
|
||||||
|
class QStandardItemModel;
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
namespace fs = boost::filesystem;
|
namespace fs = boost::filesystem;
|
||||||
|
@ -23,9 +23,19 @@
|
|||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
#include <libtorrent/extensions/metadata_transfer.hpp>
|
||||||
|
#include <libtorrent/extensions/ut_pex.hpp>
|
||||||
|
|
||||||
|
#include <libtorrent/entry.hpp>
|
||||||
|
#include <libtorrent/bencode.hpp>
|
||||||
|
#include <libtorrent/identify_client.hpp>
|
||||||
|
#include <libtorrent/alert_types.hpp>
|
||||||
|
#include <libtorrent/ip_filter.hpp>
|
||||||
|
|
||||||
#include "bittorrent.h"
|
#include "bittorrent.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "downloadThread.h"
|
#include "downloadThread.h"
|
||||||
|
#include "deleteThread.h"
|
||||||
|
|
||||||
#define ETAS_MAX_VALUES 8
|
#define ETAS_MAX_VALUES 8
|
||||||
|
|
||||||
|
@ -23,27 +23,15 @@
|
|||||||
|
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
#include <libtorrent/entry.hpp>
|
#include <libtorrent/torrent_handle.hpp>
|
||||||
#include <libtorrent/bencode.hpp>
|
|
||||||
#include <libtorrent/session.hpp>
|
#include <libtorrent/session.hpp>
|
||||||
#include <libtorrent/fingerprint.hpp>
|
|
||||||
#include <libtorrent/session_settings.hpp>
|
|
||||||
#include <libtorrent/identify_client.hpp>
|
|
||||||
#include <libtorrent/alert_types.hpp>
|
|
||||||
#include <libtorrent/extensions/metadata_transfer.hpp>
|
|
||||||
#include <libtorrent/extensions/ut_pex.hpp>
|
|
||||||
#include <libtorrent/ip_filter.hpp>
|
|
||||||
|
|
||||||
#include <boost/format.hpp>
|
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
|
||||||
#include <boost/filesystem/exception.hpp>
|
|
||||||
|
|
||||||
#include "deleteThread.h"
|
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
class downloadThread;
|
class downloadThread;
|
||||||
|
class deleteThread;
|
||||||
|
|
||||||
class bittorrent : public QObject{
|
class bittorrent : public QObject{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -22,9 +22,13 @@
|
|||||||
#include "properties_imp.h"
|
#include "properties_imp.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "PropListDelegate.h"
|
#include "PropListDelegate.h"
|
||||||
|
#include "bittorrent.h"
|
||||||
|
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
#include <QTimer>
|
||||||
|
#include <QStandardItemModel>
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
properties::properties(QWidget *parent, bittorrent *BTSession, torrent_handle &h, QStringList trackerErrors): QDialog(parent), h(h){
|
properties::properties(QWidget *parent, bittorrent *BTSession, torrent_handle &h, QStringList trackerErrors): QDialog(parent), h(h){
|
||||||
|
@ -23,12 +23,12 @@
|
|||||||
#define PROPERTIES_H
|
#define PROPERTIES_H
|
||||||
|
|
||||||
#include "ui_properties.h"
|
#include "ui_properties.h"
|
||||||
#include "bittorrent.h"
|
#include <libtorrent/torrent_handle.hpp>
|
||||||
#include <libtorrent/session.hpp>
|
|
||||||
#include <QStandardItemModel>
|
|
||||||
#include <QTimer>
|
|
||||||
|
|
||||||
class PropListDelegate;
|
class PropListDelegate;
|
||||||
|
class QTimer;
|
||||||
|
class bittorrent;
|
||||||
|
class QStandardItemModel;
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include "misc.h"
|
#include <QTimer>
|
||||||
|
|
||||||
// display a right-click menu
|
// display a right-click menu
|
||||||
void RSSImp::displayRSSListMenu(const QPoint& pos){
|
void RSSImp::displayRSSListMenu(const QPoint& pos){
|
||||||
@ -292,9 +292,10 @@
|
|||||||
connect(actionRefresh, SIGNAL(triggered()), this, SLOT(refreshStream()));
|
connect(actionRefresh, SIGNAL(triggered()), this, SLOT(refreshStream()));
|
||||||
connect(actionCreate, SIGNAL(triggered()), this, SLOT(createStream()));
|
connect(actionCreate, SIGNAL(triggered()), this, SLOT(createStream()));
|
||||||
connect(actionRefreshAll, SIGNAL(triggered()), this, SLOT(refreshAllStreams()));
|
connect(actionRefreshAll, SIGNAL(triggered()), this, SLOT(refreshAllStreams()));
|
||||||
connect(&refreshTimeTimer, SIGNAL(timeout()), this, SLOT(updateLastRefreshedTimeForStreams()));
|
|
||||||
connect(&rssmanager, SIGNAL(streamNeedRefresh(const unsigned short&, const unsigned short&)), this, SLOT(updateStreamName(const unsigned short&, const unsigned short&)));
|
connect(&rssmanager, SIGNAL(streamNeedRefresh(const unsigned short&, const unsigned short&)), this, SLOT(updateStreamName(const unsigned short&, const unsigned short&)));
|
||||||
refreshTimeTimer.start(60000); // 1min
|
refreshTimeTimer = new QTimer(this);
|
||||||
|
connect(refreshTimeTimer, SIGNAL(timeout()), this, SLOT(updateLastRefreshedTimeForStreams()));
|
||||||
|
refreshTimeTimer->start(60000); // 1min
|
||||||
refreshStreamList();
|
refreshStreamList();
|
||||||
refreshTextBrowser();
|
refreshTextBrowser();
|
||||||
qDebug("RSSImp constructed");
|
qDebug("RSSImp constructed");
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
#define REFRESH_MAX_LATENCY 600000
|
#define REFRESH_MAX_LATENCY 600000
|
||||||
|
|
||||||
#include <QTimer>
|
|
||||||
#include "ui_rss.h"
|
#include "ui_rss.h"
|
||||||
#include "rss.h"
|
#include "rss.h"
|
||||||
|
|
||||||
@ -31,12 +30,14 @@
|
|||||||
#define URL_CHILD 1
|
#define URL_CHILD 1
|
||||||
#define TIME_CHILD 2
|
#define TIME_CHILD 2
|
||||||
|
|
||||||
|
class QTimer;
|
||||||
|
|
||||||
class RSSImp : public QWidget, public Ui::RSS{
|
class RSSImp : public QWidget, public Ui::RSS{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RssManager rssmanager;
|
RssManager rssmanager;
|
||||||
QTimer refreshTimeTimer;
|
QTimer *refreshTimeTimer;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void on_addStream_button_clicked();
|
void on_addStream_button_clicked();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user