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.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kopete/protocols/oscar/aim/aimprotocol.cpp b/kopete/protocols/oscar/aim/aimprotocol.cpp
index 9f64fe28..779c63c8 100644
--- a/kopete/protocols/oscar/aim/aimprotocol.cpp
+++ b/kopete/protocols/oscar/aim/aimprotocol.cpp
@@ -15,7 +15,7 @@
*************************************************************************
*/
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kgenericfactory.h>
#include <kmessagebox.h>
#include <kdebug.h>
@@ -46,7 +46,7 @@ AIMProtocol* AIMProtocol::protocolStatic_ = 0L;
AIMProtocolHandler::AIMProtocolHandler() : Kopete::MimeTypeHandler(false)
{
- registerAsProtocolHandler(QString::fromLatin1("aim"));
+ registerAsProtocolHandler(TQString::fromLatin1("aim"));
}
void AIMProtocolHandler::handleURL(const KURL &url) const
@@ -78,8 +78,8 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
AIMProtocol *proto = AIMProtocol::protocol();
kdDebug(14152) << k_funcinfo << "URL url : '" << url.url() << "'" << endl;
kdDebug(14152) << k_funcinfo << "URL path : '" << url.path() << "'" << endl;
- QString command = url.path();
- QString realCommand, firstParam, secondParam;
+ TQString command = url.path();
+ TQString realCommand, firstParam, secondParam;
bool needContactAddition = false;
if ( command.find( "goim", 0, false ) != -1 )
{
@@ -150,11 +150,11 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
}
Kopete::Account *account = 0;
- QDict<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(proto);
+ TQDict<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts(proto);
if (accounts.count() == 1)
{
- QDictIterator<Kopete::Account> it(accounts);
+ TQDictIterator<Kopete::Account> it(accounts);
account = it.current();
}
@@ -170,7 +170,7 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
account = accSelector->selectedItem();
delete chooser;
- if (ret == QDialog::Rejected || account == 0)
+ if (ret == TQDialog::Rejected || account == 0)
{
kdDebug(14152) << k_funcinfo << "Cancelled" << endl;
return;
@@ -190,7 +190,7 @@ 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),
- QString::null, i18n("Add"), i18n("Do Not Add"))
+ TQString::null, i18n("Add"), i18n("Do Not Add"))
!= KMessageBox::Yes)
{
kdDebug(14152) << k_funcinfo << "Cancelled" << endl;
@@ -213,7 +213,7 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
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() ),
- QString::null );
+ TQString::null );
}
@@ -227,21 +227,21 @@ void AIMProtocolHandler::handleURL(const KURL &url) const
-AIMProtocol::AIMProtocol(QObject *parent, const char *name, const QStringList &)
+AIMProtocol::AIMProtocol(TQObject *parent, const char *name, const TQStringList &)
: Kopete::Protocol( AIMProtocolFactory::instance(), parent, name ),
- statusOnline( Kopete::OnlineStatus::Online, 2, this, 0, QString::null, i18n("Online"), i18n("Online"), Kopete::OnlineStatusManager::Online ),
- statusOffline( Kopete::OnlineStatus::Offline, 2, this, 10, QString::null, i18n("Offline"), i18n("Offline"), Kopete::OnlineStatusManager::Offline ),
+ 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 ),
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"),
Kopete::OnlineStatusManager::Online, Kopete::OnlineStatusManager::HideFromMenu ),
- statusWirelessAway( Kopete::OnlineStatus::Away, 1, this, 31, QStringList::split( " ", "contact_phone_overlay contact_away_overlay"),
+ statusWirelessAway( Kopete::OnlineStatus::Away, 1, this, 31, TQStringList::split( " ", "contact_phone_overlay contact_away_overlay"),
i18n("Mobile Away"), i18n("Mobile Away"), Kopete::OnlineStatusManager::Away, Kopete::OnlineStatusManager::HideFromMenu ),
statusConnecting(Kopete::OnlineStatus::Connecting, 99, this, 99, "aim_connecting", i18n("Connecting...")),
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"), QString::null, true, false, true)
+ iconHash("iconHash", i18n("Buddy Icon MD5 Hash"), TQString::null, true, false, true)
{
if (protocolStatic_)
kdDebug(14152) << k_funcinfo << "AIM plugin already initialized" << endl;
@@ -265,28 +265,28 @@ AIMProtocol *AIMProtocol::protocol(void)
}
Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContact,
- const QMap<QString, QString> &serializedData,
- const QMap<QString, QString> &/*addressBookData*/)
+ const TQMap<TQString, TQString> &serializedData,
+ const TQMap<TQString, TQString> &/*addressBookData*/)
{
- QString contactId = serializedData["contactId"];
- QString accountId = serializedData["accountId"];
- QString displayName = serializedData["displayName"];
+ TQString contactId = serializedData["contactId"];
+ TQString accountId = serializedData["accountId"];
+ TQString displayName = serializedData["displayName"];
// Get the account it belongs to
- QDict<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts( this );
+ TQDict<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts( this );
Kopete::Account *account = accounts[accountId];
if ( !account ) //no account
return 0;
uint ssiGid = 0, ssiBid = 0, ssiType = 0xFFFF;
- QString ssiName;
+ TQString ssiName;
bool ssiWaitingAuth = false;
if ( serializedData.contains( "ssi_type" ) )
{
ssiName = serializedData["ssi_name"];
- QString authStatus = serializedData["ssi_waitingAuth"];
+ TQString authStatus = serializedData["ssi_waitingAuth"];
if ( authStatus == "true" )
ssiWaitingAuth = true;
ssiGid = serializedData["ssi_gid"].toUInt();
@@ -294,24 +294,24 @@ Kopete::Contact *AIMProtocol::deserializeContact(Kopete::MetaContact *metaContac
ssiType = serializedData["ssi_type"].toUInt();
}
- Oscar::SSI item( ssiName, ssiGid, ssiBid, ssiType, QValueList<TLV>(), 0 );
+ Oscar::SSI item( ssiName, ssiGid, ssiBid, ssiType, TQValueList<TLV>(), 0 );
item.setWaitingAuth( ssiWaitingAuth );
- AIMContact *c = new AIMContact( account, contactId, metaContact, QString::null, item );
+ AIMContact *c = new AIMContact( account, contactId, metaContact, TQString::null, item );
return c;
}
-AddContactPage *AIMProtocol::createAddContactWidget(QWidget *parent, Kopete::Account *account)
+AddContactPage *AIMProtocol::createAddContactWidget(TQWidget *parent, Kopete::Account *account)
{
return ( new AIMAddContactPage( account->isConnected(), parent ) );
}
-KopeteEditAccountWidget *AIMProtocol::createEditAccountWidget(Kopete::Account *account, QWidget *parent)
+KopeteEditAccountWidget *AIMProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *parent)
{
return ( new AIMEditAccountWidget( this, account, parent ) );
}
-Kopete::Account *AIMProtocol::createNewAccount(const QString &accountId)
+Kopete::Account *AIMProtocol::createNewAccount(const TQString &accountId)
{
return ( new AIMAccount( this, accountId ) );
}