#ifndef DP4LOGINWIDGET_H #define DP4LOGINWIDGET_H #include "login_module_interface_v2.h" #include namespace dss { namespace module_v2 { struct AuthCallbackData; struct LoginCallBack; struct AuthCallbackData; } }; class Dp4LoginWidget : public QWidget { Q_OBJECT public: explicit Dp4LoginWidget(QWidget *parent = nullptr); ~Dp4LoginWidget() override; void updateAuthenResult(int type, int state); void setAccountError(); void setCurrentAccount(const QString &accountName, const QString &fullname, const QString &avatar); void reset(); signals: void requestSendAuthen(const QString &account, const QString &token); 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; }; #endif // TESTWIDGET_H