1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQTEXTENSIONPLUGIN_H
10#define BLUEZQTEXTENSIONPLUGIN_H
11
12#include <QQmlEngine>
13#include <QQmlExtensionPlugin>
14
15#include "pendingcall.h"
16#include "rfkill.h"
17
18struct PendingCallForeign {
19 Q_GADGET
20 QML_NAMED_ELEMENT(PendingCall)
21 QML_FOREIGN(BluezQt::PendingCall)
22 QML_UNCREATABLE("")
23};
24
25struct RfkillForeign {
26 Q_GADGET
27 QML_NAMED_ELEMENT(Rfkill)
28 QML_FOREIGN(BluezQt::Rfkill)
29 QML_UNCREATABLE("")
30};
31
32class BluezQtExtensionPlugin : public QQmlExtensionPlugin
33{
34 Q_OBJECT
35 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
36
37public:
38 void registerTypes(const char *uri) override;
39};
40
41#endif // BLUEZQTEXTENSIONPLUGIN_H
42

source code of bluez-qt/src/imports/bluezqtextensionplugin.h