summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteblacklister.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopeteblacklister.cpp')
-rw-r--r--kopete/libkopete/kopeteblacklister.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/libkopete/kopeteblacklister.cpp b/kopete/libkopete/kopeteblacklister.cpp
index 8ec5c54b..29dbf727 100644
--- a/kopete/libkopete/kopeteblacklister.cpp
+++ b/kopete/libkopete/kopeteblacklister.cpp
@@ -20,7 +20,7 @@
#include <kconfig.h>
#include <kglobal.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
namespace Kopete
{
@@ -28,21 +28,21 @@ namespace Kopete
class BlackLister::Private
{
public:
- QStringList blacklist;
- QString owner;
- QString protocol;
+ TQStringList blacklist;
+ TQString owner;
+ TQString protocol;
};
-BlackLister::BlackLister(const QString &protocolId, const QString &accountId, QObject *parent, const char *name)
- : QObject(parent, name), d( new Private )
+BlackLister::BlackLister(const TQString &protocolId, const TQString &accountId, TQObject *parent, const char *name)
+ : TQObject(parent, name), d( new Private )
{
KConfig *config = KGlobal::config();
d->owner = accountId;
d->protocol = protocolId;
config->setGroup("BlackLister");
- d->blacklist = config->readListEntry( d->protocol + QString::fromLatin1("_") + d->owner );
+ d->blacklist = config->readListEntry( d->protocol + TQString::fromLatin1("_") + d->owner );
}
BlackLister::~BlackLister()
@@ -51,7 +51,7 @@ BlackLister::~BlackLister()
}
-bool BlackLister::isBlocked(const QString &contactId)
+bool BlackLister::isBlocked(const TQString &contactId)
{
return (d->blacklist.find( contactId ) != d->blacklist.end() );
}
@@ -61,7 +61,7 @@ bool BlackLister::isBlocked(Contact *contact)
return isBlocked(contact->contactId());
}
-void BlackLister::addContact(const QString &contactId)
+void BlackLister::addContact(const TQString &contactId)
{
if( !isBlocked(contactId) )
{
@@ -73,14 +73,14 @@ void BlackLister::addContact(const QString &contactId)
void BlackLister::addContact(Contact *contact)
{
- QString temp = contact->contactId();
+ TQString temp = contact->contactId();
addContact( temp );
}
void BlackLister::removeContact(Contact *contact)
{
- QString temp = contact->contactId();
+ TQString temp = contact->contactId();
removeContact( temp );
}
@@ -90,11 +90,11 @@ void BlackLister::saveToDisk()
KConfig *config = KGlobal::config();
config->setGroup("BlackLister");
- config->writeEntry( d->protocol + QString::fromLatin1("_") + d->owner, d->blacklist );
+ config->writeEntry( d->protocol + TQString::fromLatin1("_") + d->owner, d->blacklist );
config->sync();
}
-void BlackLister::removeContact(const QString &contactId)
+void BlackLister::removeContact(const TQString &contactId)
{
if( isBlocked(contactId) )
{