summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/oscar/liboscar/ssiauthtask.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/oscar/liboscar/ssiauthtask.cpp')
-rw-r--r--kopete/protocols/oscar/liboscar/ssiauthtask.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/oscar/liboscar/ssiauthtask.cpp b/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
index 59188d2b..bccb754e 100644
--- a/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
+++ b/kopete/protocols/oscar/liboscar/ssiauthtask.cpp
@@ -86,7 +86,7 @@ bool SSIAuthTask::take( Transfer* t )
return false;
}
-void SSIAuthTask::grantFutureAuth( const QString& uin, const QString& reason )
+void SSIAuthTask::grantFutureAuth( const TQString& uin, const TQString& reason )
{
FLAP f = { 0x02, 0, 0 };
SNAC s = { 0x0013, 0x0014, 0x0000, client()->snacSequence() };
@@ -100,7 +100,7 @@ void SSIAuthTask::grantFutureAuth( const QString& uin, const QString& reason )
send( t );
}
-void SSIAuthTask::sendAuthRequest( const QString& uin, const QString& reason )
+void SSIAuthTask::sendAuthRequest( const TQString& uin, const TQString& reason )
{
FLAP f = { 0x02, 0, 0 };
SNAC s = { 0x0013, 0x0018, 0x0000, client()->snacSequence() };
@@ -114,7 +114,7 @@ void SSIAuthTask::sendAuthRequest( const QString& uin, const QString& reason )
send( t );
}
-void SSIAuthTask::sendAuthReply( const QString& uin, const QString& reason, bool auth )
+void SSIAuthTask::sendAuthReply( const TQString& uin, const TQString& reason, bool auth )
{
FLAP f = { 0x02, 0, 0 };
SNAC s = { 0x0013, 0x001A, 0x0000, client()->snacSequence() };
@@ -132,38 +132,38 @@ void SSIAuthTask::handleFutureAuthGranted()
{
Buffer* buf = transfer()->buffer();
- QString uin = Oscar::normalize( buf->getBUIN() );
- QByteArray reason = buf->getBSTR();
+ TQString uin = Oscar::normalize( buf->getBUIN() );
+ TQByteArray reason = buf->getBSTR();
buf->getWord(); // 0x0000 - Unknown
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Future authorization granted from " << uin << endl;
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Reason: " << reason << endl;
- emit futureAuthGranted( uin, QString::fromUtf8( reason.data(), reason.size() ) );
+ emit futureAuthGranted( uin, TQString::fromUtf8( reason.data(), reason.size() ) );
}
void SSIAuthTask::handleAuthRequested()
{
Buffer* buf = transfer()->buffer();
- QString uin = Oscar::normalize( buf->getBUIN() );
- QByteArray reason = buf->getBSTR();
+ TQString uin = Oscar::normalize( buf->getBUIN() );
+ TQByteArray reason = buf->getBSTR();
buf->getWord(); // 0x0000 - Unknown
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Authorization requested from " << uin << endl;
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Reason: " << reason << endl;
- emit authRequested( uin, QString::fromUtf8( reason.data(), reason.size() ) );
+ emit authRequested( uin, TQString::fromUtf8( reason.data(), reason.size() ) );
}
void SSIAuthTask::handleAuthReplied()
{
Buffer* buf = transfer()->buffer();
- QString uin = Oscar::normalize( buf->getBUIN() );
+ TQString uin = Oscar::normalize( buf->getBUIN() );
bool accepted = buf->getByte();
- QByteArray reason = buf->getBSTR();
+ TQByteArray reason = buf->getBSTR();
if ( accepted )
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Authorization request accepted by " << uin << endl;
@@ -171,14 +171,14 @@ void SSIAuthTask::handleAuthReplied()
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Authorization request declined by " << uin << endl;
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Reason: " << reason << endl;
- emit authReplied( uin, QString::fromUtf8( reason.data(), reason.size() ), accepted );
+ emit authReplied( uin, TQString::fromUtf8( reason.data(), reason.size() ), accepted );
}
void SSIAuthTask::handleAddedMessage()
{
Buffer* buf = transfer()->buffer();
- QString uin = Oscar::normalize( buf->getBUIN() );
+ TQString uin = Oscar::normalize( buf->getBUIN() );
kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "User " << uin << " added you to the contact list" << endl;
emit contactAddedYou( uin );