-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
53 lines (41 loc) · 1.24 KB
/
mainwindow.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
43
44
45
46
47
48
49
50
51
52
53
#if !defined(MAINWINDOW_H)
#define MAINWINDOW_H
#include <QDebug>
#include <QDateTime>
#include <QMainWindow>
#include "zettalistenerconnection.h"
#include "httpserver.h"
#include "dbcon.h"
#include "record.h"
namespace Ui {class MainWindow;}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
void on_pushButton_clearLogs_clicked();
void alert(const QString &windowTitle, const QString &windowInfo);
void zettaListenerConnectionChanged(bool,int);
void on_pushButton_connectZettaListener_clicked();
void on_comboBox_connectionType_currentIndexChanged(int);
void on_pushButton_connectDatabase_clicked();
void databaseConnectionChanged(bool);
void httpServerConnectionChanged(bool);
void on_pushButton_startWebApi_clicked();
void appendLog(const QString& str);
#ifdef IS_TESTING
public:
#else
private:
#endif
Ui::MainWindow *m_ui;
ZettaListenerConnection *m_zettaListenerConnection;
HttpServer *m_httpServer;
DbCon *m_dbCon;
int m_zettaListernConnectionType;
bool m_zettaListenerConnectionStatus;
bool m_databaseConnectionStatus;
bool m_httpServerConnectionStatus;
};
#endif // MAINWINDOW_H