BluezQt

bluezqtextensionplugin.h
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{
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
Pending method call.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.