KDECore
kdebugdbusiface.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "kdebugdbusiface_p.h"
00022 #include <QtDBus/QtDBus>
00023 #include "kdebug.h"
00024
00025 KDebugDBusIface::KDebugDBusIface()
00026 {
00027 QDBusConnection::sessionBus().registerObject("/KDebug", this, QDBusConnection::ExportScriptableSlots);
00028 QDBusConnection::sessionBus().connect(QString(), QString(), "org.kde.KDebug",
00029 "configChanged", this, SLOT(notifyKDebugConfigChanged()));
00030 }
00031
00032 KDebugDBusIface::~KDebugDBusIface()
00033 {
00034 }
00035
00036 void KDebugDBusIface::notifyKDebugConfigChanged()
00037 {
00038 kClearDebugConfig();
00039 }
00040
00041 void KDebugDBusIface::printBacktrace()
00042 {
00043 kDebug() << kBacktrace();
00044 }
00045
00046 #include "kdebugdbusiface_p.moc"