Akonadi

debuginterface.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Volker Krause <vkrause@kde.org>
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
13using namespace Akonadi::Server;
14
15DebugInterface::DebugInterface(Tracer &tracer)
16 : m_tracer(tracer)
17{
18 new DebugInterfaceAdaptor(this);
20}
21
22QString DebugInterface::tracer() const
23{
24 return m_tracer.currentTracer();
25}
26
27void DebugInterface::setTracer(const QString &tracer)
28{
29 m_tracer.activateTracer(tracer);
30}
31
32#include "moc_debuginterface.cpp"
The global tracer instance where all akonadi components can send their tracing information to.
Definition tracer.h:38
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
bool registerObject(const QString &path, QObject *object, RegisterOptions options)
QDBusConnection sessionBus()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 11:56:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.