40 lines
663 B
C++
40 lines
663 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QMessageBox>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
|
|
namespace Echoion::Desktop
|
|
{
|
|
|
|
class LoginDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit LoginDialog(QWidget* parent = nullptr);
|
|
|
|
[[nodiscard]] QString getUsername() const;
|
|
[[nodiscard]] QString getPassword() const;
|
|
|
|
private slots:
|
|
void onLoginClicked();
|
|
void onCancelClicked();
|
|
|
|
private:
|
|
|
|
void setupUi();
|
|
|
|
QLineEdit* usernameEdit_;
|
|
QLineEdit* passwordEdit_;
|
|
QPushButton* loginButton_;
|
|
QPushButton* cancelButton_;
|
|
};
|
|
|
|
} // namespace Echoion::Desktop
|