File indexing completed on 2024-06-16 04:50:01
0001 /*************************************************************************** 0002 * SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org> * 0003 * * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later * 0005 ***************************************************************************/ 0006 0007 #include "controlmanager.h" 0008 0009 #include <QCoreApplication> 0010 #include <QTimer> 0011 0012 #include "controlmanageradaptor.h" 0013 using namespace std::chrono_literals; 0014 ControlManager::ControlManager(QObject *parent) 0015 : QObject(parent) 0016 { 0017 new ControlManagerAdaptor(this); 0018 QDBusConnection::sessionBus().registerObject(QStringLiteral("/ControlManager"), this); 0019 } 0020 0021 ControlManager::~ControlManager() 0022 { 0023 } 0024 0025 void ControlManager::shutdown() 0026 { 0027 QTimer::singleShot(0s, QCoreApplication::instance(), &QCoreApplication::quit); 0028 } 0029 0030 #include "moc_controlmanager.cpp"