You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
dp4-uos/dp4-login-plugin/dp4loginwidget.h

46 lines
1.2 KiB

#ifndef DP4LOGINWIDGET_H
#define DP4LOGINWIDGET_H
#include <QWidget>
namespace dss {
namespace module {
struct AuthCallbackData;
struct LoginCallBack;
struct AuthCallbackData;
}
};
class Dp4LoginWidget : public QWidget
{
Q_OBJECT
public:
explicit Dp4LoginWidget(QWidget *parent = nullptr);
~Dp4LoginWidget() override;
void setCallback(dss::module::LoginCallBack *callback);
void updateAuthenResult(int type, int state);
void setMessage(const QString &type, const QString &message);
void setCurrentAccount(const QString &accountName, const QString &fullname, const QString &avatar);
private:
void Logon();
void ResetPassword();
void initUi();
bool eventFilter(QObject *watchd, QEvent *event) override;
private:
QWidget *m_topWidget;
class QLabel *m_labelImage;
QLabel *m_labelOtherUser;
QLabel *m_labelText;
class QVBoxLayout *m_layout;
class QComboBox *m_environment;
class QLineEdit *m_username;
class QLineEdit *m_password;
class QPushButton *m_pbForgetPassword;
struct dss::module::LoginCallBack *m_callback;
struct dss::module::AuthCallbackData *m_callbackData;
};
#endif // TESTWIDGET_H