File indexing completed on 2024-10-06 03:36:44

0001 /*
0002  * SPDX-FileCopyrightText: 2014 David Rosca <nowrep@gmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #include "fakebluez.h"
0008 
0009 #include <QCoreApplication>
0010 #include <QDBusConnection>
0011 #include <QDebug>
0012 
0013 int main(int argc, char **argv)
0014 {
0015     QCoreApplication app(argc, argv);
0016 
0017     new FakeBluez(&app);
0018 
0019     if (!QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.bluezqt.test"))) {
0020         qWarning() << "Cannot register org.kde.bluezqt.test service!";
0021         return 1;
0022     }
0023 
0024     return app.exec();
0025 }