summaryrefslogtreecommitdiff
path: root/kdecore/io/kdebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/io/kdebug.cpp')
-rw-r--r--kdecore/io/kdebug.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/kdecore/io/kdebug.cpp b/kdecore/io/kdebug.cpp
index 7526904..da2ce2a 100644
--- a/kdecore/io/kdebug.cpp
+++ b/kdecore/io/kdebug.cpp
@@ -100,8 +100,10 @@
#include <cxxabi.h>
#endif
#endif
-
+#define KDE_NO_DBUS
+#ifndef KDE_NO_DBUS
#include "kdebugdbusiface_p.h"
+#endif
#include <QMutex>
@@ -217,7 +219,11 @@ struct KDebugPrivate
typedef QHash<unsigned int, Area> Cache;
KDebugPrivate()
- : config(0), kDebugDBusIface(0), m_disableAll(false), m_seenMainComponent(false)
+ : config(0),
+#ifndef KDE_NO_DBUS
+ kDebugDBusIface(0),
+#endif
+ m_disableAll(false), m_seenMainComponent(false)
{
Q_ASSERT(int(QtDebugMsg) == 0);
Q_ASSERT(int(QtFatalMsg) == 3);
@@ -234,10 +240,11 @@ struct KDebugPrivate
//
// Solution: we have a bool that is set by KApplication
// (kioslaves should use QCoreApplication but not KApplication).
+#ifndef KDE_NO_DBUS
if (kde_kdebug_enable_dbus_interface) {
kDebugDBusIface = new KDebugDBusIface;
}
-
+#endif
for (int i = 0; i < 8; i++) {
m_nullOutputYesNoCache[i] = -1;
}
@@ -247,7 +254,9 @@ struct KDebugPrivate
~KDebugPrivate()
{
delete config;
+#ifndef KDE_NO_DBUS
delete kDebugDBusIface;
+#endif
}
void loadAreaNames()
@@ -685,7 +694,9 @@ struct KDebugPrivate
QMutex mutex;
KConfig *config;
+#ifndef KDE_NO_DBUS
KDebugDBusIface *kDebugDBusIface;
+#endif
Cache cache;
bool m_disableAll;
bool m_seenMainComponent; // false: area zero still contains qAppName