Akonadi

remotelog.cpp
1 /*
2  SPDX-FileCopyrightText: 2018 Daniel Vr├ítil <[email protected]>
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 
13 namespace
14 {
15 const 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-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.