summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/libkirc/kircentity.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/irc/libkirc/kircentity.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/irc/libkirc/kircentity.cpp')
-rw-r--r--kopete/protocols/irc/libkirc/kircentity.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kopete/protocols/irc/libkirc/kircentity.cpp b/kopete/protocols/irc/libkirc/kircentity.cpp
index 6aa6fd55..ded35fe5 100644
--- a/kopete/protocols/irc/libkirc/kircentity.cpp
+++ b/kopete/protocols/irc/libkirc/kircentity.cpp
@@ -29,19 +29,19 @@ using namespace KNetwork;
* where user and host are optionnal.
* NOTE: If changes are done to the regexp string, update also the sm_userStrictRegExp regexp string.
*/
-const QRegExp Entity::sm_userRegExp(QString::fromLatin1("^([^\\s,:!@]+)(?:(?:!([^\\s,:!@]+))?(?:@([^\\s,!@]+)))?$"));
+const TQRegExp Entity::sm_userRegExp(TQString::fromLatin1("^([^\\s,:!@]+)(?:(?:!([^\\s,:!@]+))?(?:@([^\\s,!@]+)))?$"));
/**
* Regexp to match strictly the complete user definition:
* nick!user@host
* NOTE: If changes are done to the regexp string, update also the sm_userRegExp regexp string.
*/
-const QRegExp Entity::sm_userStrictRegExp(QString::fromLatin1("^([^\\s,:!@]+)!([^\\s,:!@]+)@([^\\s,:!@]+)$"));
+const TQRegExp Entity::sm_userStrictRegExp(TQString::fromLatin1("^([^\\s,:!@]+)!([^\\s,:!@]+)@([^\\s,:!@]+)$"));
-const QRegExp Entity::sm_channelRegExp( QString::fromLatin1("^[#!+&][^\\s,]+$") );
+const TQRegExp Entity::sm_channelRegExp( TQString::fromLatin1("^[#!+&][^\\s,]+$") );
-Entity::Entity(const QString &, const Type type)
- : QObject(0, "KIRC::Entity"),
+Entity::Entity(const TQString &, const Type type)
+ : TQObject(0, "KIRC::Entity"),
m_type(type)
{
// rename(name, type);
@@ -52,12 +52,12 @@ Entity::~Entity()
emit destroyed(this);
}
-QString Entity::name() const
+TQString Entity::name() const
{
return m_name;
}
-QString Entity::host() const
+TQString Entity::host() const
{
switch(m_type)
{
@@ -70,7 +70,7 @@ QString Entity::host() const
return userHost();
default:
kdDebug(14121) << k_funcinfo << "No host defined for type:" << m_type;
- return QString::null;
+ return TQString::null;
}
}
@@ -86,44 +86,44 @@ KIRC::Entity::Type Entity::guessType()
}
// FIXME: Implement me
-KIRC::Entity::Type Entity::guessType(const QString &)
+KIRC::Entity::Type Entity::guessType(const TQString &)
{
return Unknown;
}
-QString Entity::userNick() const
+TQString Entity::userNick() const
{
return userNick(m_name);
}
-QString Entity::userNick(const QString &s)
+TQString Entity::userNick(const TQString &s)
{
return userInfo(s, 1);
}
-QString Entity::userName() const
+TQString Entity::userName() const
{
return userName(m_name);
}
-QString Entity::userName(const QString &s)
+TQString Entity::userName(const TQString &s)
{
return userInfo(s, 2);
}
-QString Entity::userHost() const
+TQString Entity::userHost() const
{
return userHost(m_name);
}
-QString Entity::userHost(const QString &s)
+TQString Entity::userHost(const TQString &s)
{
return userInfo(s, 3);
}
-QString Entity::userInfo(const QString &s, int num)
+TQString Entity::userInfo(const TQString &s, int num)
{
- QRegExp userRegExp(sm_userRegExp);
+ TQRegExp userRegExp(sm_userRegExp);
userRegExp.search(s);
return userRegExp.cap(num);
}