Akonadi

debuginterface.cpp
1 /*
2  SPDX-FileCopyrightText: 2008 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "debuginterface.h"
8 #include "debuginterfaceadaptor.h"
9 #include "tracer.h"
10 
11 #include <QDBusConnection>
12 
13 using namespace Akonadi::Server;
14 
15 DebugInterface::DebugInterface(Tracer &tracer)
16  : m_tracer(tracer)
17 {
18  new DebugInterfaceAdaptor(this);
19  QDBusConnection::sessionBus().registerObject(QStringLiteral("/debug"),
21 }
22 
23 QString DebugInterface::tracer() const
24 {
25  return m_tracer.currentTracer();
26 }
27 
28 void DebugInterface::setTracer(const QString &tracer)
29 {
30  m_tracer.activateTracer(tracer);
31 }
bool registerObject(const QString &path, QObject *object, QDBusConnection::RegisterOptions options)
QDBusConnection sessionBus()
The global tracer instance where all akonadi components can send their tracing information to...
Definition: tracer.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.