qBittorrent
anonymous_namespace{cmdoptions.cpp} Namespace Reference

Classes

class  Option
 
class  BoolOption
 
struct  StringOption
 
class  IntOption
 
class  TriStateBoolOption
 

Functions

bool operator== (const QString &s, const BoolOption &o)
 
bool operator== (const QString &s, const StringOption &o)
 
bool operator== (const QString &s, const IntOption &o)
 
bool operator== (const QString &s, const TriStateBoolOption &o)
 

Variables

const int USAGE_INDENTATION = 4
 
const int USAGE_TEXT_COLUMN = 31
 
const int WRAP_AT_COLUMN = 80
 
constexpr const BoolOption SHOW_HELP_OPTION {"help", 'h'}
 
constexpr const BoolOption SHOW_VERSION_OPTION {"version", 'v'}
 
constexpr const BoolOption NO_SPLASH_OPTION {"no-splash"}
 
constexpr const IntOption WEBUI_PORT_OPTION {"webui-port"}
 
constexpr const StringOption PROFILE_OPTION {"profile"}
 
constexpr const StringOption CONFIGURATION_OPTION {"configuration"}
 
constexpr const BoolOption RELATIVE_FASTRESUME {"relative-fastresume"}
 
constexpr const StringOption SAVE_PATH_OPTION {"save-path"}
 
constexpr const TriStateBoolOption PAUSED_OPTION {"add-paused", true}
 
constexpr const BoolOption SKIP_HASH_CHECK_OPTION {"skip-hash-check"}
 
constexpr const StringOption CATEGORY_OPTION {"category"}
 
constexpr const BoolOption SEQUENTIAL_OPTION {"sequential"}
 
constexpr const BoolOption FIRST_AND_LAST_OPTION {"first-and-last"}
 
constexpr const TriStateBoolOption SKIP_DIALOG_OPTION {"skip-dialog", true}
 

Function Documentation

◆ operator==() [1/4]

bool anonymous_namespace{cmdoptions.cpp}::operator== ( const QString &  s,
const BoolOption o 
)

Definition at line 137 of file cmdoptions.cpp.

138  {
139  return o == s;
140  }

Referenced by nsel_DISABLE_MSVC_WARNINGS().

Here is the caller graph for this function:

◆ operator==() [2/4]

bool anonymous_namespace{cmdoptions.cpp}::operator== ( const QString &  s,
const IntOption o 
)

Definition at line 230 of file cmdoptions.cpp.

231  {
232  return o == s;
233  }

◆ operator==() [3/4]

bool anonymous_namespace{cmdoptions.cpp}::operator== ( const QString &  s,
const StringOption o 
)

Definition at line 184 of file cmdoptions.cpp.

185  {
186  return o == s;
187  }

◆ operator==() [4/4]

bool anonymous_namespace{cmdoptions.cpp}::operator== ( const QString &  s,
const TriStateBoolOption o 
)

Definition at line 314 of file cmdoptions.cpp.

315  {
316  return o == s;
317  }

Variable Documentation

◆ CATEGORY_OPTION

constexpr const StringOption anonymous_namespace{cmdoptions.cpp}::CATEGORY_OPTION {"category"}
constexpr

Definition at line 333 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ CONFIGURATION_OPTION

constexpr const StringOption anonymous_namespace{cmdoptions.cpp}::CONFIGURATION_OPTION {"configuration"}
constexpr

Definition at line 328 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ FIRST_AND_LAST_OPTION

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::FIRST_AND_LAST_OPTION {"first-and-last"}
constexpr

Definition at line 335 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ NO_SPLASH_OPTION

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::NO_SPLASH_OPTION {"no-splash"}
constexpr

Definition at line 324 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ PAUSED_OPTION

constexpr const TriStateBoolOption anonymous_namespace{cmdoptions.cpp}::PAUSED_OPTION {"add-paused", true}
constexpr

Definition at line 331 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ PROFILE_OPTION

constexpr const StringOption anonymous_namespace{cmdoptions.cpp}::PROFILE_OPTION {"profile"}
constexpr

Definition at line 327 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ RELATIVE_FASTRESUME

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::RELATIVE_FASTRESUME {"relative-fastresume"}
constexpr

Definition at line 329 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ SAVE_PATH_OPTION

constexpr const StringOption anonymous_namespace{cmdoptions.cpp}::SAVE_PATH_OPTION {"save-path"}
constexpr

Definition at line 330 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ SEQUENTIAL_OPTION

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::SEQUENTIAL_OPTION {"sequential"}
constexpr

Definition at line 334 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ SHOW_HELP_OPTION

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::SHOW_HELP_OPTION {"help", 'h'}
constexpr

Definition at line 319 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ SHOW_VERSION_OPTION

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::SHOW_VERSION_OPTION {"version", 'v'}
constexpr

Definition at line 320 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ SKIP_DIALOG_OPTION

constexpr const TriStateBoolOption anonymous_namespace{cmdoptions.cpp}::SKIP_DIALOG_OPTION {"skip-dialog", true}
constexpr

Definition at line 336 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ SKIP_HASH_CHECK_OPTION

constexpr const BoolOption anonymous_namespace{cmdoptions.cpp}::SKIP_HASH_CHECK_OPTION {"skip-hash-check"}
constexpr

Definition at line 332 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ USAGE_INDENTATION

const int anonymous_namespace{cmdoptions.cpp}::USAGE_INDENTATION = 4

◆ USAGE_TEXT_COLUMN

const int anonymous_namespace{cmdoptions.cpp}::USAGE_TEXT_COLUMN = 31

◆ WEBUI_PORT_OPTION

constexpr const IntOption anonymous_namespace{cmdoptions.cpp}::WEBUI_PORT_OPTION {"webui-port"}
constexpr

Definition at line 326 of file cmdoptions.cpp.

Referenced by makeUsage(), and parseCommandLine().

◆ WRAP_AT_COLUMN

const int anonymous_namespace{cmdoptions.cpp}::WRAP_AT_COLUMN = 80

Definition at line 56 of file cmdoptions.cpp.