58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
|
|
#ifndef LOGINWIDGET_H
|
||
|
|
#define LOGINWIDGET_H
|
||
|
|
|
||
|
|
#include <QDialog>
|
||
|
|
#include <QTimer>
|
||
|
|
#include "shutdeondialog.h"
|
||
|
|
#include "BLEItem.h"
|
||
|
|
|
||
|
|
class PasswordDialog;
|
||
|
|
namespace Ui {
|
||
|
|
class LoginWidget;
|
||
|
|
}
|
||
|
|
|
||
|
|
class LoginWidget : public QDialog
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit LoginWidget(QDialog *parent = nullptr);
|
||
|
|
~LoginWidget();
|
||
|
|
signals:
|
||
|
|
void signalResult(int);
|
||
|
|
|
||
|
|
signals:
|
||
|
|
void signalCloseApp();
|
||
|
|
void signalCloseWindow();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
virtual void changeEvent(QEvent* event);
|
||
|
|
|
||
|
|
virtual void showEvent(QShowEvent *event);
|
||
|
|
public slots:
|
||
|
|
void slotShowCompleted();
|
||
|
|
void slotCleanTimes();
|
||
|
|
private slots:
|
||
|
|
void on_forgetPassword_Btn_clicked();
|
||
|
|
|
||
|
|
void on_confirm_Btn_clicked();
|
||
|
|
|
||
|
|
void on_userName_LineEdit_textChanged(const QString &arg1);
|
||
|
|
|
||
|
|
void on_password_LineEdit_textChanged(const QString &arg1);
|
||
|
|
|
||
|
|
void on_pushButton_clicked();
|
||
|
|
|
||
|
|
void on_company_Label_clicked();
|
||
|
|
|
||
|
|
private:
|
||
|
|
Ui::LoginWidget *ui;
|
||
|
|
PasswordDialog *passworldDialog;
|
||
|
|
ShutdeonDialog *m_shutdownDialog;
|
||
|
|
QTimer *m_timer;
|
||
|
|
int m_clockTime;
|
||
|
|
BLEItem *m_bleItem;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // LOGINWIDGET_H
|