37 lines
782 B
C++
37 lines
782 B
C++
#ifndef AUTH_H
|
|
#define AUTH_H
|
|
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QSqlDatabase>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
class auth : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit auth (QWidget *parent = nullptr);
|
|
|
|
private:
|
|
QLabel *_nicknameLabel = nullptr;
|
|
QLineEdit *_nicknameEdit = nullptr;
|
|
QLabel *_passwordLabel = nullptr;
|
|
QLineEdit *_passwordEdit = nullptr;
|
|
QLabel *_addressLabel = nullptr;
|
|
QLineEdit *_addressEdit = nullptr;
|
|
QLabel *_portLabel = nullptr;
|
|
QLineEdit *_portEdit = nullptr;
|
|
QPushButton *_okButton = nullptr;
|
|
QPushButton *_quitButton = nullptr;
|
|
QVBoxLayout *_vbox = nullptr;
|
|
QSqlDatabase _db;
|
|
public slots:
|
|
void onAuth ();
|
|
signals:
|
|
void dbOpenned(const QSqlDatabase &);
|
|
};
|
|
|
|
#endif // AUTH_H
|