aboutsummaryrefslogtreecommitdiff
path: root/client/dbconnector.h
blob: 527acff73adb899332f2a6f12945932e61237019 (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
37
#pragma once

#include <QDialog>

#include <QMessageBox>
//#include <QtSql>
//#include <QSqlDatabase>
#include "consts.h"

namespace Ui {
class dbConnector;
}

class dbConnector : public QDialog
{
    Q_OBJECT

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

    QString getdbName();
    QString getEspHost();

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;
};