summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/statistics
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit937b2991d8e78166eea904c80ad04d34607017a4 (patch)
tree2accb8161eab09df5d7a5484ea9ea080ad123168 /kopete/plugins/statistics
parentdba26cb985af370c33d1767037851705cc561726 (diff)
downloadtdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz
tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/plugins/statistics')
-rw-r--r--kopete/plugins/statistics/statisticsdb.cpp8
-rw-r--r--kopete/plugins/statistics/statisticsplugin.cpp22
2 files changed, 15 insertions, 15 deletions
diff --git a/kopete/plugins/statistics/statisticsdb.cpp b/kopete/plugins/statistics/statisticsdb.cpp
index 7d4cbe76..8f25623e 100644
--- a/kopete/plugins/statistics/statisticsdb.cpp
+++ b/kopete/plugins/statistics/statisticsdb.cpp
@@ -68,7 +68,7 @@ StatisticsDB::StatisticsDB()
// Creates the tables if they do not exist.
TQStringList result = query("SELECT name FROM sqlite_master WHERE type='table'");
- if (!result.tqcontains("contacts"))
+ if (!result.contains("contacts"))
{
query(TQString("CREATE TABLE contacts "
"(id INTEGER PRIMARY KEY,"
@@ -77,7 +77,7 @@ StatisticsDB::StatisticsDB()
");"));
}
- if (!result.tqcontains("contactstatus"))
+ if (!result.contains("contactstatus"))
{
kdDebug() << "[Statistics] Database empty"<< endl;
query(TQString("CREATE TABLE contactstatus "
@@ -89,7 +89,7 @@ StatisticsDB::StatisticsDB()
");"));
}
- if (!result.tqcontains("commonstats"))
+ if (!result.contains("commonstats"))
{
// To store things like the contact answer time etc.
query(TQString("CREATE TABLE commonstats"
@@ -102,7 +102,7 @@ StatisticsDB::StatisticsDB()
}
/// @fixme This is not used anywhere
- if (!result.tqcontains("statsgroup"))
+ if (!result.contains("statsgroup"))
{
query(TQString("CREATE TABLE statsgroup"
"(id INTEGER PRIMARY KEY,"
diff --git a/kopete/plugins/statistics/statisticsplugin.cpp b/kopete/plugins/statistics/statisticsplugin.cpp
index 09015d7a..1d37768f 100644
--- a/kopete/plugins/statistics/statisticsplugin.cpp
+++ b/kopete/plugins/statistics/statisticsplugin.cpp
@@ -101,7 +101,7 @@ StatisticsPlugin::~StatisticsPlugin()
void StatisticsPlugin::slotAboutToReceive(Kopete::Message& m)
{
- if ( statisticsMetaContactMap.tqcontains(m.from()->metaContact()) )
+ if ( statisticsMetaContactMap.contains(m.from()->metaContact()) )
statisticsMetaContactMap[m.from()->metaContact()]->newMessageReceived(m);
}
@@ -118,7 +118,7 @@ void StatisticsPlugin::slotViewClosed(Kopete::ChatSession* session)
for (; it.current(); ++it)
{
// If this contact is not in other chat sessions
- if (!it.current()->manager() && statisticsMetaContactMap.tqcontains(it.current()->metaContact()))
+ if (!it.current()->manager() && statisticsMetaContactMap.contains(it.current()->metaContact()))
statisticsMetaContactMap[it.current()->metaContact()]->setIsChatWindowOpen(false);
}
}
@@ -129,7 +129,7 @@ void StatisticsPlugin::slotViewStatistics()
kdDebug() << k_funcinfo << "statistics - dialog :"+ mc->displayName() << endl;
- if ( mc && statisticsMetaContactMap.tqcontains(mc) )
+ if ( mc && statisticsMetaContactMap.contains(mc) )
{
(new StatisticsDialog(statisticsMetaContactMap[mc], db()))->show();
}
@@ -137,7 +137,7 @@ void StatisticsPlugin::slotViewStatistics()
void StatisticsPlugin::slotOnlineStatusChanged(Kopete::MetaContact *mc, Kopete::OnlineStatus::StatusType status)
{
- if ( statisticsMetaContactMap.tqcontains(mc) )
+ if ( statisticsMetaContactMap.contains(mc) )
statisticsMetaContactMap[mc]->onlineStatusChanged(status);
}
@@ -164,7 +164,7 @@ void StatisticsPlugin::slotMetaContactAdded(Kopete::MetaContact *mc)
void StatisticsPlugin::slotMetaContactRemoved(Kopete::MetaContact *mc)
{
- if (statisticsMetaContactMap.tqcontains(mc))
+ if (statisticsMetaContactMap.contains(mc))
{
StatisticsContact *sc = statisticsMetaContactMap[mc];
statisticsMetaContactMap.remove(mc);
@@ -175,7 +175,7 @@ void StatisticsPlugin::slotMetaContactRemoved(Kopete::MetaContact *mc)
void StatisticsPlugin::slotContactAdded( Kopete::Contact *c)
{
- if (statisticsMetaContactMap.tqcontains(c->metaContact()))
+ if (statisticsMetaContactMap.contains(c->metaContact()))
{
StatisticsContact *sc = statisticsMetaContactMap[c->metaContact()];
sc->contactAdded(c);
@@ -185,7 +185,7 @@ void StatisticsPlugin::slotContactAdded( Kopete::Contact *c)
void StatisticsPlugin::slotContactRemoved( Kopete::Contact *c)
{
- if (statisticsMetaContactMap.tqcontains(c->metaContact()))
+ if (statisticsMetaContactMap.contains(c->metaContact()))
statisticsMetaContactMap[c->metaContact()]->contactRemoved(c);
statisticsContactMap.remove(c->contactId());
@@ -195,7 +195,7 @@ void StatisticsPlugin::dcopStatisticsDialog(TQString id)
{
kdDebug() << k_funcinfo << "statistics - DCOP dialog :" << id << endl;
- if (statisticsContactMap.tqcontains(id))
+ if (statisticsContactMap.contains(id))
{
(new StatisticsDialog(statisticsContactMap[id], db()))->show();
}
@@ -241,7 +241,7 @@ bool StatisticsPlugin::dcopWastqStatus(TQString id, TQDateTime dateTime, Kopete:
{
kdDebug() << k_funcinfo << "statistics - DCOP wasOnline :" << id << endl;
- if (dateTime.isValid() && statisticsContactMap.tqcontains(id))
+ if (dateTime.isValid() && statisticsContactMap.contains(id))
{
return statisticsContactMap[id]->wastqStatus(dateTime, status);
}
@@ -261,7 +261,7 @@ TQString StatisticsPlugin::dcoptqStatus(TQString id, TQString dateTime)
{
TQDateTime dt = TQDateTime::fromString(dateTime);
- if (dt.isValid() && statisticsContactMap.tqcontains(id))
+ if (dt.isValid() && statisticsContactMap.contains(id))
{
return statisticsContactMap[id]->statusAt(dt);
}
@@ -273,7 +273,7 @@ TQString StatisticsPlugin::dcopMaintqStatus(TQString id, int timeStamp)
{
TQDateTime dt;
dt.setTime_t(timeStamp);
- if (dt.isValid() && statisticsContactMap.tqcontains(id))
+ if (dt.isValid() && statisticsContactMap.contains(id))
{
return statisticsContactMap[id]->mainStatusDate(dt.date());
}