1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Commit Graph

8 Commits

Author SHA1 Message Date
Lucie Gérard
edd6855344 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Ie4309963c8e17d4e7dad602f61a660246d5e23cb
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-16 10:22:20 +02:00
Maurice Kalinowski
5986b03bad Change signature of QMqttClient::subscribe
Instead of returning a QSharedPointer, return the same pointer. This
improves readability as well as using the subscription from a user
perspective.

The ownership has to stay with the client though, otherwise behavior
is unexpected.

Change-Id: I72d3c15a12faf45c9575af8b3a790dfff1a30c2a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-09-01 18:52:20 +00:00
Maurice Kalinowski
73cfe25e9a Fix warnings
Change-Id: I80b21f973a697bbfcd66904c1caaaa52f3eae636
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-06-19 11:13:27 +00:00
Maurice Kalinowski
37bff8dd02 Clean up example
- use const ref
- prefer comma separated initializer list

Change-Id: I69dbf7b9577ec7db721b174ca13b936b79d66023
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-05-19 07:00:17 +00:00
Maurice Kalinowski
5a05823961 Introduce QMqttMessage
QMqttMessage stores all information about a published message being
received on a subscription. A user might be interested in more details,
hence provide all known details. Keep the class as lean as possible,
because its lifetime usually is very limited.

Change-Id: I6bfc3d8e93117cef370b1f02eb0d432c04341947
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2017-05-19 06:59:23 +00:00
Maurice Kalinowski
65a70d6e5f Add/Fix license headers
Change-Id: Ie5192a94a5e3dc3153344f4cf17f4dfb85a386ca
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-04-27 12:40:19 +00:00
Maurice Kalinowski
7bdd537989 Fix namespaced build 2017-03-27 15:30:24 +02:00
Maurice Kalinowski
8bda237fa0 Add initial support for QMqttSubscription
The class handles all subscription related items. Developers can use it
to manage the state of the subscription. Having a subscription object
simplifies message handling, there is no need to do a topic check for
each message received.
2017-03-23 08:04:20 +01:00