| 1 | /* |
|---|
| 2 | * This file is part of Licq, an instant messaging client for UNIX. |
|---|
| 3 | * Copyright (C) 1999-2006 Licq developers |
|---|
| 4 | * |
|---|
| 5 | * Licq is free software; you can redistribute it and/or modify |
|---|
| 6 | * it under the terms of the GNU General Public License as published by |
|---|
| 7 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | * (at your option) any later version. |
|---|
| 9 | * |
|---|
| 10 | * Licq is distributed in the hope that it will be useful, |
|---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | * GNU General Public License for more details. |
|---|
| 14 | * |
|---|
| 15 | * You should have received a copy of the GNU General Public License |
|---|
| 16 | * along with Licq; if not, write to the Free Software |
|---|
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 18 | */ |
|---|
| 19 | |
|---|
| 20 | #ifndef REGISTERUSER_H |
|---|
| 21 | #define REGISTERUSER_H |
|---|
| 22 | |
|---|
| 23 | #include "config.h" |
|---|
| 24 | |
|---|
| 25 | #include <QWizard> |
|---|
| 26 | |
|---|
| 27 | class QCheckBox; |
|---|
| 28 | class QLabel; |
|---|
| 29 | class QLineEdit; |
|---|
| 30 | class QWizardPage; |
|---|
| 31 | |
|---|
| 32 | namespace LicqQtGui |
|---|
| 33 | { |
|---|
| 34 | class RegisterUserDlg : public QWizard |
|---|
| 35 | { |
|---|
| 36 | Q_OBJECT |
|---|
| 37 | |
|---|
| 38 | public: |
|---|
| 39 | RegisterUserDlg(QWidget* parent = NULL); |
|---|
| 40 | ~RegisterUserDlg(); |
|---|
| 41 | |
|---|
| 42 | virtual bool validateCurrentPage(); |
|---|
| 43 | |
|---|
| 44 | signals: |
|---|
| 45 | void signal_done(bool success, QString id, unsigned long ppid); |
|---|
| 46 | |
|---|
| 47 | private: |
|---|
| 48 | void createIntroPage(); |
|---|
| 49 | void createPasswordPage(); |
|---|
| 50 | void createCaptchaPage(); |
|---|
| 51 | void createResultPage(); |
|---|
| 52 | |
|---|
| 53 | bool myGotCaptcha; |
|---|
| 54 | bool myGotOwner; |
|---|
| 55 | |
|---|
| 56 | bool mySuccess; |
|---|
| 57 | QString myId; |
|---|
| 58 | unsigned long myPpid; |
|---|
| 59 | |
|---|
| 60 | QWizardPage* myIntroPage; |
|---|
| 61 | QWizardPage* myPasswordPage; |
|---|
| 62 | QWizardPage* myCaptchaPage; |
|---|
| 63 | QWizardPage* myResultPage; |
|---|
| 64 | |
|---|
| 65 | QLineEdit* myPasswordField; |
|---|
| 66 | QLineEdit* myVerifyField; |
|---|
| 67 | QCheckBox* mySavePassword; |
|---|
| 68 | QLabel* myCaptchaImage; |
|---|
| 69 | QLineEdit* myCaptchaField; |
|---|
| 70 | QLineEdit* myOwnerIdField; |
|---|
| 71 | |
|---|
| 72 | private slots: |
|---|
| 73 | void gotCaptcha(unsigned long ppid); |
|---|
| 74 | void gotNewOwner(QString id, unsigned long ppid); |
|---|
| 75 | }; |
|---|
| 76 | |
|---|
| 77 | } // namespace LicqQtGui |
|---|
| 78 | |
|---|
| 79 | #endif |
|---|