aboutsummaryrefslogtreecommitdiff
path: root/client/dbconnector.h
blob: 4737d6f8be8fac9123497e85fdadb7a67aba7789 (plain)
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
#pragma once

#include <QDialog>

#include <QMessageBox>
//#include <QtSql>
//#include <QSqlDatabase>

#define WS_ESP8266_WLAN_IP "129.168.0.1"


namespace Ui {
class dbConnector;
}

class dbConnector : public QDialog
{
    Q_OBJECT

public:
    explicit dbConnector(QWidget *parent = nullptr);
    ~dbConnector();

private slots:

    void on_pushButton_cancel_clicked();

    void on_pushButton_login_clicked();

private:
    Ui::dbConnector *ui;

    QString _dbHost = "localhost";
    QString _dbName = "WSdb";
    QString _espHost = WS_ESP8266_WLAN_IP;
};