|
|
@ -29,28 +29,31 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include "btjson.h" |
|
|
|
#include "btjson.h" |
|
|
|
#include "base/logger.h" |
|
|
|
|
|
|
|
#include "base/utils/misc.h" |
|
|
|
|
|
|
|
#include "base/utils/fs.h" |
|
|
|
|
|
|
|
#include "base/preferences.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/session.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/sessionstatus.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/torrenthandle.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/trackerentry.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/peerinfo.h" |
|
|
|
|
|
|
|
#include "base/torrentfilter.h" |
|
|
|
|
|
|
|
#include "base/net/geoipmanager.h" |
|
|
|
|
|
|
|
#include "jsonutils.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QDebug> |
|
|
|
#include <QDebug> |
|
|
|
#include <QVariant> |
|
|
|
#include <QVariant> |
|
|
|
|
|
|
|
|
|
|
|
#ifndef QBT_USES_QT5 |
|
|
|
#ifndef QBT_USES_QT5 |
|
|
|
#include <QMetaType> |
|
|
|
#include <QMetaType> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
#include <QElapsedTimer> |
|
|
|
#include <QElapsedTimer> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "base/bittorrent/session.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/sessionstatus.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/peerinfo.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/torrenthandle.h" |
|
|
|
|
|
|
|
#include "base/bittorrent/trackerentry.h" |
|
|
|
|
|
|
|
#include "base/logger.h" |
|
|
|
|
|
|
|
#include "base/net/geoipmanager.h" |
|
|
|
|
|
|
|
#include "base/preferences.h" |
|
|
|
|
|
|
|
#include "base/torrentfilter.h" |
|
|
|
|
|
|
|
#include "base/utils/fs.h" |
|
|
|
|
|
|
|
#include "base/utils/misc.h" |
|
|
|
|
|
|
|
#include "jsonutils.h" |
|
|
|
|
|
|
|
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
|
|
|
|
|
|
|
|
#define CACHED_VARIABLE(VARTYPE, VAR, DUR) \ |
|
|
|
#define CACHED_VARIABLE(VARTYPE, VAR, DUR) \ |
|
|
|