9#include "leadvertisementadaptor.h"
10#include "leadvertisement.h"
12#include <QDBusMetaType>
13#include <QDBusObjectPath>
17LEAdvertisementAdaptor::LEAdvertisementAdaptor(LEAdvertisement *parent)
19 , m_advertisement(parent)
21 qDBusRegisterMetaType<QHash<QString, QVariant>>();
22 qDBusRegisterMetaType<QHash<quint16, QDBusVariant>>();
25QString LEAdvertisementAdaptor::type()
const
27 return QStringLiteral(
"peripheral");
30QStringList LEAdvertisementAdaptor::serviceUuids()
const
32 return m_advertisement->serviceUuids();
39 const auto sd = m_advertisement->serviceData();
41 for (
auto it = sd.begin(); it != sd.end(); ++it) {
42 data.
insert(it.key(), it.value());
51 const auto &md = m_advertisement->manufacturerData();
54 for (
auto it = md.cbegin(); it != md.cend(); ++it) {
61void LEAdvertisementAdaptor::Release()
63 m_advertisement->release();
68#include "moc_leadvertisementadaptor.cpp"
iterator insert(const Key &key, const T &value)
void reserve(qsizetype size)
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.