forked from SteliosMitas/MQTTmessenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmydialog.h
42 lines (36 loc) · 779 Bytes
/
mydialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef MYDIALOG_H
#define MYDIALOG_H
#include <QDialog>
#include <QMainWindow>
#include <QtSql>
#include <QSqlDatabase>
#include <QMessageBox>
#include<QDebug>
#include <QMqttClient>
#include "mqtt/async_client.h"
namespace Ui {
class Mydialog;
}
class Mydialog : public QDialog
{
Q_OBJECT
public:
explicit Mydialog(QWidget *parent = nullptr);
~Mydialog();
private slots:
//Buttons
void on_subscribeBtn_clicked();
void on_connectBt_clicked();
void on_quitBtn_clicked();
void on_publishBtn_clicked();
//Other Functions
void brokerDisconnected();
void updateLogStateChange();
public slots:
void setClientPort(int p);
private:
Ui::Mydialog *ui;
QMqttClient *m_client;
QSqlDatabase database;
};
#endif // MYDIALOG_H