Files
StationManager/src/userinterfaces/windows/loginwindow.h
2026-04-06 12:20:43 +03:00

37 lines
697 B
C++

#ifndef LOGINWINDOW_H
#define LOGINWINDOW_H
#include <QDialog>
#include <QLineEdit>
#include <QLabel>
#include <QHBoxLayout>
class LoginWindow : public QDialog {
Q_OBJECT
public:
explicit LoginWindow(QWidget* parent = nullptr);
QString getUsername() const { return m_username; }
QString getRole() const { return m_role; }
signals:
void loginSuccessful();
private slots:
void onLoginClicked();
void onRegisterClicked();
private:
QLineEdit* m_usernameEdit;
QLineEdit* m_passwordEdit;
QPushButton* m_loginBtn;
QPushButton* m_registerBtn;
QLabel* m_messageLabel;
QString m_username;
QString m_role;
bool isRegistering;
};
#endif