AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
CommandLineParser.h
gehe zur Dokumentation dieser Datei
1 /*
2  * \brief Provides and parses command line options.
3  *
4  * \copyright Copyright (c) 2014-2018 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 mOptionShowWindow;
21  const QCommandLineOption mOptionProxy;
22  const QCommandLineOption mOptionUi;
23  const QCommandLineOption mOptionPort;
24 #ifndef QT_NO_DEBUG
25  const QCommandLineOption mOptionPortWebSocket;
26 #endif
27 
28  Q_DISABLE_COPY(CommandLineParser)
29 
30  void addOptions();
31  void parseUiPlugin();
32 
33  protected:
36 
37  public:
39 
40  void parse(QCoreApplication* pApp = QCoreApplication::instance());
41 
42 };
43 
44 } /* namespace governikus */
static CommandLineParser & getInstance()
Definition: CommandLineParser.cpp:76
Definition: CommandLineParser.h:15
void parse(QCoreApplication *pApp=QCoreApplication::instance())
Definition: CommandLineParser.cpp:103
~CommandLineParser()
Definition: CommandLineParser.cpp:71
CommandLineParser()
Definition: CommandLineParser.cpp:56