mirror of
https://github.com/qt/qtmqtt.git
synced 2026-10-25 16:16:26 +00:00
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>
34 lines
752 B
C++
34 lines
752 B
C++
// Copyright (C) 2017 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#ifndef SUBSCRIPTIONWINDOW_H
|
|
#define SUBSCRIPTIONWINDOW_H
|
|
|
|
#include <QWidget>
|
|
#include <QtMqtt/QMqttMessage>
|
|
#include <QtMqtt/QMqttSubscription>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class SubscriptionWindow;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class SubscriptionWindow : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SubscriptionWindow(QMqttSubscription *sub, QWidget *parent = nullptr);
|
|
~SubscriptionWindow();
|
|
|
|
public slots:
|
|
void updateMessage(const QMqttMessage &msg);
|
|
void updateStatus(QMqttSubscription::SubscriptionState state);
|
|
private:
|
|
Ui::SubscriptionWindow *ui;
|
|
QMqttSubscription *m_sub;
|
|
};
|
|
|
|
#endif // SUBSCRIPTIONWINDOW_H
|