mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
Add support for creating v2 torrents
This commit is contained in:
@@ -30,15 +30,13 @@
|
||||
#ifndef TORRENTCREATORDIALOG_H
|
||||
#define TORRENTCREATORDIALOG_H
|
||||
|
||||
#include <libtorrent/version.hpp>
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "base/bittorrent/torrentcreatorthread.h"
|
||||
#include "base/settingvalue.h"
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
class TorrentCreatorThread;
|
||||
}
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class TorrentCreatorDialog;
|
||||
@@ -71,7 +69,11 @@ private:
|
||||
void setInteractionEnabled(bool enabled) const;
|
||||
|
||||
int getPieceSize() const;
|
||||
#if (LIBTORRENT_VERSION_NUM >= 20000)
|
||||
BitTorrent::TorrentFormat getTorrentFormat() const;
|
||||
#else
|
||||
int getPaddedFileSizeLimit() const;
|
||||
#endif
|
||||
|
||||
Ui::TorrentCreatorDialog *m_ui;
|
||||
BitTorrent::TorrentCreatorThread *m_creatorThread;
|
||||
@@ -82,8 +84,12 @@ private:
|
||||
CachedSettingValue<bool> m_storePrivateTorrent;
|
||||
CachedSettingValue<bool> m_storeStartSeeding;
|
||||
CachedSettingValue<bool> m_storeIgnoreRatio;
|
||||
#if (LIBTORRENT_VERSION_NUM >= 20000)
|
||||
CachedSettingValue<int> m_storeTorrentFormat;
|
||||
#else
|
||||
CachedSettingValue<bool> m_storeOptimizeAlignment;
|
||||
CachedSettingValue<int> m_paddedFileSizeLimit;
|
||||
#endif
|
||||
CachedSettingValue<QString> m_storeLastAddPath;
|
||||
CachedSettingValue<QString> m_storeTrackerList;
|
||||
CachedSettingValue<QString> m_storeWebSeedList;
|
||||
|
||||
Reference in New Issue
Block a user