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#ifndef KDEBUGDBUSIFACE_H
22#define KDEBUGDBUSIFACE_H
23
24#include <kdecore_export.h>
25#include <QtCore/qobject.h>
26
27/**
28 * @short D-Bus interface to KDebug.
29 **/
30class KDebugDBusIface: public QObject
31{
32 Q_OBJECT
33 Q_CLASSINFO("D-Bus Interface", "org.kde.KDebug")
34public:
35 KDebugDBusIface();
36 ~KDebugDBusIface();
37
38public Q_SLOTS:
39 /**
40 * The kdebugrc has been changed and should be reparsed now.
41 * This will simply call kClearDebugConfig
42 **/
43 Q_SCRIPTABLE void notifyKDebugConfigChanged();
44
45 /**
46 * Print out a kBacktrace. Useful when trying to understand why
47 * a dialog is popping up, without having to launch gdb
48 */
49 Q_SCRIPTABLE void printBacktrace();
50};
51
52#endif
53