aboutsummaryrefslogtreecommitdiff
path: root/client/dbconnector.h
blob: 82b4f213ddeaf417360da4d07b09859294041114 (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();

    static QString getdbName();
    static 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;
};