Marble

MarbleDebug.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2009 Patrick Spendrin <[email protected]>
4 //
5 
6 #ifndef MARBLE_MARBLEDEBUG_H
7 #define MARBLE_MARBLEDEBUG_H
8 
9 #include <QDebug>
10 
11 #include "marble_export.h"
12 
13 namespace Marble
14 {
15 
16 /**
17  * a class which takes all the settings and exposes them
18  */
19 class MARBLE_EXPORT MarbleDebug
20 {
21 public:
22  /**
23  * @brief isEnabled returns whether debug information output is generated
24  */
25  static bool isEnabled();
26 
27  /**
28  * @brief setEnabled Toggle debug information output generation
29  * @param enabled Set to true to enable debug output, false to disable
30  */
31  static void setEnabled(bool enabled);
32 
33 private:
34  static bool m_enabled;
35 
36 };
37 
38 /**
39  * a function to replace qDebug() in Marble library code
40  */
41 MARBLE_EXPORT QDebug mDebug();
42 
43 } // namespace Marble
44 
45 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
a class which takes all the settings and exposes them
Definition: MarbleDebug.h:19
QDebug mDebug()
a function to replace qDebug() in Marble library code
Definition: MarbleDebug.cpp:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.