mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 16:23:11 +02:00
32 lines
487 B
C++
32 lines
487 B
C++
#ifndef LOGIN_H
|
|
#define LOGIN_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
namespace Ui {
|
|
class login;
|
|
}
|
|
|
|
class login : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit login(QWidget *parent = nullptr);
|
|
~login();
|
|
void thisIDDoesNotExist();
|
|
void loginUser(QJsonObject &users);
|
|
QJsonObject readUserJsonFile();
|
|
void wrongPassword();
|
|
void loginSuccessful(const QString &id);
|
|
|
|
|
|
private slots:
|
|
void on_loginButton_clicked();
|
|
|
|
private:
|
|
Ui::login *ui;
|
|
};
|
|
|
|
#endif // LOGIN_H
|