#ifndef SERVICEPASSINPUTDLG_H #define SERVICEPASSINPUTDLG_H #include #include #define PASS_WORD "00000000" #define MAX_PASSWORD 8 namespace Ui { class ServicePassInputDlg; } class ServicePassInputDlg : public QDialog { Q_OBJECT QChar m_strInputPass[MAX_PASSWORD+1]; public: explicit ServicePassInputDlg(QWidget *parent = 0); ~ServicePassInputDlg(); private slots: void on_ctrBtnOk_clicked(); void on_ctrBtnCancel_clicked(); void keyCancel_clicked(); void keyEnter_clicked(); void backspaceKeyPressEvent(); void keyboardInputEvent(QString strIn); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private: Ui::ServicePassInputDlg *ui; int m_nCurInputCount; }; #endif // SERVICEPASSINPUTDLG_H