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
adapter1_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 QtCore/private/qglobal_p.h -p adapter1_bluez5_p.h:adapter1_bluez5.cpp org.bluez.Adapter1.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 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/*
36 * Proxy class for interface org.bluez.Adapter1
37 */
39{
41public:
42 static inline const char *staticInterfaceName()
43 { return "org.bluez.Adapter1"; }
44
45public:
47
49
51 inline QString address() const
52 { return qvariant_cast< QString >(property("Address")); }
53
55 inline QString alias() const
56 { return qvariant_cast< QString >(property("Alias")); }
57 inline void setAlias(const QString &value)
59
61 inline uint classProperty() const
62 { return qvariant_cast< uint >(property("Class")); }
63
65 inline bool discoverable() const
66 { return qvariant_cast< bool >(property("Discoverable")); }
67 inline void setDiscoverable(bool value)
68 { setProperty("Discoverable", QVariant::fromValue(value)); }
69
72 { return qvariant_cast< uint >(property("DiscoverableTimeout")); }
74 { setProperty("DiscoverableTimeout", QVariant::fromValue(value)); }
75
77 inline bool discovering() const
78 { return qvariant_cast< bool >(property("Discovering")); }
79
81 inline QString modalias() const
82 { return qvariant_cast< QString >(property("Modalias")); }
83
85 inline QString name() const
86 { return qvariant_cast< QString >(property("Name")); }
87
89 inline bool pairable() const
90 { return qvariant_cast< bool >(property("Pairable")); }
91 inline void setPairable(bool value)
92 { setProperty("Pairable", QVariant::fromValue(value)); }
93
95 inline uint pairableTimeout() const
96 { return qvariant_cast< uint >(property("PairableTimeout")); }
98 { setProperty("PairableTimeout", QVariant::fromValue(value)); }
99
101 inline bool powered() const
102 { return qvariant_cast< bool >(property("Powered")); }
103 inline void setPowered(bool value)
104 { setProperty("Powered", QVariant::fromValue(value)); }
105
107 inline QStringList uUIDs() const
108 { return qvariant_cast< QStringList >(property("UUIDs")); }
109
110public Q_SLOTS: // METHODS
112 {
113 QList<QVariant> argumentList;
114 argumentList << QVariant::fromValue(device);
115 return asyncCallWithArgumentList(QStringLiteral("RemoveDevice"), argumentList);
116 }
117
119 {
120 QList<QVariant> argumentList;
121 argumentList << QVariant::fromValue(properties);
122 return asyncCallWithArgumentList(QStringLiteral("SetDiscoveryFilter"), argumentList);
123 }
124
126 {
127 QList<QVariant> argumentList;
128 return asyncCallWithArgumentList(QStringLiteral("StartDiscovery"), argumentList);
129 }
130
132 {
133 QList<QVariant> argumentList;
134 return asyncCallWithArgumentList(QStringLiteral("StopDiscovery"), argumentList);
135 }
136
137Q_SIGNALS: // SIGNALS
138};
139
140namespace org {
141 namespace bluez {
143 }
144}
145#endif
IOBluetoothDevice * device
OrgBluezAdapter1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=nullptr)
void setAlias(const QString &value)
void setDiscoverable(bool value)
QDBusPendingReply StopDiscovery()
void setDiscoverableTimeout(uint value)
static const char * staticInterfaceName()
QDBusPendingReply StartDiscovery()
QDBusPendingReply RemoveDevice(const QDBusObjectPath &device)
QDBusPendingReply SetDiscoveryFilter(const QVariantMap &properties)
void setPairableTimeout(uint value)
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
\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
static const QCssKnownValue properties[NumProperties - 1]
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
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)