| 1 | /* |
| 2 | * This file was generated by qdbusxml2cpp version 0.8 |
| 3 | * Source file was org.bluez.Device1.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 DEVICE1_BLUEZ5_P_H |
| 12 | #define DEVICE1_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 "bluez5_helper_p.h" |
| 34 | #include <QtCore/private/qglobal_p.h> |
| 35 | |
| 36 | namespace QtBluetoothPrivate { |
| 37 | |
| 38 | /* |
| 39 | * Proxy class for interface org.bluez.Device1 |
| 40 | */ |
| 41 | class OrgBluezDevice1Interface: public QDBusAbstractInterface |
| 42 | { |
| 43 | Q_OBJECT |
| 44 | public: |
| 45 | static inline const char *staticInterfaceName() |
| 46 | { return "org.bluez.Device1" ; } |
| 47 | |
| 48 | public: |
| 49 | OrgBluezDevice1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
| 50 | |
| 51 | ~OrgBluezDevice1Interface(); |
| 52 | |
| 53 | Q_PROPERTY(QDBusObjectPath Adapter READ adapter) |
| 54 | inline QDBusObjectPath adapter() const |
| 55 | { return qvariant_cast< QDBusObjectPath >(v: property(name: "Adapter" )); } |
| 56 | |
| 57 | Q_PROPERTY(QString Address READ address) |
| 58 | inline QString address() const |
| 59 | { return qvariant_cast< QString >(v: property(name: "Address" )); } |
| 60 | |
| 61 | Q_PROPERTY(QString Alias READ alias WRITE setAlias) |
| 62 | inline QString alias() const |
| 63 | { return qvariant_cast< QString >(v: property(name: "Alias" )); } |
| 64 | inline void setAlias(const QString &value) |
| 65 | { setProperty(name: "Alias" , value: QVariant::fromValue(value)); } |
| 66 | |
| 67 | Q_PROPERTY(ushort Appearance READ appearance) |
| 68 | inline ushort appearance() const |
| 69 | { return qvariant_cast< ushort >(v: property(name: "Appearance" )); } |
| 70 | |
| 71 | Q_PROPERTY(bool Blocked READ blocked WRITE setBlocked) |
| 72 | inline bool blocked() const |
| 73 | { return qvariant_cast< bool >(v: property(name: "Blocked" )); } |
| 74 | inline void setBlocked(bool value) |
| 75 | { setProperty(name: "Blocked" , value: QVariant::fromValue(value)); } |
| 76 | |
| 77 | Q_PROPERTY(uint Class READ classProperty) |
| 78 | inline uint classProperty() const |
| 79 | { return qvariant_cast< uint >(v: property(name: "Class" )); } |
| 80 | |
| 81 | Q_PROPERTY(bool Connected READ connected) |
| 82 | inline bool connected() const |
| 83 | { return qvariant_cast< bool >(v: property(name: "Connected" )); } |
| 84 | |
| 85 | Q_PROPERTY(QString Icon READ icon) |
| 86 | inline QString icon() const |
| 87 | { return qvariant_cast< QString >(v: property(name: "Icon" )); } |
| 88 | |
| 89 | Q_PROPERTY(bool LegacyPairing READ legacyPairing) |
| 90 | inline bool legacyPairing() const |
| 91 | { return qvariant_cast< bool >(v: property(name: "LegacyPairing" )); } |
| 92 | |
| 93 | Q_PROPERTY(ManufacturerDataList ManufacturerData READ manufacturerData) |
| 94 | inline ManufacturerDataList manufacturerData() const |
| 95 | { return qvariant_cast< ManufacturerDataList >(v: property(name: "ManufacturerData" )); } |
| 96 | |
| 97 | Q_PROPERTY(QString Modalias READ modalias) |
| 98 | inline QString modalias() const |
| 99 | { return qvariant_cast< QString >(v: property(name: "Modalias" )); } |
| 100 | |
| 101 | Q_PROPERTY(QString Name READ name) |
| 102 | inline QString name() const |
| 103 | { return qvariant_cast< QString >(v: property(name: "Name" )); } |
| 104 | |
| 105 | Q_PROPERTY(bool Paired READ paired) |
| 106 | inline bool paired() const |
| 107 | { return qvariant_cast< bool >(v: property(name: "Paired" )); } |
| 108 | |
| 109 | Q_PROPERTY(short RSSI READ rSSI) |
| 110 | inline short () const |
| 111 | { return qvariant_cast< short >(v: property(name: "RSSI" )); } |
| 112 | |
| 113 | Q_PROPERTY(ServiceDataList ServiceData READ serviceData) |
| 114 | inline ServiceDataList serviceData() const |
| 115 | { return qvariant_cast< ServiceDataList >(v: property(name: "ServiceData" )); } |
| 116 | |
| 117 | Q_PROPERTY(bool ServicesResolved READ servicesResolved) |
| 118 | inline bool servicesResolved() const |
| 119 | { return qvariant_cast< bool >(v: property(name: "ServicesResolved" )); } |
| 120 | |
| 121 | Q_PROPERTY(bool Trusted READ trusted WRITE setTrusted) |
| 122 | inline bool trusted() const |
| 123 | { return qvariant_cast< bool >(v: property(name: "Trusted" )); } |
| 124 | inline void setTrusted(bool value) |
| 125 | { setProperty(name: "Trusted" , value: QVariant::fromValue(value)); } |
| 126 | |
| 127 | Q_PROPERTY(short TxPower READ txPower) |
| 128 | inline short txPower() const |
| 129 | { return qvariant_cast< short >(v: property(name: "TxPower" )); } |
| 130 | |
| 131 | Q_PROPERTY(QStringList UUIDs READ uUIDs) |
| 132 | inline QStringList uUIDs() const |
| 133 | { return qvariant_cast< QStringList >(v: property(name: "UUIDs" )); } |
| 134 | |
| 135 | public Q_SLOTS: // METHODS |
| 136 | inline QDBusPendingReply<> CancelPairing() |
| 137 | { |
| 138 | QList<QVariant> argumentList; |
| 139 | return asyncCallWithArgumentList(QStringLiteral("CancelPairing" ), args: argumentList); |
| 140 | } |
| 141 | |
| 142 | inline QDBusPendingReply<> Connect() |
| 143 | { |
| 144 | QList<QVariant> argumentList; |
| 145 | return asyncCallWithArgumentList(QStringLiteral("Connect" ), args: argumentList); |
| 146 | } |
| 147 | |
| 148 | inline QDBusPendingReply<> ConnectProfile(const QString &UUID) |
| 149 | { |
| 150 | QList<QVariant> argumentList; |
| 151 | argumentList << QVariant::fromValue(value: UUID); |
| 152 | return asyncCallWithArgumentList(QStringLiteral("ConnectProfile" ), args: argumentList); |
| 153 | } |
| 154 | |
| 155 | inline QDBusPendingReply<> Disconnect() |
| 156 | { |
| 157 | QList<QVariant> argumentList; |
| 158 | return asyncCallWithArgumentList(QStringLiteral("Disconnect" ), args: argumentList); |
| 159 | } |
| 160 | |
| 161 | inline QDBusPendingReply<> DisconnectProfile(const QString &UUID) |
| 162 | { |
| 163 | QList<QVariant> argumentList; |
| 164 | argumentList << QVariant::fromValue(value: UUID); |
| 165 | return asyncCallWithArgumentList(QStringLiteral("DisconnectProfile" ), args: argumentList); |
| 166 | } |
| 167 | |
| 168 | inline QDBusPendingReply<> Pair() |
| 169 | { |
| 170 | QList<QVariant> argumentList; |
| 171 | return asyncCallWithArgumentList(QStringLiteral("Pair" ), args: argumentList); |
| 172 | } |
| 173 | |
| 174 | Q_SIGNALS: // SIGNALS |
| 175 | }; |
| 176 | |
| 177 | } // end of namespace QtBluetoothPrivate |
| 178 | |
| 179 | namespace org { |
| 180 | namespace bluez { |
| 181 | using Device1 = ::QtBluetoothPrivate::OrgBluezDevice1Interface; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | #endif |
| 186 | |