Allow single app instance per configuration

This commit is contained in:
Vladimir Golovnev (Glassez)
2020-02-27 08:42:47 +03:00
parent 73ee901c45
commit 38e54206d5
4 changed files with 24 additions and 14 deletions

View File

@@ -42,7 +42,11 @@ class QProcessEnvironment;
struct QBtCommandLineParameters
{
bool showHelp, relativeFastresumePaths, skipChecking, sequential, firstLastPiecePriority;
bool showHelp;
bool relativeFastresumePaths;
bool skipChecking;
bool sequential;
bool firstLastPiecePriority;
#if !defined(Q_OS_WIN) || defined(DISABLE_GUI)
bool showVersion;
#endif
@@ -52,11 +56,16 @@ struct QBtCommandLineParameters
bool shouldDaemonize;
#endif
int webUiPort;
TriStateBool addPaused, skipDialog;
TriStateBool addPaused;
TriStateBool skipDialog;
QStringList torrents;
QString profileDir, configurationName, savePath, category, unknownParameter;
QString profileDir;
QString configurationName;
QString savePath;
QString category;
QString unknownParameter;
explicit QBtCommandLineParameters(const QProcessEnvironment&);
explicit QBtCommandLineParameters(const QProcessEnvironment &);
QStringList paramList() const;
};