summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/winpopup/wpaccount.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/wpaccount.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/wpaccount.cpp')
-rw-r--r--kopete/protocols/winpopup/wpaccount.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kopete/protocols/winpopup/wpaccount.cpp b/kopete/protocols/winpopup/wpaccount.cpp
index 4b1342ff..d7439628 100644
--- a/kopete/protocols/winpopup/wpaccount.cpp
+++ b/kopete/protocols/winpopup/wpaccount.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
// QT Includes
-#include <qregexp.h>
+#include <tqregexp.h>
// KDE Includes
#include <kdebug.h>
@@ -34,7 +34,7 @@
class KPopupMenu;
-WPAccount::WPAccount(WPProtocol *parent, const QString &accountID, const char *name)
+WPAccount::WPAccount(WPProtocol *parent, const TQString &accountID, const char *name)
: Kopete::Account(parent, accountID, name)
{
// kdDebug(14170) << "WPAccount::WPAccount()" << endl;
@@ -53,20 +53,20 @@ WPAccount::~WPAccount()
{
}
-const QStringList WPAccount::getGroups()
+const TQStringList WPAccount::getGroups()
{
return mProtocol->getGroups();
}
-const QStringList WPAccount::getHosts(const QString &Group)
+const TQStringList WPAccount::getHosts(const TQString &Group)
{
return mProtocol->getHosts(Group);
}
-bool WPAccount::checkHost(const QString &Name)
+bool WPAccount::checkHost(const TQString &Name)
{
// kdDebug() << "WPAccount::checkHost: " << Name << endl;
- if (Name.upper() == QString::fromLatin1("LOCALHOST")) {
+ if (Name.upper() == TQString::fromLatin1("LOCALHOST")) {
// Assume localhost is always there, but it will not appear in the samba output.
// Should never happen as localhost is now forbidden as contact, just for safety. GF
return true;
@@ -75,7 +75,7 @@ bool WPAccount::checkHost(const QString &Name)
}
}
-bool WPAccount::createContact(const QString &contactId, Kopete::MetaContact *parentContact )
+bool WPAccount::createContact(const TQString &contactId, Kopete::MetaContact *parentContact )
{
// kdDebug(14170) << "[WPAccount::createContact] contactId: " << contactId << endl;
@@ -89,7 +89,7 @@ bool WPAccount::createContact(const QString &contactId, Kopete::MetaContact *par
return false;
}
-void WPAccount::slotGotNewMessage(const QString &Body, const QDateTime &Arrival, const QString &From)
+void WPAccount::slotGotNewMessage(const TQString &Body, const TQDateTime &Arrival, const TQString &From)
{
// kdDebug(14170) << "WPAccount::slotGotNewMessage(" << Body << ", " << Arrival.toString() << ", " << From << ")" << endl;
@@ -97,7 +97,7 @@ void WPAccount::slotGotNewMessage(const QString &Body, const QDateTime &Arrival,
// IPs can not be matched to an account anyway.
// This should happen rarely but they make kopete crash.
// The reason for this seems to be in ChatSessionManager? GF
- QRegExp ip("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}");
+ TQRegExp ip("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}");
// kdDebug(14170) << "ip.search: " << From << " match: " << ip.search(From) << endl;
@@ -142,7 +142,7 @@ void WPAccount::updateAccountId()
myself() = new WPContact(this, accountId(), accountId(), 0);
}*/
-void WPAccount::setAway(bool status, const QString &awayMessage)
+void WPAccount::setAway(bool status, const TQString &awayMessage)
{
// kdDebug(14170) << "WPAccount::setAway()" << endl;
@@ -164,13 +164,13 @@ KActionMenu* WPAccount::actionMenu()
if (mProtocol)
{
- KAction *goOnline = new KAction("Online", QIconSet(mProtocol->WPOnline.iconFor(this)), 0,
- this, SLOT(connect()), theActionMenu, "actionGoAvailable");
+ KAction *goOnline = new KAction("Online", TQIconSet(mProtocol->WPOnline.iconFor(this)), 0,
+ this, TQT_SLOT(connect()), theActionMenu, "actionGoAvailable");
goOnline->setEnabled(isConnected() && isAway());
theActionMenu->insert(goOnline);
- KAction *goAway = new KAction("Away", QIconSet(mProtocol->WPAway.iconFor(this)), 0,
- this, SLOT(goAway()), theActionMenu, "actionGoAway");
+ KAction *goAway = new KAction("Away", TQIconSet(mProtocol->WPAway.iconFor(this)), 0,
+ this, TQT_SLOT(goAway()), theActionMenu, "actionGoAway");
goAway->setEnabled(isConnected() && !isAway());
theActionMenu->insert(goAway);
@@ -178,14 +178,14 @@ KActionMenu* WPAccount::actionMenu()
theActionMenu->popupMenu()->insertSeparator();
theActionMenu->insert(new KAction(i18n("Properties"), 0,
- this, SLOT(editAccount()), theActionMenu, "actionAccountProperties"));
+ this, TQT_SLOT(editAccount()), theActionMenu, "actionAccountProperties"));
}
return theActionMenu;
}
-void WPAccount::slotSendMessage(const QString &Body, const QString &Destination)
+void WPAccount::slotSendMessage(const TQString &Body, const TQString &Destination)
{
kdDebug(14170) << "WPAccount::slotSendMessage(" << Body << ", " << Destination << ")" << endl;
@@ -193,7 +193,7 @@ void WPAccount::slotSendMessage(const QString &Body, const QString &Destination)
mProtocol->sendMessage(Body, Destination);
}
-void WPAccount::setOnlineStatus(const Kopete::OnlineStatus &status, const QString &reason)
+void WPAccount::setOnlineStatus(const Kopete::OnlineStatus &status, const TQString &reason)
{
if (myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Online)
connect( status );