summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu/gaducommands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/gadu/gaducommands.cpp')
-rw-r--r--kopete/protocols/gadu/gaducommands.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kopete/protocols/gadu/gaducommands.cpp b/kopete/protocols/gadu/gaducommands.cpp
index 00a571ff..2be539c0 100644
--- a/kopete/protocols/gadu/gaducommands.cpp
+++ b/kopete/protocols/gadu/gaducommands.cpp
@@ -27,18 +27,18 @@
#include "gaducommands.h"
#include "gadusession.h"
-#include <qsocketnotifier.h>
-#include <qregexp.h>
-#include <qtextcodec.h>
-#include <qimage.h>
+#include <tqsocketnotifier.h>
+#include <tqregexp.h>
+#include <tqtextcodec.h>
+#include <tqimage.h>
#include <klocale.h>
#include <kdebug.h>
#include <errno.h>
-GaduCommand::GaduCommand( QObject* parent, const char* name )
-: QObject( parent, name ), read_( 0 ), write_( 0 )
+GaduCommand::GaduCommand( TQObject* parent, const char* name )
+: TQObject( parent, name ), read_( 0 ), write_( 0 )
{
}
@@ -57,13 +57,13 @@ GaduCommand::done() const
void
GaduCommand::checkSocket( int fd, int checkWhat )
{
- read_ = new QSocketNotifier( fd, QSocketNotifier::Read, this );
+ read_ = new TQSocketNotifier( fd, TQSocketNotifier::Read, this );
read_->setEnabled( false );
- QObject::connect( read_, SIGNAL( activated(int) ), SLOT( forwarder() ) );
+ TQObject::connect( read_, TQT_SIGNAL( activated(int) ), TQT_SLOT( forwarder() ) );
- write_ = new QSocketNotifier( fd, QSocketNotifier::Write, this );
+ write_ = new TQSocketNotifier( fd, TQSocketNotifier::Write, this );
write_->setEnabled( false );
- QObject::connect( write_, SIGNAL( activated(int) ), SLOT( forwarder() ) );
+ TQObject::connect( write_, TQT_SIGNAL( activated(int) ), TQT_SLOT( forwarder() ) );
enableNotifiers( checkWhat );
}
@@ -114,12 +114,12 @@ GaduCommand::forwarder()
emit socketReady();
}
-RegisterCommand::RegisterCommand( QObject* parent, const char* name )
+RegisterCommand::RegisterCommand( TQObject* parent, const char* name )
:GaduCommand( parent, name ), state( RegisterStateNoToken ), session_( 0 ), uin( 0 )
{
}
-RegisterCommand::RegisterCommand( const QString& email, const QString& password, QObject* parent, const char* name )
+RegisterCommand::RegisterCommand( const TQString& email, const TQString& password, TQObject* parent, const char* name )
:GaduCommand( parent, name ), state( RegisterStateNoToken ), email_( email ), password_( password ), session_( 0 ), uin( 0 )
{
}
@@ -148,14 +148,14 @@ RegisterCommand::requestToken()
return;
}
- connect( this, SIGNAL( socketReady() ), SLOT( watcher() ) );
+ connect( this, TQT_SIGNAL( socketReady() ), TQT_SLOT( watcher() ) );
checkSocket( session_->fd, session_->check );
return;
}
void
-RegisterCommand::setUserinfo( const QString& email, const QString& password, const QString& token )
+RegisterCommand::setUserinfo( const TQString& email, const TQString& password, const TQString& token )
{
email_ = email;
password_ = password;
@@ -184,7 +184,7 @@ RegisterCommand::execute()
return;
}
state = RegisterStateWaitingForNumber;
- connect( this, SIGNAL( socketReady() ), SLOT( watcher() ) );
+ connect( this, TQT_SIGNAL( socketReady() ), TQT_SLOT( watcher() ) );
checkSocket( session_->fd, session_->check );
}
@@ -225,7 +225,7 @@ void RegisterCommand::watcher()
kdDebug( 14100 ) << "got Token!, ID: " << tokenId << endl;
deleteNotifiers();
if ( pubDir->success ) {
- QPixmap tokenImg;
+ TQPixmap tokenImg;
tokenImg.loadFromData( (const unsigned char *)session_->body, session_->body_size );
state = RegisterStateGotToken;
emit tokenRecieved( tokenImg, tokenId );
@@ -237,7 +237,7 @@ void RegisterCommand::watcher()
}
gg_token_free( session_ );
session_ = NULL;
- disconnect( this, SLOT( watcher() ) );
+ disconnect( this, TQT_SLOT( watcher() ) );
return;
break;
}
@@ -283,7 +283,7 @@ void RegisterCommand::watcher()
}
gg_free_register( session_ );
session_ = NULL;
- disconnect( this, SLOT( watcher() ) );
+ disconnect( this, TQT_SLOT( watcher() ) );
deleteLater();
return;
break;
@@ -293,12 +293,12 @@ void RegisterCommand::watcher()
}
}
-RemindPasswordCommand::RemindPasswordCommand( QObject* parent, const char* name )
+RemindPasswordCommand::RemindPasswordCommand( TQObject* parent, const char* name )
: GaduCommand( parent, name ), uin_( 0 ), session_( 0 )
{
}
-RemindPasswordCommand::RemindPasswordCommand( uin_t uin, QObject* parent, const char* name )
+RemindPasswordCommand::RemindPasswordCommand( uin_t uin, TQObject* parent, const char* name )
: GaduCommand( parent, name ), uin_( uin ), session_( 0 )
{
}
@@ -341,7 +341,7 @@ RemindPasswordCommand::watcher()
if ( session_->state == GG_STATE_DONE ) {
struct gg_pubdir* p = static_cast<struct gg_pubdir*>( session_->data );
- QString finished = (p->success) ? i18n( "Successfully" ) : i18n( "Unsuccessful. Please retry." );
+ TQString finished = (p->success) ? i18n( "Successfully" ) : i18n( "Unsuccessful. Please retry." );
emit done( i18n( "Remind Password" ), i18n( "Remind password finished: " ) + finished );
gg_free_remind_passwd( session_ );
done_ = true;
@@ -351,7 +351,7 @@ RemindPasswordCommand::watcher()
enableNotifiers( session_->check );
}
-ChangePasswordCommand::ChangePasswordCommand( QObject* parent, const char* name )
+ChangePasswordCommand::ChangePasswordCommand( TQObject* parent, const char* name )
: GaduCommand( parent, name ), session_( 0 )
{
}
@@ -361,7 +361,7 @@ ChangePasswordCommand::~ChangePasswordCommand()
}
void
-ChangePasswordCommand::setInfo( uin_t uin, const QString& passwd, const QString& newpasswd, const QString& newemail )
+ChangePasswordCommand::setInfo( uin_t uin, const TQString& passwd, const TQString& newpasswd, const TQString& newemail )
{
uin_ = uin;
passwd_ = passwd;