Follow project coding style. Issue #2192.

This commit is contained in:
sledgehammer999 2015-02-23 19:44:29 +02:00
parent 89db090cb9
commit 92757b9f22
2 changed files with 1893 additions and 1484 deletions

File diff suppressed because it is too large Load diff

View file

@ -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;