summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/aim/aimprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/oscar/aim/aimprotocol.cpp')
-rw-r--r--kopete/protocols/oscar/aim/aimprotocol.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/oscar/aim/aimprotocol.cpp b/kopete/protocols/oscar/aim/aimprotocol.cpp
index 0808fde9..b3d4205f 100644
--- a/kopete/protocols/oscar/aim/aimprotocol.cpp
+++ b/kopete/protocols/oscar/aim/aimprotocol.cpp
@@ -81,54 +81,54 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
TQString command = url.path();
TQString realCommand, firstParam, secondParam;
bool needContactAddition = false;
- if ( command.tqfind( "goim", 0, false ) != -1 )
+ if ( command.find( "goim", 0, false ) != -1 )
{
realCommand = "goim";
kdDebug(14152) << k_funcinfo << "Handling send IM request" << endl;
command.remove(0,4);
- if ( command.tqfind( "?screenname=", 0, false ) == -1 )
+ if ( command.find( "?screenname=", 0, false ) == -1 )
{
kdWarning(14152) << k_funcinfo << "Unhandled AIM URI:" << url.url() << endl;
return;
}
command.remove( 0, 12 );
- int andSign = command.tqfind( "&" );
+ int andSign = command.find( "&" );
if ( andSign > 0 )
command = command.left( andSign );
firstParam = command;
- firstParam.tqreplace( "+", " " );
+ firstParam.replace( "+", " " );
needContactAddition = true;
}
else
- if ( command.tqfind( "addbuddy", 0, false ) != -1 )
+ if ( command.find( "addbuddy", 0, false ) != -1 )
{
realCommand = "addbuddy";
kdDebug(14152) << k_funcinfo << "Handling AIM add buddy request" << endl;
command.remove( 0, 8 );
- if ( command.tqfind( "?screenname=", 0, false ) == -1 )
+ if ( command.find( "?screenname=", 0, false ) == -1 )
{
kdWarning(14152) << k_funcinfo << "Unhandled AIM URI:" << url.url() << endl;
return;
}
command.remove(0, 12);
- int andSign = command.tqfind("&");
+ int andSign = command.find("&");
if ( andSign > 0 )
command = command.left(andSign);
- command.tqreplace("+", " ");
+ command.replace("+", " ");
firstParam = command;
needContactAddition = true;
}
else
- if ( command.tqfind( "gochat", 0, false ) != -1 )
+ if ( command.find( "gochat", 0, false ) != -1 )
{
realCommand = "gochat";
kdDebug(14152) << k_funcinfo << "Handling AIM chat room request" << endl;
command.remove( 0, 6 );
- if ( command.tqfind( "?RoomName=", 0, false ) == -1 )
+ if ( command.find( "?RoomName=", 0, false ) == -1 )
{
kdWarning(14152) << "Unhandled AIM URI: " << url.url() << endl;
return;
@@ -136,7 +136,7 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
command.remove( 0, 10 );
- int andSign = command.tqfind("&");
+ int andSign = command.find("&");
if (andSign > 0) // strip off anything else for now
{
firstParam = command.left(andSign);
@@ -146,7 +146,7 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
command.remove( 0, 10 ); //remove "&Exchange="
secondParam = command;
kdDebug(14152) << k_funcinfo << firstParam << " " << secondParam << endl;
- firstParam.tqreplace("+", " ");
+ firstParam.replace("+", " ");
}
Kopete::Account *account = 0;
@@ -283,7 +283,7 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac
uint ssiGid = 0, ssiBid = 0, ssiType = 0xFFFF;
TQString ssiName;
bool ssiWaitingAuth = false;
- if ( serializedData.tqcontains( "ssi_type" ) )
+ if ( serializedData.contains( "ssi_type" ) )
{
ssiName = serializedData["ssi_name"];
TQString authtqStatus = serializedData["ssi_waitingAuth"];