Forward declare as much as possible

This commit is contained in:
Chocobo1
2019-05-16 13:41:29 +08:00
parent 401bdbf3d9
commit e288de7ec1
33 changed files with 71 additions and 58 deletions

View File

@@ -34,6 +34,7 @@
#include <libtorrent/sha1_hash.hpp>
#include <QRegularExpression>
#include <QUrl>
#include "infohash.h"

View File

@@ -29,15 +29,16 @@
#ifndef BITTORRENT_MAGNETURI_H
#define BITTORRENT_MAGNETURI_H
#include <libtorrent/add_torrent_params.hpp>
#include <QList>
#include <QString>
#include <QUrl>
#include <libtorrent/add_torrent_params.hpp>
#include "infohash.h"
#include "trackerentry.h"
class QUrl;
namespace BitTorrent
{
class MagnetUri

View File

@@ -29,12 +29,12 @@
#ifndef BITTORRENT_PEERINFO_H
#define BITTORRENT_PEERINFO_H
#include <libtorrent/peer_info.hpp>
#include <QBitArray>
#include <QCoreApplication>
#include <QHostAddress>
#include <libtorrent/peer_info.hpp>
namespace BitTorrent
{
class TorrentHandle;

View File

@@ -33,6 +33,7 @@
#include <QDate>
#include <QTime>
#include <QTimer>
#include "base/preferences.h"

View File

@@ -29,10 +29,10 @@
#ifndef FILTERPARSERTHREAD_H
#define FILTERPARSERTHREAD_H
#include <QThread>
#include <libtorrent/ip_filter.hpp>
#include <QThread>
class QDataStream;
class FilterParserThread : public QThread

View File

@@ -28,10 +28,10 @@
#include "portforwarderimpl.h"
#include <QDebug>
#include <libtorrent/session.hpp>
#include <QDebug>
#include "base/logger.h"
#include "base/settingsstorage.h"

View File

@@ -28,6 +28,7 @@
#include "resumedatasavingmanager.h"
#include <QByteArray>
#include <QDebug>
#include <QSaveFile>

View File

@@ -28,10 +28,11 @@
#pragma once
#include <QByteArray>
#include <QDir>
#include <QObject>
class QByteArray;
class ResumeDataSavingManager : public QObject
{
Q_OBJECT

View File

@@ -43,7 +43,6 @@
#include <QSet>
#include "base/settingvalue.h"
#include "base/tristatebool.h"
#include "base/types.h"
#include "addtorrentparams.h"
#include "cachestatus.h"

View File

@@ -29,7 +29,6 @@
#ifndef BITTORRENT_TORRENTINFO_H
#define BITTORRENT_TORRENTINFO_H
#include <libtorrent/fwd.hpp>
#include <libtorrent/torrent_info.hpp>
#include <libtorrent/version.hpp>