| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2014 David Rosca <[email protected]> |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 5 |
*/ |
| 6 |
|
| 7 |
#include "fakebluez.h" |
| 8 |
|
| 9 |
#include <QCoreApplication> |
| 10 |
#include <QDBusConnection> |
| 11 |
#include <QDebug> |
| 12 |
|
| 13 |
int main(int argc, char **argv) |
| 14 |
{ |
| 15 |
QCoreApplication app(argc, argv); |
| 16 |
|
| 17 |
new FakeBluez(&app); |
| 18 |
|
| 19 |
if (!QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.bluezqt.test"))) { |
| 20 |
qWarning() << "Cannot register org.kde.bluezqt.test service!"; |
| 21 |
return 1; |
| 22 |
} |
| 23 |
|
| 24 |
return app.exec(); |
| 25 |
} |