Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kf6-bluez-qt for openSUSE:Factory checked in at 2024-04-15 20:11:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kf6-bluez-qt (Old) and /work/SRC/openSUSE:Factory/.kf6-bluez-qt.new.26366 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kf6-bluez-qt" Mon Apr 15 20:11:36 2024 rev:2 rq:1167161 version:6.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kf6-bluez-qt/kf6-bluez-qt.changes 2024-03-11 15:27:32.876323793 +0100 +++ /work/SRC/openSUSE:Factory/.kf6-bluez-qt.new.26366/kf6-bluez-qt.changes 2024-04-15 20:11:38.765508250 +0200 @@ -1,0 +2,9 @@ +Fri Apr 5 12:52:17 UTC 2024 - Christophe Marin <[email protected]> + +- Update to 6.1.0 + * New feature release +- Changes since 6.0.0: + * update version for new release + * Add support for manufacturer data in LE advertisements + +------------------------------------------------------------------- Old: ---- bluez-qt-6.0.0.tar.xz bluez-qt-6.0.0.tar.xz.sig New: ---- bluez-qt-6.1.0.tar.xz bluez-qt-6.1.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kf6-bluez-qt.spec ++++++ --- /var/tmp/diff_new_pack.4PNLYl/_old 2024-04-15 20:11:40.145559041 +0200 +++ /var/tmp/diff_new_pack.4PNLYl/_new 2024-04-15 20:11:40.145559041 +0200 @@ -1,7 +1,7 @@ # # spec file for package kf6-bluez-qt # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,13 @@ %define qt6_version 6.6.0 %define rname bluez-qt -# Full KF6 version (e.g. 6.0.0) +# Full KF6 version (e.g. 6.1.0) %{!?_kf6_version: %global _kf6_version %{version}} # Last major and minor KF6 version (e.g. 6.0) %{!?_kf6_bugfix_version: %define _kf6_bugfix_version %(echo %{_kf6_version} | awk -F. '{print $1"."$2}')} %bcond_without released Name: kf6-bluez-qt -Version: 6.0.0 +Version: 6.1.0 Release: 0 Summary: Async Bluez wrapper library License: LGPL-2.1-or-later ++++++ bluez-qt-6.0.0.tar.xz -> bluez-qt-6.1.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluez-qt-6.0.0/CMakeLists.txt new/bluez-qt-6.1.0/CMakeLists.txt --- old/bluez-qt-6.0.0/CMakeLists.txt 2024-02-21 12:22:58.000000000 +0100 +++ new/bluez-qt-6.1.0/CMakeLists.txt 2024-04-05 12:54:19.000000000 +0200 @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.16) -set(KF_VERSION "6.0.0") # handled by release scripts +set(KF_VERSION "6.1.0") # handled by release scripts project(BluezQt VERSION ${KF_VERSION}) include(FeatureSummary) -find_package(ECM 6.0.0 NO_MODULE) +find_package(ECM 6.1.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluez-qt-6.0.0/src/leadvertisement.cpp new/bluez-qt-6.1.0/src/leadvertisement.cpp --- old/bluez-qt-6.0.0/src/leadvertisement.cpp 2024-02-21 12:22:58.000000000 +0100 +++ new/bluez-qt-6.1.0/src/leadvertisement.cpp 2024-04-05 12:54:19.000000000 +0200 @@ -39,6 +39,16 @@ d->m_serviceData = data; } +QHash<quint16, QByteArray> LEAdvertisement::manufacturerData() const +{ + return d->m_manufacturerData; +} + +void LEAdvertisement::setManufacturerData(const QHash<quint16, QByteArray> &data) +{ + d->m_manufacturerData = data; +} + void LEAdvertisement::release() { } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluez-qt-6.0.0/src/leadvertisement.h new/bluez-qt-6.1.0/src/leadvertisement.h --- old/bluez-qt-6.0.0/src/leadvertisement.h 2024-02-21 12:22:58.000000000 +0100 +++ new/bluez-qt-6.1.0/src/leadvertisement.h 2024-04-05 12:54:19.000000000 +0200 @@ -66,6 +66,22 @@ void setServiceData(const QHash<QString, QByteArray> &data); /** + * Returns the manufacturer data included in the advertisement. + * + * @return A QHash representing the manufaturer IDs and associated data. Keys are manufaturer ID. + * @since 6.1 + */ + QHash<quint16, QByteArray> manufacturerData() const; + + /** + * Sets the manufacturer data to be included in the advertisement. + * + * @param data QHash representing the manufacturer IDs and associated data. Keys are manufacturer ID. + * @since 6.1 + */ + void setManufacturerData(const QHash<quint16, QByteArray> &data); + + /** * Indicates that the LEAdvertisement was unregistered. * * This method gets called when the service daemon removes the Advertisement. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluez-qt-6.0.0/src/leadvertisement_p.h new/bluez-qt-6.1.0/src/leadvertisement_p.h --- old/bluez-qt-6.0.0/src/leadvertisement_p.h 2024-02-21 12:22:58.000000000 +0100 +++ new/bluez-qt-6.1.0/src/leadvertisement_p.h 2024-04-05 12:54:19.000000000 +0200 @@ -20,6 +20,7 @@ QStringList m_serviceUuids; QDBusObjectPath m_objectPath; QHash<QString, QByteArray> m_serviceData; + QHash<quint16, QByteArray> m_manufacturerData; }; } // namespace BluezQt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluez-qt-6.0.0/src/leadvertisementadaptor.cpp new/bluez-qt-6.1.0/src/leadvertisementadaptor.cpp --- old/bluez-qt-6.0.0/src/leadvertisementadaptor.cpp 2024-02-21 12:22:58.000000000 +0100 +++ new/bluez-qt-6.1.0/src/leadvertisementadaptor.cpp 2024-04-05 12:54:19.000000000 +0200 @@ -19,6 +19,7 @@ , m_advertisement(parent) { qDBusRegisterMetaType<QHash<QString, QVariant>>(); + qDBusRegisterMetaType<QHash<quint16, QDBusVariant>>(); } QString LEAdvertisementAdaptor::type() const @@ -43,6 +44,20 @@ return data; } +QHash<quint16, QDBusVariant> LEAdvertisementAdaptor::manufacturerData() const +{ + QHash<quint16, QDBusVariant> data; + + const auto &md = m_advertisement->manufacturerData(); + data.reserve(md.size()); + + for (auto it = md.cbegin(); it != md.cend(); ++it) { + data.insert(it.key(), QDBusVariant(QVariant::fromValue(it.value()))); + } + + return data; +} + void LEAdvertisementAdaptor::Release() { m_advertisement->release(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bluez-qt-6.0.0/src/leadvertisementadaptor.h new/bluez-qt-6.1.0/src/leadvertisementadaptor.h --- old/bluez-qt-6.0.0/src/leadvertisementadaptor.h 2024-02-21 12:22:58.000000000 +0100 +++ new/bluez-qt-6.1.0/src/leadvertisementadaptor.h 2024-04-05 12:54:19.000000000 +0200 @@ -10,6 +10,7 @@ #define BLUEZQT_LEADVERTISEMENTADAPTOR_H #include <QDBusAbstractAdaptor> +#include <QDBusVariant> namespace BluezQt { @@ -22,6 +23,7 @@ Q_PROPERTY(QString Type READ type) Q_PROPERTY(QStringList ServiceUUIDs READ serviceUuids) Q_PROPERTY(QHash<QString, QVariant> ServiceData READ serviceData) + Q_PROPERTY(QHash<quint16, QDBusVariant> ManufacturerData READ manufacturerData) public: explicit LEAdvertisementAdaptor(LEAdvertisement *parent); @@ -30,6 +32,7 @@ QStringList serviceUuids() const; QHash<QString, QVariant> serviceData() const; + QHash<quint16, QDBusVariant> manufacturerData() const; public Q_SLOTS: Q_NOREPLY void Release();
