• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • io
kdebugdbusiface.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002 Andreas Beckermann (b_mann@gmx.de)
3  Copyright (C) 2006 Thiago Macieira <thiago@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #include "kdebugdbusiface_p.h"
22 #include <QtDBus/QtDBus>
23 #include "kdebug.h"
24 
25 KDebugDBusIface::KDebugDBusIface()
26 {
27  QDBusConnection::sessionBus().registerObject(QString::fromLatin1("/KDebug"), this, QDBusConnection::ExportScriptableSlots);
28  QDBusConnection::sessionBus().connect(QString(), QString(), QString::fromLatin1("org.kde.KDebug"),
29  QString::fromLatin1("configChanged"), this, SLOT(notifyKDebugConfigChanged()));
30 }
31 
32 KDebugDBusIface::~KDebugDBusIface()
33 {
34 }
35 
36 void KDebugDBusIface::notifyKDebugConfigChanged()
37 {
38  kClearDebugConfig();
39 }
40 
41 void KDebugDBusIface::printBacktrace()
42 {
43  kDebug() << kBacktrace();
44 }
45 
46 #include "kdebugdbusiface_p.moc"
kdebugdbusiface_p.h
kdebug.h
KDebugDBusIface::~KDebugDBusIface
~KDebugDBusIface()
Definition: kdebugdbusiface.cpp:32
QDBusConnection::registerObject
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
QDBusConnection::sessionBus
QDBusConnection sessionBus()
KDebugDBusIface::notifyKDebugConfigChanged
Q_SCRIPTABLE void notifyKDebugConfigChanged()
The kdebugrc has been changed and should be reparsed now.
Definition: kdebugdbusiface.cpp:36
kClearDebugConfig
void kClearDebugConfig()
Definition: kdebug.cpp:799
KDebugDBusIface::KDebugDBusIface
KDebugDBusIface()
Definition: kdebugdbusiface.cpp:25
QString
KDebugDBusIface::printBacktrace
Q_SCRIPTABLE void printBacktrace()
Print out a kBacktrace.
Definition: kdebugdbusiface.cpp:41
QString::fromLatin1
QString fromLatin1(const char *str, int size)
kDebug
#define kDebug
Definition: kdebug.h:316
QDBusConnection::connect
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal