#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 void keyPressEvent(QKeyEvent *); void inputMethodEvent(QInputMethodEvent* event); QChar m_strInputPass[MAX_PASSWORD+1]; public: explicit ServicePassInputDlg(QWidget *parent = 0); ~ServicePassInputDlg(); private slots: void on_ctrBtnOk_clicked(); void on_ctrBtnCancel_clicked(); private: Ui::ServicePassInputDlg *ui; int m_nCurInputCount; }; #endif // SERVICEPASSINPUTDLG_H