| 1 | /* |
| 2 | * This file was generated by qdbusxml2cpp version 0.8 |
| 3 | * Source file was org.bluez.Adapter1.xml |
| 4 | * |
| 5 | * qdbusxml2cpp is Copyright (C) The Qt Company Ltd. and other contributors. |
| 6 | * |
| 7 | * This is an auto-generated file. |
| 8 | * Do not edit! All changes made to it will be lost. |
| 9 | */ |
| 10 | |
| 11 | #ifndef ADAPTER1_BLUEZ5_P_H |
| 12 | #define ADAPTER1_BLUEZ5_P_H |
| 13 | |
| 14 | // |
| 15 | // W A R N I N G |
| 16 | // ------------- |
| 17 | // |
| 18 | // This file is not part of the Qt API. It exists purely as an |
| 19 | // implementation detail. This header file may change from version to |
| 20 | // version without notice, or even be removed. |
| 21 | // |
| 22 | // We mean it. |
| 23 | // |
| 24 | |
| 25 | #include <QtCore/QObject> |
| 26 | #include <QtCore/QByteArray> |
| 27 | #include <QtCore/QList> |
| 28 | #include <QtCore/QMap> |
| 29 | #include <QtCore/QString> |
| 30 | #include <QtCore/QStringList> |
| 31 | #include <QtCore/QVariant> |
| 32 | #include <QtDBus/QtDBus> |
| 33 | #include <QtCore/private/qglobal_p.h> |
| 34 | |
| 35 | namespace QtBluetoothPrivate { |
| 36 | |
| 37 | /* |
| 38 | * Proxy class for interface org.bluez.Adapter1 |
| 39 | */ |
| 40 | class OrgBluezAdapter1Interface: public QDBusAbstractInterface |
| 41 | { |
| 42 | Q_OBJECT |
| 43 | public: |
| 44 | static inline const char *staticInterfaceName() |
| 45 | { return "org.bluez.Adapter1" ; } |
| 46 | |
| 47 | public: |
| 48 | OrgBluezAdapter1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
| 49 | |
| 50 | ~OrgBluezAdapter1Interface(); |
| 51 | |
| 52 | Q_PROPERTY(QString Address READ address) |
| 53 | inline QString address() const |
| 54 | { return qvariant_cast< QString >(v: property(name: "Address" )); } |
| 55 | |
| 56 | Q_PROPERTY(QString Alias READ alias WRITE setAlias) |
| 57 | inline QString alias() const |
| 58 | { return qvariant_cast< QString >(v: property(name: "Alias" )); } |
| 59 | inline void setAlias(const QString &value) |
| 60 | { setProperty(name: "Alias" , value: QVariant::fromValue(value)); } |
| 61 | |
| 62 | Q_PROPERTY(uint Class READ classProperty) |
| 63 | inline uint classProperty() const |
| 64 | { return qvariant_cast< uint >(v: property(name: "Class" )); } |
| 65 | |
| 66 | Q_PROPERTY(bool Discoverable READ discoverable WRITE setDiscoverable) |
| 67 | inline bool discoverable() const |
| 68 | { return qvariant_cast< bool >(v: property(name: "Discoverable" )); } |
| 69 | inline void setDiscoverable(bool value) |
| 70 | { setProperty(name: "Discoverable" , value: QVariant::fromValue(value)); } |
| 71 | |
| 72 | Q_PROPERTY(uint DiscoverableTimeout READ discoverableTimeout WRITE setDiscoverableTimeout) |
| 73 | inline uint discoverableTimeout() const |
| 74 | { return qvariant_cast< uint >(v: property(name: "DiscoverableTimeout" )); } |
| 75 | inline void setDiscoverableTimeout(uint value) |
| 76 | { setProperty(name: "DiscoverableTimeout" , value: QVariant::fromValue(value)); } |
| 77 | |
| 78 | Q_PROPERTY(bool Discovering READ discovering) |
| 79 | inline bool discovering() const |
| 80 | { return qvariant_cast< bool >(v: property(name: "Discovering" )); } |
| 81 | |
| 82 | Q_PROPERTY(QString Modalias READ modalias) |
| 83 | inline QString modalias() const |
| 84 | { return qvariant_cast< QString >(v: property(name: "Modalias" )); } |
| 85 | |
| 86 | Q_PROPERTY(QString Name READ name) |
| 87 | inline QString name() const |
| 88 | { return qvariant_cast< QString >(v: property(name: "Name" )); } |
| 89 | |
| 90 | Q_PROPERTY(bool Pairable READ pairable WRITE setPairable) |
| 91 | inline bool pairable() const |
| 92 | { return qvariant_cast< bool >(v: property(name: "Pairable" )); } |
| 93 | inline void setPairable(bool value) |
| 94 | { setProperty(name: "Pairable" , value: QVariant::fromValue(value)); } |
| 95 | |
| 96 | Q_PROPERTY(uint PairableTimeout READ pairableTimeout WRITE setPairableTimeout) |
| 97 | inline uint pairableTimeout() const |
| 98 | { return qvariant_cast< uint >(v: property(name: "PairableTimeout" )); } |
| 99 | inline void setPairableTimeout(uint value) |
| 100 | { setProperty(name: "PairableTimeout" , value: QVariant::fromValue(value)); } |
| 101 | |
| 102 | Q_PROPERTY(bool Powered READ powered WRITE setPowered) |
| 103 | inline bool powered() const |
| 104 | { return qvariant_cast< bool >(v: property(name: "Powered" )); } |
| 105 | inline void setPowered(bool value) |
| 106 | { setProperty(name: "Powered" , value: QVariant::fromValue(value)); } |
| 107 | |
| 108 | Q_PROPERTY(QStringList UUIDs READ uUIDs) |
| 109 | inline QStringList uUIDs() const |
| 110 | { return qvariant_cast< QStringList >(v: property(name: "UUIDs" )); } |
| 111 | |
| 112 | public Q_SLOTS: // METHODS |
| 113 | inline QDBusPendingReply<> RemoveDevice(const QDBusObjectPath &device) |
| 114 | { |
| 115 | QList<QVariant> argumentList; |
| 116 | argumentList << QVariant::fromValue(value: device); |
| 117 | return asyncCallWithArgumentList(QStringLiteral("RemoveDevice" ), args: argumentList); |
| 118 | } |
| 119 | |
| 120 | inline QDBusPendingReply<> SetDiscoveryFilter(const QVariantMap &properties) |
| 121 | { |
| 122 | QList<QVariant> argumentList; |
| 123 | argumentList << QVariant::fromValue(value: properties); |
| 124 | return asyncCallWithArgumentList(QStringLiteral("SetDiscoveryFilter" ), args: argumentList); |
| 125 | } |
| 126 | |
| 127 | inline QDBusPendingReply<> StartDiscovery() |
| 128 | { |
| 129 | QList<QVariant> argumentList; |
| 130 | return asyncCallWithArgumentList(QStringLiteral("StartDiscovery" ), args: argumentList); |
| 131 | } |
| 132 | |
| 133 | inline QDBusPendingReply<> StopDiscovery() |
| 134 | { |
| 135 | QList<QVariant> argumentList; |
| 136 | return asyncCallWithArgumentList(QStringLiteral("StopDiscovery" ), args: argumentList); |
| 137 | } |
| 138 | |
| 139 | Q_SIGNALS: // SIGNALS |
| 140 | }; |
| 141 | |
| 142 | } // end of namespace QtBluetoothPrivate |
| 143 | |
| 144 | namespace org { |
| 145 | namespace bluez { |
| 146 | using Adapter1 = ::QtBluetoothPrivate::OrgBluezAdapter1Interface; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | #endif |
| 151 | |