C++ Utilities  5.0.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
fakeqtconfigarguments.h
Go to the documentation of this file.
1 #ifndef APPLICATION_UTILITIES_FAKEQTCONFIGARGUMENTS_H
2 #define APPLICATION_UTILITIES_FAKEQTCONFIGARGUMENTS_H
3 
4 #include "./argumentparser.h"
5 
6 namespace CppUtilities {
7 
9 public:
11 
12  Argument &qtWidgetsGuiArg();
13  Argument &qtQuickGuiArg();
14 
15  bool areQtGuiArgsPresent() const;
16 
17 private:
18  Argument m_qtWidgetsGuiArg;
19  Argument m_qtQuickGuiArg;
20 };
21 
26 {
27  return m_qtWidgetsGuiArg;
28 }
29 
34 {
35  return m_qtQuickGuiArg;
36 }
37 
42 {
43  return m_qtWidgetsGuiArg.isPresent() || m_qtQuickGuiArg.isPresent();
44 }
45 
46 } // namespace CppUtilities
47 
48 #ifndef QT_CONFIG_ARGUMENTS
49 #define QT_CONFIG_ARGUMENTS CppUtilities::FakeQtConfigArguments
50 #endif
51 
52 #endif // APPLICATION_UTILITIES_FAKEQTCONFIGARGUMENTS_H
CppUtilities::Argument
The Argument class is a wrapper for command line argument information.
Definition: argumentparser.h:262
CppUtilities::FakeQtConfigArguments::qtQuickGuiArg
Argument & qtQuickGuiArg()
Returns the argument to show the Qt-quick-based GUI.
Definition: fakeqtconfigarguments.h:33
CppUtilities::FakeQtConfigArguments::qtWidgetsGuiArg
Argument & qtWidgetsGuiArg()
Returns the argument to show the Qt-widgets-based GUI.
Definition: fakeqtconfigarguments.h:25
CppUtilities::FakeQtConfigArguments::areQtGuiArgsPresent
bool areQtGuiArgsPresent() const
Returns whether at least one of the arguments is present.
Definition: fakeqtconfigarguments.h:41
CppUtilities
Contains all utilities provides by the c++utilities library.
Definition: argumentparser.h:17
CppUtilities::Argument::isPresent
bool isPresent() const
Returns an indication whether the argument could be detected when parsing.
Definition: argumentparser.h:738
argumentparser.h
CppUtilities::FakeQtConfigArguments
The FakeQtConfigArguments class provides arguments for the Qt GUI used when the application hasn't be...
Definition: fakeqtconfigarguments.h:8
CPP_UTILITIES_EXPORT
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.