Akonadi

remotelog.cpp
1/*
2 SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "shared/akremotelog.h"
8
9#include <QCoreApplication>
10#include <QThread>
11#include <QTimer>
12
13namespace
14{
15const auto initRemoteLogger = []() {
16 qAddPreRoutine([]() {
17 // Initialize remote logging from event loop, this way applications like
18 // Akonadi Console or TestRunner have a chance to change AKONADI_INSTANCE
19 // before the RemoteLog class initialize
20 QTimer::singleShot(0, qApp, []() {
21 akInitRemoteLog();
22 });
23 });
24 return true;
25}();
26
27} // namespace
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.