Debian Codegraph @

application/fakeqtconfigarguments.h

raw symbols SCIP
1 #ifndef APPLICATION_UTILITIES_FAKEQTCONFIGARGUMENTS_H
2 #define APPLICATION_UTILITIES_FAKEQTCONFIGARGUMENTS_H
3
4 #include "./argumentparser.h"
5
6 namespace CppUtilities {
7
8 class CPP_UTILITIES_EXPORT FakeQtConfigArguments {
9 public:
10 FakeQtConfigArguments();
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
22 /*!
23 * \brief Returns the argument to show the Qt-widgets-based GUI.
24 */
25 inline Argument &FakeQtConfigArguments::qtWidgetsGuiArg()
26 {
27 return m_qtWidgetsGuiArg;
28 }
29
30 /*!
31 * \brief Returns the argument to show the Qt-quick-based GUI.
32 */
33 inline Argument &FakeQtConfigArguments::qtQuickGuiArg()
34 {
35 return m_qtQuickGuiArg;
36 }
37
38 /*!
39 * \brief Returns whether at least one of the arguments is present.
40 */
41 inline bool FakeQtConfigArguments::areQtGuiArgsPresent() const
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