1 // 2 // Copyright (C) 2003 Grzegorz Jaskiewicz <gj at pointblue.com.pl> 3 // 4 // gaduregisteraccount.h 5 // 6 // This program is free software; you can redistribute it and/or 7 // modify it under the terms of the GNU General Public License 8 // as published by the Free Software Foundation; either version 2 9 // of the License, or (at your option) any later version. 10 // 11 // This program is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with this program; if not, write to the Free Software 18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 // 02110-1301, USA. 20 21 #ifndef GADUREGISTERACCOUNT_H 22 #define GADUREGISTERACCOUNT_H 23 24 #include <kdialog.h> 25 #include <QPixmap> 26 27 class QString; 28 class QPixmap; 29 class RegisterCommand; 30 class QRegExp; 31 namespace Ui { 32 class GaduRegisterAccountUI; 33 } 34 35 class GaduRegisterAccount : public KDialog 36 { 37 Q_OBJECT 38 39 public: 40 GaduRegisterAccount(QWidget * = 0); 41 ~GaduRegisterAccount(); 42 43 signals: 44 void registeredNumber(unsigned int, QString); 45 46 protected slots: 47 void slotClose(); 48 void displayToken(QPixmap, QString); 49 void registrationError(const QString &, const QString &); 50 void registrationDone(const QString &, const QString &); 51 void inputChanged(const QString &); 52 void doRegister(); 53 void updateStatus(const QString status); 54 55 private: 56 void validateInput(); 57 58 Ui::GaduRegisterAccountUI *ui; 59 RegisterCommand *cRegister; 60 QRegExp *emailRegexp; 61 QPixmap hintPixmap; 62 }; 63 64 #endif 65