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 
12 namespace governikus
13 {
14 
16 {
17  private:
18  QCommandLineParser mParser;
19  const QCommandLineOption mOptionKeepLog;
20  const QCommandLineOption mOptionNoLogFile;
21  const QCommandLineOption mOptionNoLogHandler;
22  const QCommandLineOption mOptionShowWindow;
23  const QCommandLineOption mOptionProxy;
24  const QCommandLineOption mOptionUi;
25  const QCommandLineOption mOptionPort;
26 
27  Q_DISABLE_COPY(CommandLineParser)
28 
29  void addOptions();
30  void parseUiPlugin();
31 
32  protected:
34  ~CommandLineParser() = default;
35 
36  public:
38 
39  void parse(QCoreApplication* pApp = QCoreApplication::instance());
40 
41 };
42 
43 } // namespace governikus
Definition: CommandLineParser.h:16
static CommandLineParser & getInstance()
void parse(QCoreApplication *pApp=QCoreApplication::instance())
Definition: CommandLineParser.cpp:62
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15