mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Follow project coding style. Issue #2192.
This commit is contained in:
parent
89db090cb9
commit
92757b9f22
File diff suppressed because it is too large
Load Diff
@ -43,19 +43,60 @@
|
|||||||
|
|
||||||
#include <libtorrent/version.hpp>
|
#include <libtorrent/version.hpp>
|
||||||
|
|
||||||
enum scheduler_days { EVERY_DAY, WEEK_DAYS, WEEK_ENDS, MON, TUE, WED, THU, FRI, SAT, SUN };
|
enum scheduler_days
|
||||||
enum maxRatioAction {PAUSE_ACTION, REMOVE_ACTION};
|
{
|
||||||
namespace Proxy {
|
EVERY_DAY,
|
||||||
enum ProxyType {HTTP=1, SOCKS5=2, HTTP_PW=3, SOCKS5_PW=4, SOCKS4=5};
|
WEEK_DAYS,
|
||||||
}
|
WEEK_ENDS,
|
||||||
namespace TrayIcon {
|
MON,
|
||||||
enum Style { NORMAL = 0, MONO_DARK, MONO_LIGHT };
|
TUE,
|
||||||
}
|
WED,
|
||||||
namespace DNS {
|
THU,
|
||||||
enum Service { DYNDNS, NOIP, NONE = -1 };
|
FRI,
|
||||||
|
SAT,
|
||||||
|
SUN
|
||||||
|
};
|
||||||
|
|
||||||
|
enum maxRatioAction
|
||||||
|
{
|
||||||
|
PAUSE_ACTION,
|
||||||
|
REMOVE_ACTION
|
||||||
|
};
|
||||||
|
|
||||||
|
namespace Proxy
|
||||||
|
{
|
||||||
|
enum ProxyType
|
||||||
|
{
|
||||||
|
HTTP = 1,
|
||||||
|
SOCKS5 = 2,
|
||||||
|
HTTP_PW = 3,
|
||||||
|
SOCKS5_PW = 4,
|
||||||
|
SOCKS4 = 5
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
class Preferences : public QObject {
|
namespace TrayIcon
|
||||||
|
{
|
||||||
|
enum Style
|
||||||
|
{
|
||||||
|
NORMAL = 0,
|
||||||
|
MONO_DARK,
|
||||||
|
MONO_LIGHT
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace DNS
|
||||||
|
{
|
||||||
|
enum Service
|
||||||
|
{
|
||||||
|
DYNDNS,
|
||||||
|
NOIP,
|
||||||
|
NONE = -1
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
class Preferences: public QObject
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_DISABLE_COPY(Preferences)
|
Q_DISABLE_COPY(Preferences)
|
||||||
|
|
||||||
@ -363,7 +404,7 @@ public:
|
|||||||
void addTorrentLabel(const QString& label);
|
void addTorrentLabel(const QString& label);
|
||||||
void removeTorrentLabel(const QString& label);
|
void removeTorrentLabel(const QString& label);
|
||||||
bool recursiveDownloadDisabled() const;
|
bool recursiveDownloadDisabled() const;
|
||||||
void disableRecursiveDownload(bool disable=true);
|
void disableRecursiveDownload(bool disable = true);
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
static QString getPythonPath();
|
static QString getPythonPath();
|
||||||
bool neverCheckFileAssoc() const;
|
bool neverCheckFileAssoc() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user