C++ Utilities 5.24.8
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Loading...
Searching...
No Matches
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
6namespace CppUtilities {
7
9public:
11
12 Argument &qtWidgetsGuiArg();
13 Argument &qtQuickGuiArg();
14
15 bool areQtGuiArgsPresent() const;
16
17private:
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
The Argument class is a wrapper for command line argument information.
bool isPresent() const
Returns an indication whether the argument could be detected when parsing.
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 areQtGuiArgsPresent() const
Returns whether at least one of the arguments is present.
Argument & qtWidgetsGuiArg()
Returns the argument to show the Qt-widgets-based GUI.
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.
Definition global.h:14
Contains all utilities provides by the c++utilities library.