diff options
Diffstat (limited to 'src/command_line.h')
-rw-r--r-- | src/command_line.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/command_line.h b/src/command_line.h new file mode 100644 index 0000000..18d4b9f --- /dev/null +++ b/src/command_line.h @@ -0,0 +1,20 @@ +#pragma once + +#include <QCommandLineParser> +#include <QString> +#include <QApplication> + +enum CommandLineParseResult { + CommandLineOk, + CommandLineError, + CommandLineVersionRequested, + CommandLineHelpRequested +}; + +struct CommandLineParsedOptions { + CommandLineParseResult result; + QString error_message; + QString outbox_filename; +}; + +CommandLineParsedOptions parse_command_line(QCommandLineParser &parser, QApplication &app); |