mqtt_dialog.h
Go to the documentation of this file.
1 #ifndef MQTT_DIALOG_H
2 #define MQTT_DIALOG_H
3 
4 #include "ui_datastream_mqtt.h"
5 #include "mqtt_client.h"
6 #include <QSettings>
7 #include <QMessageBox>
8 #include <QUuid>
9 #include <QIntValidator>
10 #include <QTimer>
11 
12 class MQTT_Dialog : public QDialog
13 {
14 public:
15  MQTT_Dialog(MQTTClient::Ptr mosq_client);
16 
17  ~MQTT_Dialog();
18 
19  Ui::DataStreamMQTT* ui;
20 
21  void saveSettings();
22 
23 public slots:
24 
25  void onButtonConnect();
26 
27  void onUpdateTopicList();
28 
29  void onSelectionChanged();
30 
31 private:
33 
35 
36  void changeConnectionState(bool connected);
37 
38  void onConnectionClosed();
39 
40 private slots:
41 
43 
45 
46  void onLoadPrivateKey();
47 
51 
52  std::unordered_set<std::string> _topic_list;
53 };
54 
55 #endif // MQTT_DIALOG_H
MQTT_Dialog::saveSettings
void saveSettings()
Definition: mqtt_dialog.cpp:125
MQTT_Dialog
Definition: mqtt_dialog.h:12
MQTT_Dialog::_topic_list
std::unordered_set< std::string > _topic_list
Definition: mqtt_dialog.h:52
MQTT_Dialog::_topic_list_timer
QTimer * _topic_list_timer
Definition: mqtt_dialog.h:34
MQTT_Dialog::MQTT_Dialog
MQTT_Dialog(MQTTClient::Ptr mosq_client)
Definition: mqtt_dialog.cpp:15
MQTT_Dialog::ui
Ui::DataStreamMQTT * ui
Definition: mqtt_dialog.h:19
MQTT_Dialog::onConnectionClosed
void onConnectionClosed()
Definition: mqtt_dialog.cpp:5
MQTT_Dialog::_client
MQTTClient::Ptr _client
Definition: mqtt_dialog.h:32
MQTT_Dialog::onLoadServerCertificate
void onLoadServerCertificate()
Definition: mqtt_dialog.cpp:247
MQTT_Dialog::changeConnectionState
void changeConnectionState(bool connected)
Definition: mqtt_dialog.cpp:239
MQTT_Dialog::onSelectionChanged
void onSelectionChanged()
Definition: mqtt_dialog.cpp:233
MQTT_Dialog::onUpdateTopicList
void onUpdateTopicList()
Definition: mqtt_dialog.cpp:199
MQTT_Dialog::_private_key_file
QString _private_key_file
Definition: mqtt_dialog.h:50
MQTT_Dialog::~MQTT_Dialog
~MQTT_Dialog()
Definition: mqtt_dialog.cpp:147
MQTT_Dialog::_client_certificate_file
QString _client_certificate_file
Definition: mqtt_dialog.h:49
MQTTClient::Ptr
std::shared_ptr< MQTTClient > Ptr
Definition: mqtt_client.h:19
MQTT_Dialog::onButtonConnect
void onButtonConnect()
Definition: mqtt_dialog.cpp:160
MQTT_Dialog::_server_certificate_file
QString _server_certificate_file
Definition: mqtt_dialog.h:48
MQTT_Dialog::onLoadPrivateKey
void onLoadPrivateKey()
Definition: mqtt_dialog.cpp:287
MQTT_Dialog::onLoadClientCertificate
void onLoadClientCertificate()
Definition: mqtt_dialog.cpp:267
mqtt_client.h


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45