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.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kopete/protocols/oscar/aim/aimprotocol.cpp b/kopete/protocols/oscar/aim/aimprotocol.cpp
index 779c63c8..0808fde9 100644
--- a/kopete/protocols/oscar/aim/aimprotocol.cpp
+++ b/kopete/protocols/oscar/aim/aimprotocol.cpp
@@ -46,7 +46,7 @@ AIMProtocol* AIMProtocol::protocolStatic_ = 0L;
AIMProtocolHandler::AIMProtocolHandler() : Kopete::MimeTypeHandler(false)
{
- registerAsProtocolHandler(TQString::fromLatin1("aim"));
+ registerAsProtocolHandler(TQString::tqfromLatin1("aim"));
}
void AIMProtocolHandler::handleURL(const KURL &url) const
@@ -81,54 +81,54 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
TQString command = url.path();
TQString realCommand, firstParam, secondParam;
bool needContactAddition = false;
- if ( command.find( "goim", 0, false ) != -1 )
+ if ( command.tqfind( "goim", 0, false ) != -1 )
{
realCommand = "goim";
kdDebug(14152) << k_funcinfo << "Handling send IM request" << endl;
command.remove(0,4);
- if ( command.find( "?screenname=", 0, false ) == -1 )
+ if ( command.tqfind( "?screenname=", 0, false ) == -1 )
{
kdWarning(14152) << k_funcinfo << "Unhandled AIM URI:" << url.url() << endl;
return;
}
command.remove( 0, 12 );
- int andSign = command.find( "&" );
+ int andSign = command.tqfind( "&" );
if ( andSign > 0 )
command = command.left( andSign );
firstParam = command;
- firstParam.replace( "+", " " );
+ firstParam.tqreplace( "+", " " );
needContactAddition = true;
}
else
- if ( command.find( "addbuddy", 0, false ) != -1 )
+ if ( command.tqfind( "addbuddy", 0, false ) != -1 )
{
realCommand = "addbuddy";
kdDebug(14152) << k_funcinfo << "Handling AIM add buddy request" << endl;
command.remove( 0, 8 );
- if ( command.find( "?screenname=", 0, false ) == -1 )
+ if ( command.tqfind( "?screenname=", 0, false ) == -1 )
{
kdWarning(14152) << k_funcinfo << "Unhandled AIM URI:" << url.url() << endl;
return;
}
command.remove(0, 12);
- int andSign = command.find("&");
+ int andSign = command.tqfind("&");
if ( andSign > 0 )
command = command.left(andSign);
- command.replace("+", " ");
+ command.tqreplace("+", " ");
firstParam = command;
needContactAddition = true;
}
else
- if ( command.find( "gochat", 0, false ) != -1 )
+ if ( command.tqfind( "gochat", 0, false ) != -1 )
{
realCommand = "gochat";
kdDebug(14152) << k_funcinfo << "Handling AIM chat room request" << endl;
command.remove( 0, 6 );
- if ( command.find( "?RoomName=", 0, false ) == -1 )
+ if ( command.tqfind( "?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.find("&");
+ int andSign = command.tqfind("&");
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.replace("+", " ");
+ firstParam.tqreplace("+", " ");
}
Kopete::Account *account = 0;
@@ -189,8 +189,8 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
}
if (KMessageBox::questionYesNo(Kopete::UI::Global::mainWidget(),
- i18n("Do you want to add '%1' to your contact list?").arg(command),
- TQString::null, i18n("Add"), i18n("Do Not Add"))
+ i18n("Do you want to add '%1' to your contact list?").tqarg(command),
+ TQString(), i18n("Add"), i18n("Do Not Add"))
!= KMessageBox::Yes)
{
kdDebug(14152) << k_funcinfo << "Cancelled" << endl;
@@ -212,8 +212,8 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
else
KMessageBox::sorry( Kopete::UI::Global::mainWidget(),
i18n( "Unable to connect to the chat room %1 because the account"
- " for %2 is not connected." ).arg( firstParam ).arg( aimAccount->accountId() ),
- TQString::null );
+ " for %2 is not connected." ).tqarg( firstParam ).tqarg( aimAccount->accountId() ),
+ TQString() );
}
@@ -227,10 +227,10 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
-AIMProtocol::AIMProtocol(TQObject *parent, const char *name, const TQStringList &)
- : Kopete::Protocol( AIMProtocolFactory::instance(), parent, name ),
- statusOnline( Kopete::OnlineStatus::Online, 2, this, 0, TQString::null, i18n("Online"), i18n("Online"), Kopete::OnlineStatusManager::Online ),
- statusOffline( Kopete::OnlineStatus::Offline, 2, this, 10, TQString::null, i18n("Offline"), i18n("Offline"), Kopete::OnlineStatusManager::Offline ),
+AIMProtocol::AIMProtocol(TQObject *tqparent, const char *name, const TQStringList &)
+ : Kopete::Protocol( AIMProtocolFactory::instance(), tqparent, name ),
+ statusOnline( Kopete::OnlineStatus::Online, 2, this, 0, TQString(), i18n("Online"), i18n("Online"), Kopete::OnlineStatusManager::Online ),
+ statusOffline( Kopete::OnlineStatus::Offline, 2, this, 10, TQString(), i18n("Offline"), i18n("Offline"), Kopete::OnlineStatusManager::Offline ),
statusAway( Kopete::OnlineStatus::Away, 2, this, 20, "contact_away_overlay", i18n("Away"), i18n("Away"), Kopete::OnlineStatusManager::Away,
Kopete::OnlineStatusManager::HasAwayMessage ),
statusWirelessOnline( Kopete::OnlineStatus::Online, 1, this, 30, "contact_phone_overlay", i18n("Mobile"), i18n("Mobile"),
@@ -241,7 +241,7 @@ AIMProtocol::AIMProtocol(TQObject *parent, const char *name, const TQStringList
awayMessage(Kopete::Global::Properties::self()->awayMessage()),
clientFeatures("clientFeatures", i18n("Client Features"), 0, false),
clientProfile( "clientProfile", i18n( "User Profile"), 0, false, true),
- iconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString::null, true, false, true)
+ iconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString(), true, false, true)
{
if (protocolStatic_)
kdDebug(14152) << k_funcinfo << "AIM plugin already initialized" << endl;
@@ -283,11 +283,11 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac
uint ssiGid = 0, ssiBid = 0, ssiType = 0xFFFF;
TQString ssiName;
bool ssiWaitingAuth = false;
- if ( serializedData.contains( "ssi_type" ) )
+ if ( serializedData.tqcontains( "ssi_type" ) )
{
ssiName = serializedData["ssi_name"];
- TQString authStatus = serializedData["ssi_waitingAuth"];
- if ( authStatus == "true" )
+ TQString authtqStatus = serializedData["ssi_waitingAuth"];
+ if ( authtqStatus == "true" )
ssiWaitingAuth = true;
ssiGid = serializedData["ssi_gid"].toUInt();
ssiBid = serializedData["ssi_bid"].toUInt();
@@ -297,18 +297,18 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac
Oscar::SSI item( ssiName, ssiGid, ssiBid, ssiType, TQValueList<TLV>(), 0 );
item.setWaitingAuth( ssiWaitingAuth );
- AIMContact *c = new AIMContact( account, contactId, metaContact, TQString::null, item );
+ AIMContact *c = new AIMContact( account, contactId, metaContact, TQString(), item );
return c;
}
-AddContactPage *AIMProtocol::createAddContactWidget(TQWidget *parent, Kopete::Account *account)
+AddContactPage *AIMProtocol::createAddContactWidget(TQWidget *tqparent, Kopete::Account *account)
{
- return ( new AIMAddContactPage( account->isConnected(), parent ) );
+ return ( new AIMAddContactPage( account->isConnected(), tqparent ) );
}
-KopeteEditAccountWidget *AIMProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *parent)
+KopeteEditAccountWidget *AIMProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *tqparent)
{
- return ( new AIMEditAccountWidget( this, account, parent ) );
+ return ( new AIMEditAccountWidget( this, account, tqparent ) );
}
Kopete::Account *AIMProtocol::createNewAccount(const TQString &accountId)