AusweisApp2
CommandLineParser.h
gehe zur Dokumentation dieser Datei
1 /*
2  * \brief Provides and parses command line options.
3  *
4  * \copyright Copyright (c) 2014-2020 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
CommandLineParser.h
PortFile.h
defineSingleton
defineSingleton(CommandLineParser) CommandLineParser
Definition: CommandLineParser.cpp:25
governikus::HttpServer::cPort
static quint16 cPort
Definition: HttpServer.h:32
DatagramHandlerImpl.h
LogHandler.h
UILoader.h
governikus::PortFile
Definition: PortFile.h:15
governikus::DatagramHandlerImpl::cPort
static quint16 cPort
Definition: DatagramHandlerImpl.h:41
NetworkManager.h
governikus::CommandLineParser::~CommandLineParser
~CommandLineParser()=default
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::CommandLineParser
Definition: CommandLineParser.h:16
AppController.h
governikus::CommandLineParser::parse
void parse(QCoreApplication *pApp=QCoreApplication::instance())
Definition: CommandLineParser.cpp:67
governikus::CommandLineParser::CommandLineParser
CommandLineParser()
HttpServer.h
governikus::CommandLineParser::getInstance
static CommandLineParser & getInstance()
Definition: CommandLineParser.cpp:42
SingletonHelper.h
governikus::NetworkManager::lockProxy
static void lockProxy(bool pLocked)
Definition: NetworkManager.h:65