diff options
Diffstat (limited to 'kopete/protocols/gadu/gaduregisteraccount.cpp')
-rw-r--r-- | kopete/protocols/gadu/gaduregisteraccount.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kopete/protocols/gadu/gaduregisteraccount.cpp b/kopete/protocols/gadu/gaduregisteraccount.cpp index 92126cb5..b2ee0bc1 100644 --- a/kopete/protocols/gadu/gaduregisteraccount.cpp +++ b/kopete/protocols/gadu/gaduregisteraccount.cpp @@ -19,10 +19,10 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA // 02110-1301, USA. -#include <qstring.h> -#include <qregexp.h> -#include <qpushbutton.h> -#include <qlabel.h> +#include <tqstring.h> +#include <tqregexp.h> +#include <tqpushbutton.h> +#include <tqlabel.h> #include <klineedit.h> #include <kmessagebox.h> @@ -35,7 +35,7 @@ #include "gaduregisteraccount.h" #include "gaducommands.h" -GaduRegisterAccount::GaduRegisterAccount( QWidget* parent, const char* name ) +GaduRegisterAccount::GaduRegisterAccount( TQWidget* parent, const char* name ) : KDialogBase( parent, name, true, i18n( "Register New Account" ), KDialogBase::User1 | KDialogBase::Ok, KDialogBase::User1, true ) { ui = new GaduRegisterAccountUI( this ); @@ -48,21 +48,21 @@ GaduRegisterAccount::GaduRegisterAccount( QWidget* parent, const char* name ) cRegister = new RegisterCommand( this ); - emailRegexp = new QRegExp( "[\\w\\d.+_-]{1,}@[\\w\\d.-]{1,}" ); + emailRegexp = new TQRegExp( "[\\w\\d.+_-]{1,}@[\\w\\d.-]{1,}" ); hintPixmap = KGlobal::iconLoader()->loadIcon ( "gadu_protocol", KIcon::Small ); - connect( this, SIGNAL( user1Clicked() ), SLOT( doRegister() ) ); - connect( this, SIGNAL( okClicked() ), SLOT( slotClose() ) ); + connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( doRegister() ) ); + connect( this, TQT_SIGNAL( okClicked() ), TQT_SLOT( slotClose() ) ); - connect( ui->valueEmailAddress, SIGNAL( textChanged( const QString &) ), SLOT( inputChanged( const QString & ) ) ); - connect( ui->valuePassword, SIGNAL( textChanged( const QString & ) ), SLOT( inputChanged( const QString & ) ) ); - connect( ui->valuePasswordVerify, SIGNAL( textChanged( const QString & ) ), SLOT( inputChanged( const QString & ) ) ); - connect( ui->valueVerificationSequence, SIGNAL( textChanged( const QString & ) ), SLOT( inputChanged( const QString & ) ) ); + connect( ui->valueEmailAddress, TQT_SIGNAL( textChanged( const TQString &) ), TQT_SLOT( inputChanged( const TQString & ) ) ); + connect( ui->valuePassword, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( inputChanged( const TQString & ) ) ); + connect( ui->valuePasswordVerify, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( inputChanged( const TQString & ) ) ); + connect( ui->valueVerificationSequence, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( inputChanged( const TQString & ) ) ); - connect( cRegister, SIGNAL( tokenRecieved( QPixmap, QString ) ), SLOT( displayToken( QPixmap, QString ) ) ); - connect( cRegister, SIGNAL( done( const QString&, const QString& ) ), SLOT( registrationDone( const QString&, const QString& ) ) ); - connect( cRegister, SIGNAL( error( const QString&, const QString& ) ), SLOT( registrationError( const QString&, const QString& ) ) ); - connect( cRegister, SIGNAL( operationStatus( const QString ) ), SLOT( updateStatus( const QString ) ) ); + connect( cRegister, TQT_SIGNAL( tokenRecieved( TQPixmap, TQString ) ), TQT_SLOT( displayToken( TQPixmap, TQString ) ) ); + connect( cRegister, TQT_SIGNAL( done( const TQString&, const TQString& ) ), TQT_SLOT( registrationDone( const TQString&, const TQString& ) ) ); + connect( cRegister, TQT_SIGNAL( error( const TQString&, const TQString& ) ), TQT_SLOT( registrationError( const TQString&, const TQString& ) ) ); + connect( cRegister, TQT_SIGNAL( operationStatus( const TQString ) ), TQT_SLOT( updateStatus( const TQString ) ) ); updateStatus( i18n( "Retrieving token" ) ); cRegister->requestToken(); @@ -138,13 +138,13 @@ GaduRegisterAccount::validateInput() } void -GaduRegisterAccount::inputChanged( const QString & ) +GaduRegisterAccount::inputChanged( const TQString & ) { validateInput(); } void -GaduRegisterAccount::registrationDone( const QString& /*title*/, const QString& /*what */ ) +GaduRegisterAccount::registrationDone( const TQString& /*title*/, const TQString& /*what */ ) { ui->valueEmailAddress->setDisabled( true ); ui->valuePassword->setDisabled( true ); @@ -156,21 +156,21 @@ GaduRegisterAccount::registrationDone( const QString& /*title*/, const QString ui->labelVerificationSequence->setDisabled( true ); ui->labelInstructions->setDisabled( true ); emit registeredNumber( cRegister->newUin(), ui->valuePassword->text() ); - updateStatus( i18n( "Account created; your new UIN is %1." ).arg(QString::number( cRegister->newUin() ) ) ); + updateStatus( i18n( "Account created; your new UIN is %1." ).arg(TQString::number( cRegister->newUin() ) ) ); enableButton( User1, false ); setButtonText( Ok, i18n( "&Close" ) ); } void -GaduRegisterAccount::registrationError( const QString& title, const QString& what ) +GaduRegisterAccount::registrationError( const TQString& title, const TQString& what ) { updateStatus( i18n( "Registration failed: %1" ).arg( what ) ); KMessageBox::sorry( this, "Registration was unsucessful, please try again.", title ); - disconnect( this, SLOT( displayToken( QPixmap, QString ) ) ); - disconnect( this, SLOT( registrationDone( const QString&, const QString& ) ) ); - disconnect( this, SLOT( registrationError( const QString&, const QString& ) ) ); - disconnect( this, SLOT( updateStatus( const QString ) ) ); + disconnect( this, TQT_SLOT( displayToken( TQPixmap, TQString ) ) ); + disconnect( this, TQT_SLOT( registrationDone( const TQString&, const TQString& ) ) ); + disconnect( this, TQT_SLOT( registrationError( const TQString&, const TQString& ) ) ); + disconnect( this, TQT_SLOT( updateStatus( const TQString ) ) ); ui->valueVerificationSequence->setDisabled( true ); ui->valueVerificationSequence->setText( "" ); @@ -178,13 +178,13 @@ GaduRegisterAccount::registrationError( const QString& title, const QString& w updateStatus( "" ); // emit UIN 0, to enable 'register new account' button again in dialog below - emit registeredNumber( 0, QString( "" ) ); + emit registeredNumber( 0, TQString( "" ) ); deleteLater(); } void -GaduRegisterAccount::displayToken( QPixmap image, QString /*tokenId */ ) +GaduRegisterAccount::displayToken( TQPixmap image, TQString /*tokenId */ ) { ui->valueVerificationSequence->setDisabled( false ); ui->pixmapToken->setPixmap( image ); @@ -192,7 +192,7 @@ GaduRegisterAccount::displayToken( QPixmap image, QString /*tokenId */ ) } void -GaduRegisterAccount::updateStatus( const QString status ) +GaduRegisterAccount::updateStatus( const TQString status ) { ui->labelStatusMessage->setAlignment( AlignCenter ); ui->labelStatusMessage->setText( status ); |