AusweisApp2
CommandLineParser.h
gehe zur Dokumentation dieser Datei
1/*
2 * \brief Provides and parses command line options.
3 *
4 * \copyright Copyright (c) 2014-2022 Governikus GmbH & Co. KG, Germany
5 */
6
7#pragma once
8
9#include <QCommandLineParser>
10#include <QCoreApplication>
11
12namespace governikus
13{
14
16{
17 Q_DISABLE_COPY(CommandLineParser)
18
19 private:
20 QCommandLineParser mParser;
21 const QCommandLineOption mOptionKeepLog;
22 const QCommandLineOption mOptionNoLogFile;
23 const QCommandLineOption mOptionNoLogHandler;
24 const QCommandLineOption mOptionShowWindow;
25 const QCommandLineOption mOptionProxy;
26 const QCommandLineOption mOptionUi;
27 const QCommandLineOption mOptionPort;
28 const QCommandLineOption mOptionAddresses;
29
30 void addOptions();
31 void parseUiPlugin();
32
33 protected:
35 ~CommandLineParser() = default;
36
37 public:
39
40 void parse(const QCoreApplication* pApp = QCoreApplication::instance());
41
42};
43
44} // namespace governikus
Definition: CommandLineParser.h:16
static CommandLineParser & getInstance()
void parse(const QCoreApplication *pApp=QCoreApplication::instance())
Definition: CommandLineParser.cpp:64
A simple template renderer.
Definition: ActivationContext.h:15