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, []() { akInitRemoteLog(); });
21  });
22  return true;
23 }();
24 
25 } // namespace
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.