C++ Utilities  4.6.1
Common C++ classes and routines used by my applications 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 {
10 public:
12 
13  Argument &qtWidgetsGuiArg();
14  Argument &qtQuickGuiArg();
15 
16  bool areQtGuiArgsPresent() const;
17 
18 private:
19  Argument m_qtWidgetsGuiArg;
20  Argument m_qtQuickGuiArg;
21 };
22 
27 {
28  return m_qtWidgetsGuiArg;
29 }
30 
35 {
36  return m_qtQuickGuiArg;
37 }
38 
43 {
44  return m_qtWidgetsGuiArg.isPresent() || m_qtQuickGuiArg.isPresent();
45 }
46 
47 } // namespace ApplicationUtilities
48 
49 #ifndef QT_CONFIG_ARGUMENTS
50 # define QT_CONFIG_ARGUMENTS ApplicationUtilities::FakeQtConfigArguments
51 #endif
52 
53 #endif // APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
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.
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.
bool areQtGuiArgsPresent() const
Returns whether at least one of the arguments is present.