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