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
qleadvertiser_bluezdbus_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QLEADVERTISER_BLUEZDBUS_P_H
5#define QLEADVERTISER_BLUEZDBUS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
20
22
23#include <QtCore/QObject>
24
27
29
31{
33
34public:
36 const QLowEnergyAdvertisingData &advertisingData,
37 const QLowEnergyAdvertisingData &scanResponseData,
38 const QString &hostAdapterPath,
39 QObject* parent = nullptr);
40 ~QLeDBusAdvertiser() override;
41
42 void startAdvertising();
43 void stopAdvertising();
44
45 Q_INVOKABLE void Release();
46
49
50private:
51 void setDataForDBus();
52 void setAdvertisingParamsForDBus();
53 void setAdvertisementDataForDBus();
54
55private:
56 const QLowEnergyAdvertisingParameters m_advParams;
58 const QString m_advObjectPath;
59 OrgBluezLEAdvertisement1Adaptor* const m_advDataDBus;
61 bool m_advertising = false;
62};
63
65
66#endif // QLEADVERTISER_BLUEZDBUS_P_H
QLeDBusAdvertiser(const QLowEnergyAdvertisingParameters &params, const QLowEnergyAdvertisingData &advertisingData, const QLowEnergyAdvertisingData &scanResponseData, const QString &hostAdapterPath, QObject *parent=nullptr)
The QLowEnergyAdvertisingData class represents the data to be broadcast during Bluetooth Low Energy a...
The QLowEnergyAdvertisingParameters class represents the parameters used for Bluetooth Low Energy adv...
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
void ** params
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_INVOKABLE
#define signals