mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +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>
|
||||
|
||||
enum scheduler_days { EVERY_DAY, WEEK_DAYS, WEEK_ENDS, MON, TUE, WED, THU, 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};
|
||||
}
|
||||
namespace TrayIcon {
|
||||
enum Style { NORMAL = 0, MONO_DARK, MONO_LIGHT };
|
||||
}
|
||||
namespace DNS {
|
||||
enum Service { DYNDNS, NOIP, NONE = -1 };
|
||||
enum scheduler_days
|
||||
{
|
||||
EVERY_DAY,
|
||||
WEEK_DAYS,
|
||||
WEEK_ENDS,
|
||||
MON,
|
||||
TUE,
|
||||
WED,
|
||||
THU,
|
||||
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_DISABLE_COPY(Preferences)
|
||||
|
||||
@ -363,7 +404,7 @@ public:
|
||||
void addTorrentLabel(const QString& label);
|
||||
void removeTorrentLabel(const QString& label);
|
||||
bool recursiveDownloadDisabled() const;
|
||||
void disableRecursiveDownload(bool disable=true);
|
||||
void disableRecursiveDownload(bool disable = true);
|
||||
#ifdef Q_OS_WIN
|
||||
static QString getPythonPath();
|
||||
bool neverCheckFileAssoc() const;
|
||||
|
Loading…
Reference in New Issue
Block a user