Allow single app instance per configuration

This commit is contained in:
Vladimir Golovnev (Glassez) 2020-02-27 08:42:47 +03:00
commit 38e54206d5
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
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;
};