2021-08-30 20:31:33 +02:00
|
|
|
#ifndef AUTHENTICATIONWIDGET_H
|
|
|
|
#define AUTHENTICATIONWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QLineEdit>
|
2021-09-20 21:58:08 +02:00
|
|
|
#include "passwordedit.h"
|
2021-08-30 20:31:33 +02:00
|
|
|
|
|
|
|
class AuthenticationWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
AuthenticationWidget(QWidget *parent = 0);
|
|
|
|
|
|
|
|
QString username() const {return _username->text();}
|
|
|
|
QString password() const {return _password->text();}
|
|
|
|
|
|
|
|
void setUsername(const QString &username) {_username->setText(username);}
|
|
|
|
void setPassword(const QString &password) {_password->setText(password);}
|
|
|
|
|
|
|
|
private:
|
2021-09-20 21:58:08 +02:00
|
|
|
QLineEdit *_username;
|
|
|
|
PasswordEdit *_password;
|
2021-08-30 20:31:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AUTHENTICATIONWIDGET_H
|