summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/winpopup/wpprotocol.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/winpopup/wpprotocol.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/winpopup/wpprotocol.cpp')
-rw-r--r--kopete/protocols/winpopup/wpprotocol.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kopete/protocols/winpopup/wpprotocol.cpp b/kopete/protocols/winpopup/wpprotocol.cpp
index b765438c..71d4a76a 100644
--- a/kopete/protocols/winpopup/wpprotocol.cpp
+++ b/kopete/protocols/winpopup/wpprotocol.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
// QT Includes
-#include <qmap.h>
-#include <qdict.h>
+#include <tqmap.h>
+#include <tqdict.h>
// KDE Includes
#include <kapplication.h>
@@ -48,11 +48,11 @@ typedef KGenericFactory<WPProtocol> WPProtocolFactory;
K_EXPORT_COMPONENT_FACTORY( kopete_wp, WPProtocolFactory( "kopete_wp" ) )
// WP Protocol
-WPProtocol::WPProtocol( QObject *parent, const char *name, const QStringList & /* args */ )
+WPProtocol::WPProtocol( TQObject *parent, const char *name, const TQStringList & /* args */ )
: Kopete::Protocol( WPProtocolFactory::instance(), parent, name ),
- WPOnline( Kopete::OnlineStatus::Online, 25, this, 0, QString::null, i18n("Online"), i18n("Online")),
+ WPOnline( Kopete::OnlineStatus::Online, 25, this, 0, TQString::null, i18n("Online"), i18n("Online")),
WPAway( Kopete::OnlineStatus::Away, 20, this, 1, "wp_away", i18n("Away"), i18n("Away")),
- WPOffline( Kopete::OnlineStatus::Offline, 0, this, 2, QString::null, i18n("Offline"), i18n("Offline"))
+ WPOffline( Kopete::OnlineStatus::Offline, 0, this, 2, TQString::null, i18n("Offline"), i18n("Offline"))
{
// kdDebug(14170) << "WPProtocol::WPProtocol()" << endl;
@@ -67,8 +67,8 @@ WPProtocol::WPProtocol( QObject *parent, const char *name, const QStringList & /
readConfig();
popupClient = new WinPopupLib(smbClientBin, groupCheckFreq);
- QObject::connect(popupClient, SIGNAL(signalNewMessage(const QString &, const QDateTime &, const QString &)),
- this, SLOT(slotReceivedMessage(const QString &, const QDateTime &, const QString &)));
+ TQObject::connect(popupClient, TQT_SIGNAL(signalNewMessage(const TQString &, const TQDateTime &, const TQString &)),
+ this, TQT_SLOT(slotReceivedMessage(const TQString &, const TQDateTime &, const TQString &)));
}
// Destructor
@@ -79,7 +79,7 @@ WPProtocol::~WPProtocol()
sProtocol = 0;
}
-AddContactPage *WPProtocol::createAddContactWidget(QWidget *parent, Kopete::Account *theAccount)
+AddContactPage *WPProtocol::createAddContactWidget(TQWidget *parent, Kopete::Account *theAccount)
{
// kdDebug(14170) << "WPProtocol::createAddContactWidget(<parent>, " << theAccount << ")" << endl;
@@ -87,11 +87,11 @@ AddContactPage *WPProtocol::createAddContactWidget(QWidget *parent, Kopete::Acco
}
Kopete::Contact *WPProtocol::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" ];
+ TQString contactId = serializedData[ "contactId" ];
+ TQString accountId = serializedData[ "accountId" ];
WPAccount *theAccount = static_cast<WPAccount *>(Kopete::AccountManager::self()->findAccount(protocol()->pluginId(), accountId));
if(!theAccount) {
@@ -108,12 +108,12 @@ Kopete::Contact *WPProtocol::deserializeContact( Kopete::MetaContact *metaContac
return theAccount->contacts()[contactId];
}
-KopeteEditAccountWidget *WPProtocol::createEditAccountWidget(Kopete::Account *account, QWidget *parent)
+KopeteEditAccountWidget *WPProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *parent)
{
return new WPEditAccount(parent, account);
}
-Kopete::Account *WPProtocol::createNewAccount(const QString &accountId)
+Kopete::Account *WPProtocol::createNewAccount(const TQString &accountId)
{
return new WPAccount(this, accountId);
}
@@ -137,7 +137,7 @@ void WPProtocol::installSamba()
{
// kdDebug(14170) << "WPProtocol::installSamba()" endl;
- QStringList args;
+ TQStringList args;
args += KStandardDirs::findExe("winpopup-install.sh");
args += KStandardDirs::findExe("winpopup-send.sh");
if (KApplication::kdeinitExecWait("kdesu", args) == 0)
@@ -149,13 +149,13 @@ void WPProtocol::installSamba()
/**
* search the contact for the new message and give it to its account
*/
-void WPProtocol::slotReceivedMessage(const QString &Body, const QDateTime &Time, const QString &From)
+void WPProtocol::slotReceivedMessage(const TQString &Body, const TQDateTime &Time, const TQString &From)
{
bool foundContact = false;
- QString accountKey = QString::null;
- QDict<Kopete::Account> Accounts = Kopete::AccountManager::self()->accounts(protocol());
- for (QDictIterator<Kopete::Account> it(Accounts); it.current(); ++it) {
- QDict<Kopete::Contact> Contacts = it.current()->contacts();
+ TQString accountKey = TQString::null;
+ TQDict<Kopete::Account> Accounts = Kopete::AccountManager::self()->accounts(protocol());
+ for (TQDictIterator<Kopete::Account> it(Accounts); it.current(); ++it) {
+ TQDict<Kopete::Contact> Contacts = it.current()->contacts();
Kopete::Contact *theContact = Contacts[From];
if (theContact != 0) {
foundContact = true;
@@ -176,7 +176,7 @@ void WPProtocol::slotReceivedMessage(const QString &Body, const QDateTime &Time,
}
}
-void WPProtocol::sendMessage(const QString &Body, const QString &Destination)
+void WPProtocol::sendMessage(const TQString &Body, const TQString &Destination)
{
popupClient->sendMessage(Body, Destination);
}