summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp b/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp
index 56834a83..1c9528ff 100644
--- a/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp
+++ b/kopete/protocols/yahoo/libkyahoo/yahoochattask.cpp
@@ -25,7 +25,7 @@
#include <kio/global.h>
#include <kio/job.h>
#include <kio/jobclasses.h>
-#include <qdom.h>
+#include <tqdom.h>
YahooChatTask::YahooChatTask(Task* parent) : Task(parent)
{
@@ -95,11 +95,11 @@ void YahooChatTask::getYahooChatCategories()
transfer->addMetaData( "UserAgent", "Mozilla/4.0 (compatible; MSIE 5.5)");
transfer->addMetaData( "no-cache", "true" );
transfer->addMetaData( "cookies", "manual" );
- transfer->addMetaData("setcookies", QString("Cookie: %1; %2; %3").arg(client()->tCookie(), client()->yCookie()) );
+ transfer->addMetaData("setcookies", TQString("Cookie: %1; %2; %3").arg(client()->tCookie(), client()->yCookie()) );
- connect( transfer, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotCategoriesComplete( KIO::Job* ) ) );
- connect( transfer, SIGNAL( data( KIO::Job*, const QByteArray& ) ), this, SLOT( slotData( KIO::Job*, const QByteArray& ) ) );
+ connect( transfer, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotCategoriesComplete( KIO::Job* ) ) );
+ connect( transfer, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray& ) ) );
}
void YahooChatTask::getYahooChatRooms( const Yahoo::ChatCategory &category )
@@ -107,20 +107,20 @@ void YahooChatTask::getYahooChatRooms( const Yahoo::ChatCategory &category )
kdDebug(YAHOO_RAW_DEBUG) << "Category Id: " << category.id << endl;
KIO::TransferJob *transfer;
- transfer = KIO::get( KURL(QString("http://insider.msg.yahoo.com/ycontent/?chatroom_%1=0").arg( category.id )), false, false );
+ transfer = KIO::get( KURL(TQString("http://insider.msg.yahoo.com/ycontent/?chatroom_%1=0").arg( category.id )), false, false );
transfer->addMetaData( "UserAgent", "Mozilla/4.0 (compatible; MSIE 5.5)");
transfer->addMetaData( "no-cache", "true" );
transfer->addMetaData( "cookies", "manual" );
- transfer->addMetaData("setcookies", QString("Cookie: %1; %2; %3").arg(client()->tCookie(), client()->yCookie()) );
+ transfer->addMetaData("setcookies", TQString("Cookie: %1; %2; %3").arg(client()->tCookie(), client()->yCookie()) );
- connect( transfer, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotChatRoomsComplete( KIO::Job* ) ) );
- connect( transfer, SIGNAL( data( KIO::Job*, const QByteArray& ) ), this, SLOT( slotData( KIO::Job*, const QByteArray& ) ) );
+ connect( transfer, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotChatRoomsComplete( KIO::Job* ) ) );
+ connect( transfer, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray& ) ) );
m_jobs[ transfer ].category = category;
}
-void YahooChatTask::slotData( KIO::Job *job, const QByteArray& data)
+void YahooChatTask::slotData( KIO::Job *job, const TQByteArray& data)
{
kdDebug(YAHOO_RAW_DEBUG) ;
// FIXME (same)
@@ -139,7 +139,7 @@ void YahooChatTask::slotCategoriesComplete( KIO::Job *job )
}
else
{
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent( m_jobs[ transfer ].data );
emit gotYahooChatCategories( doc );
}
@@ -159,7 +159,7 @@ void YahooChatTask::slotChatRoomsComplete( KIO::Job *job )
}
else
{
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent( m_jobs[ transfer ].data );
// kdDebug(YAHOO_RAW_DEBUG) << doc.toString();
emit gotYahooChatRooms( m_jobs[ transfer ].category, doc );
@@ -188,7 +188,7 @@ void YahooChatTask::joinRoom( const Yahoo::ChatRoom &room )
send( t );
}
-void YahooChatTask::sendYahooChatMessage( const QString &msg, const QString &handle )
+void YahooChatTask::sendYahooChatMessage( const TQString &msg, const TQString &handle )
{
kdDebug(YAHOO_RAW_DEBUG) ;
if( !m_loggedIn )
@@ -214,7 +214,7 @@ void YahooChatTask::login()
YMSGTransfer *t = new YMSGTransfer(Yahoo::ServiceChatOnline);
t->setId( client()->sessionID() );
t->setParam( 1, client()->userId().local8Bit() );
- t->setParam( 135, QString("ym%1").arg(YMSG_PROGRAM_VERSION_STRING).local8Bit() );
+ t->setParam( 135, TQString("ym%1").arg(YMSG_PROGRAM_VERSION_STRING).local8Bit() );
send( t );
}
@@ -232,11 +232,11 @@ void YahooChatTask::logout()
void YahooChatTask::parseLoginResponse( YMSGTransfer *t )
{
- if( !QString(t->firstParam( 1 )).startsWith( client()->userId().local8Bit() ) )
+ if( !TQString(t->firstParam( 1 )).startsWith( client()->userId().local8Bit() ) )
return;
m_loggedIn = true;
- QValueList< Yahoo::ChatRoom >::iterator it;
+ TQValueList< Yahoo::ChatRoom >::iterator it;
for ( it = m_pendingJoins.begin(); it != m_pendingJoins.end(); ++it )
//for( int i = 0; i < m_pendingJoins.size(); ++i )
{
@@ -255,10 +255,10 @@ void YahooChatTask::parseJoin( YMSGTransfer *t )
{
int room;
int category;
- QString handle;
- QString comment;
+ TQString handle;
+ TQString comment;
bool suppressJoinNotification = false;
- QString error;
+ TQString error;
room = t->firstParam( 129 ).toInt();
category = t->firstParam( 128 ).toInt();
@@ -296,7 +296,7 @@ void YahooChatTask::parseJoin( YMSGTransfer *t )
emit chatRoomJoined( room, category, comment, handle );
}
- QString nick;
+ TQString nick;
for( int i = 0; i < t->paramCount( 109 ); ++i )
{
nick = t->nthParam( 109 , i );
@@ -308,9 +308,9 @@ void YahooChatTask::parseChatMessage( YMSGTransfer *t )
{
kdDebug(YAHOO_RAW_DEBUG) ;
- QString handle;
- QString msg;
- QString nick;
+ TQString handle;
+ TQString msg;
+ TQString nick;
handle = t->firstParam( 104 );
for( int i = 0; i < t->paramCount( 109 ); ++i )
@@ -325,8 +325,8 @@ void YahooChatTask::parseChatExit( YMSGTransfer *t )
{
kdDebug(YAHOO_RAW_DEBUG) ;
- QString handle;
- QString nick;
+ TQString handle;
+ TQString nick;
handle = t->firstParam( 104 );
for( int i = 0; i < t->paramCount( 109 ); ++i )
@@ -340,7 +340,7 @@ void YahooChatTask::parseLogout( YMSGTransfer *t )
{
kdDebug(YAHOO_RAW_DEBUG) ;
- QString nick = t->firstParam( 1 );
+ TQString nick = t->firstParam( 1 );
if( nick == client()->userId() )
m_loggedIn = false;
}