mysitenews/auth.h

36 lines
754 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;
public slots:
void onAuth ();
signals:
void dbOpenned(QSqlDatabase *);
};
#endif // AUTH_H