mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
Revamp "Automated RSS downloader" dialog
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
|
||||
#include "addtorrentparams.h"
|
||||
|
||||
#include <tuple>
|
||||
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonValue>
|
||||
@@ -97,6 +99,24 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
bool BitTorrent::operator==(const AddTorrentParams &lhs, const AddTorrentParams &rhs)
|
||||
{
|
||||
return std::tie(lhs.name, lhs.category, lhs.tags,
|
||||
lhs.savePath, lhs.useDownloadPath, lhs.downloadPath,
|
||||
lhs.sequential, lhs.firstLastPiecePriority, lhs.addForced,
|
||||
lhs.addToQueueTop, lhs.addPaused, lhs.stopCondition,
|
||||
lhs.filePaths, lhs.filePriorities, lhs.skipChecking,
|
||||
lhs.contentLayout, lhs.useAutoTMM, lhs.uploadLimit,
|
||||
lhs.downloadLimit, lhs.seedingTimeLimit, lhs.ratioLimit)
|
||||
== std::tie(rhs.name, rhs.category, rhs.tags,
|
||||
rhs.savePath, rhs.useDownloadPath, rhs.downloadPath,
|
||||
rhs.sequential, rhs.firstLastPiecePriority, rhs.addForced,
|
||||
rhs.addToQueueTop, rhs.addPaused, rhs.stopCondition,
|
||||
rhs.filePaths, rhs.filePriorities, rhs.skipChecking,
|
||||
rhs.contentLayout, rhs.useAutoTMM, rhs.uploadLimit,
|
||||
rhs.downloadLimit, rhs.seedingTimeLimit, rhs.ratioLimit);
|
||||
}
|
||||
|
||||
BitTorrent::AddTorrentParams BitTorrent::parseAddTorrentParams(const QJsonObject &jsonObj)
|
||||
{
|
||||
AddTorrentParams params;
|
||||
|
||||
Reference in New Issue
Block a user