Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
device1_bluez5_p.h
Go to the documentation of this file.
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -i bluez5_helper_p.h -I QtCore/private/qglobal_p.h -p device1_bluez5_p.h:device1_bluez5.cpp org.bluez.Device1.xml
4 *
5 * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
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/*
37 * Proxy class for interface org.bluez.Device1
38 */
40{
42public:
43 static inline const char *staticInterfaceName()
44 { return "org.bluez.Device1"; }
45
46public:
48
50
52 inline QDBusObjectPath adapter() const
53 { return qvariant_cast< QDBusObjectPath >(property("Adapter")); }
54
56 inline QString address() const
57 { return qvariant_cast< QString >(property("Address")); }
58
60 inline QString alias() const
61 { return qvariant_cast< QString >(property("Alias")); }
62 inline void setAlias(const QString &value)
64
66 inline ushort appearance() const
67 { return qvariant_cast< ushort >(property("Appearance")); }
68
70 inline bool blocked() const
71 { return qvariant_cast< bool >(property("Blocked")); }
72 inline void setBlocked(bool value)
73 { setProperty("Blocked", QVariant::fromValue(value)); }
74
76 inline uint classProperty() const
77 { return qvariant_cast< uint >(property("Class")); }
78
80 inline bool connected() const
81 { return qvariant_cast< bool >(property("Connected")); }
82
84 inline QString icon() const
85 { return qvariant_cast< QString >(property("Icon")); }
86
88 inline bool legacyPairing() const
89 { return qvariant_cast< bool >(property("LegacyPairing")); }
90
93 { return qvariant_cast< ManufacturerDataList >(property("ManufacturerData")); }
94
96 inline QString modalias() const
97 { return qvariant_cast< QString >(property("Modalias")); }
98
100 inline QString name() const
101 { return qvariant_cast< QString >(property("Name")); }
102
104 inline bool paired() const
105 { return qvariant_cast< bool >(property("Paired")); }
106
107 Q_PROPERTY(short RSSI READ rSSI)
108 inline short rSSI() const
109 { return qvariant_cast< short >(property("RSSI")); }
110
113 { return qvariant_cast< ServiceDataList >(property("ServiceData")); }
114
116 inline bool servicesResolved() const
117 { return qvariant_cast< bool >(property("ServicesResolved")); }
118
120 inline bool trusted() const
121 { return qvariant_cast< bool >(property("Trusted")); }
122 inline void setTrusted(bool value)
123 { setProperty("Trusted", QVariant::fromValue(value)); }
124
126 inline short txPower() const
127 { return qvariant_cast< short >(property("TxPower")); }
128
130 inline QStringList uUIDs() const
131 { return qvariant_cast< QStringList >(property("UUIDs")); }
132
133public Q_SLOTS: // METHODS
135 {
136 QList<QVariant> argumentList;
137 return asyncCallWithArgumentList(QStringLiteral("CancelPairing"), argumentList);
138 }
139
141 {
142 QList<QVariant> argumentList;
143 return asyncCallWithArgumentList(QStringLiteral("Connect"), argumentList);
144 }
145
147 {
148 QList<QVariant> argumentList;
149 argumentList << QVariant::fromValue(UUID);
150 return asyncCallWithArgumentList(QStringLiteral("ConnectProfile"), argumentList);
151 }
152
154 {
155 QList<QVariant> argumentList;
156 return asyncCallWithArgumentList(QStringLiteral("Disconnect"), argumentList);
157 }
158
160 {
161 QList<QVariant> argumentList;
162 argumentList << QVariant::fromValue(UUID);
163 return asyncCallWithArgumentList(QStringLiteral("DisconnectProfile"), argumentList);
164 }
165
167 {
168 QList<QVariant> argumentList;
169 return asyncCallWithArgumentList(QStringLiteral("Pair"), argumentList);
170 }
171
172Q_SIGNALS: // SIGNALS
173};
174
175namespace org {
176 namespace bluez {
178 }
179}
180#endif
QMap< QString, QDBusVariant > ServiceDataList
void setAlias(const QString &value)
QDBusPendingReply Connect()
ServiceDataList serviceData() const
OrgBluezDevice1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=nullptr)
QStringList uUIDs() const
QDBusPendingReply ConnectProfile(const QString &UUID)
QDBusPendingReply DisconnectProfile(const QString &UUID)
void setBlocked(bool value)
QDBusPendingReply CancelPairing()
QDBusPendingReply Disconnect()
QDBusObjectPath adapter() const
ManufacturerDataList ManufacturerData
static const char * staticInterfaceName()
ManufacturerDataList manufacturerData() const
QDBusPendingReply Pair()
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QString service() const
Returns the name of the service this interface is associated with.
QDBusConnection connection() const
Returns the connection this interface is associated with.
\inmodule QtDBus
\inmodule QtDBus
Definition qmap.h:187
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Definition qvariant.h:536
std::list< QString >::iterator Name
Definition lalr.h:28
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint name
GLuint GLuint64EXT address
GLsizei const GLchar *const * path
#define QStringLiteral(str)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
unsigned int uint
Definition qtypes.h:34
unsigned short ushort
Definition qtypes.h:33
const char property[13]
Definition qwizard.cpp:101
args<< 1<< 2;QJSValue threeAgain=fun.call(args);QString fileName="helloworld.qs";QFile scriptFile(fileName);if(!scriptFile.open(QIODevice::ReadOnly)) QTextStream stream(&scriptFile);QString contents=stream.readAll();scriptFile.close();myEngine.evaluate(contents, fileName);myEngine.globalObject().setProperty("myNumber", 123);...QJSValue myNumberPlusOne=myEngine.evaluate("myNumber + 1");QJSValue result=myEngine.evaluate(...);if(result.isError()) qDebug()<< "Uncaught exception at line"<< result.property("lineNumber").toInt()<< ":"<< result.toString();QPushButton *button=new QPushButton;QJSValue scriptButton=myEngine.newQObject(button);myEngine.globalObject().setProperty("button", scriptButton);myEngine.evaluate("button.checkable = true");qDebug()<< scriptButton.property("checkable").toBool();scriptButton.property("show").call();QJSEngine engine;QObject *myQObject=new QObject();myQObject- setProperty)("dynamicProperty", 3)