summaryrefslogtreecommitdiffstats
path: root/async/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'async/src/debug.h')
-rw-r--r--async/src/debug.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/async/src/debug.h b/async/src/debug.h
index c453eb3..b2b2ff7 100644
--- a/async/src/debug.h
+++ b/async/src/debug.h
@@ -15,8 +15,10 @@
15 * along with this library. If not, see <http://www.gnu.org/licenses/>. 15 * along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18#ifndef ASYNC_DEBUG_H 18#ifndef KASYNC_DEBUG_H
19#define ASYNC_DEBUG_H 19#define KASYNC_DEBUG_H
20
21#include "kasync_export.h"
20 22
21#include <QLoggingCategory> 23#include <QLoggingCategory>
22#include <QStringBuilder> 24#include <QStringBuilder>
@@ -25,20 +27,20 @@
25#include <typeinfo> 27#include <typeinfo>
26#endif 28#endif
27 29
28namespace Async 30namespace KAsync
29{ 31{
30 32
31Q_DECLARE_LOGGING_CATEGORY(Debug) 33Q_DECLARE_LOGGING_CATEGORY(Debug)
32Q_DECLARE_LOGGING_CATEGORY(Trace) 34Q_DECLARE_LOGGING_CATEGORY(Trace)
33 35
34QString demangleName(const char *name); 36KASYNC_EXPORT QString demangleName(const char *name);
35 37
36namespace Private 38namespace Private
37{ 39{
38class Execution; 40class Execution;
39} 41}
40 42
41class Tracer 43class KASYNC_EXPORT Tracer
42{ 44{
43public: 45public:
44 Tracer(Private::Execution *execution); 46 Tracer(Private::Execution *execution);
@@ -62,7 +64,7 @@ private:
62#ifndef QT_NO_DEBUG 64#ifndef QT_NO_DEBUG
63 template<typename T> 65 template<typename T>
64 QString storeExecutorNameExpanded() { 66 QString storeExecutorNameExpanded() {
65 return Async::demangleName(typeid(T).name()); 67 return KAsync::demangleName(typeid(T).name());
66 } 68 }
67 69
68 template<typename T, typename ... Tail> 70 template<typename T, typename ... Tail>
@@ -77,4 +79,4 @@ private:
77 #define STORE_EXECUTOR_NAME(...) 79 #define STORE_EXECUTOR_NAME(...)
78#endif 80#endif
79 81
80#endif // ASYNC_DEBUG_H \ No newline at end of file 82#endif // KASYNC_DEBUG_H \ No newline at end of file