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);
20 }
21 
22 QString DebugInterface::tracer() const
23 {
24  return m_tracer.currentTracer();
25 }
26 
27 void DebugInterface::setTracer(const QString &tracer)
28 {
29  m_tracer.activateTracer(tracer);
30 }
The global tracer instance where all akonadi components can send their tracing information to.
Definition: tracer.h:37
bool registerObject(const QString &path, QObject *object, QDBusConnection::RegisterOptions options)
QDBusConnection sessionBus()
void activateTracer(const QString &type)
Activates the given tracer type.
Definition: tracer.cpp:144
QString currentTracer() const
Returns the currently activated tracer type.
Definition: tracer.cpp:138
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:00:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.