Option to disable connections not supported by proxies. Closes #1894.

This commit is contained in:
sledgehammer999
2014-08-26 00:32:10 +03:00
parent cd99f0ea43
commit 0b8fad69fa
6 changed files with 55 additions and 1 deletions

View File

@@ -42,6 +42,8 @@
#include <QNetworkCookie>
#include <QVariant>
#include <libtorrent/version.hpp>
#define QBT_REALM "Web UI Access"
enum scheduler_days { EVERY_DAY, WEEK_DAYS, WEEK_ENDS, MON, TUE, WED, THU, FRI, SAT, SUN };
enum maxRatioAction {PAUSE_ACTION, REMOVE_ACTION};
@@ -203,6 +205,10 @@ public:
void setProxyType(int type);
bool proxyPeerConnections() const;
void setProxyPeerConnections(bool enabled);
#if LIBTORRENT_VERSION_NUM >= 10000
bool getForceProxy() const;
void setForceProxy(bool enabled);
#endif
// Bittorrent options
int getMaxConnecs() const;