C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
fakeqtconfigarguments.h
Go to the documentation of this file.
1 #ifndef APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
2 #define APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
3 
4 #include "./argumentparser.h"
5 
6 namespace ApplicationUtilities {
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 ApplicationUtilities
47 
48 #ifndef QT_CONFIG_ARGUMENTS
49 #define QT_CONFIG_ARGUMENTS ApplicationUtilities::FakeQtConfigArguments
50 #endif
51 
52 #endif // APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
#define CPP_UTILITIES_EXPORT
Contains currently only ArgumentParser and related classes.
Argument & qtWidgetsGuiArg()
Returns the argument to show the Qt-widgets-based GUI.
The Argument class is a wrapper for command line argument information.
The FakeQtConfigArguments class provides arguments for the Qt GUI used when the application hasn't be...
Argument & qtQuickGuiArg()
Returns the argument to show the Qt-quick-based GUI.
bool isPresent() const
Returns an indication whether the argument could be detected when parsing.
bool areQtGuiArgsPresent() const
Returns whether at least one of the arguments is present.