summaryrefslogtreecommitdiffstats
path: root/kalarm/kalarmd
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
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kalarm/kalarmd
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/kalarmd')
-rw-r--r--kalarm/kalarmd/adcalendar.cpp8
-rw-r--r--kalarm/kalarmd/alarmdaemon.cpp6
-rw-r--r--kalarm/kalarmd/clientinfo.cpp4
3 files changed, 9 insertions, 9 deletions
diff --git a/kalarm/kalarmd/adcalendar.cpp b/kalarm/kalarmd/adcalendar.cpp
index e1f0823ae..409ab88f0 100644
--- a/kalarm/kalarmd/adcalendar.cpp
+++ b/kalarm/kalarmd/adcalendar.cpp
@@ -51,7 +51,7 @@ ADCalendar::ADCalendar(const TQString& url, const TQCString& appname)
kdError(5900) << "ADCalendar::ADCalendar(" << url << "): calendar already exists" << endl;
assert(0);
}
- mUrlIndex = mCalendarUrls.tqfindIndex(url); // get unique index for this URL
+ mUrlIndex = mCalendarUrls.findIndex(url); // get unique index for this URL
if (mUrlIndex < 0)
{
mUrlIndex = static_cast<int>(mCalendarUrls.count());
@@ -142,7 +142,7 @@ bool ADCalendar::setLoadedConnected()
*/
bool ADCalendar::eventHandled(const KCal::Event* event, const TQValueList<TQDateTime>& alarmtimes)
{
- EventsMap::ConstIterator it = mEventsHandled.tqfind(EventKey(event->uid(), mUrlIndex));
+ EventsMap::ConstIterator it = mEventsHandled.find(EventKey(event->uid(), mUrlIndex));
if (it == mEventsHandled.end())
return false;
@@ -170,7 +170,7 @@ void ADCalendar::setEventHandled(const TQString& eventID)
EventKey key(eventID, mUrlIndex);
// Remove it from the pending list, and add it to the handled list
- EventsMap::Iterator it = mEventsPending.tqfind(key);
+ EventsMap::Iterator it = mEventsPending.find(key);
if (it != mEventsPending.end())
{
setEventInMap(mEventsHandled, key, it.data().alarmTimes, it.data().eventSequence);
@@ -197,7 +197,7 @@ void ADCalendar::setEventPending(const KCal::Event* event, const TQValueList<TQD
*/
void ADCalendar::setEventInMap(EventsMap& map, const EventKey& key, const TQValueList<TQDateTime>& alarmtimes, int sequence)
{
- EventsMap::Iterator it = map.tqfind(key);
+ EventsMap::Iterator it = map.find(key);
if (it != map.end())
{
// Update the existing entry for the event
diff --git a/kalarm/kalarmd/alarmdaemon.cpp b/kalarm/kalarmd/alarmdaemon.cpp
index c14a1bf5b..a8460167f 100644
--- a/kalarm/kalarmd/alarmdaemon.cpp
+++ b/kalarm/kalarmd/alarmdaemon.cpp
@@ -374,7 +374,7 @@ void AlarmDaemon::checkAlarms(ADCalendar* cal)
for (TQValueList<KCal::Alarm*>::ConstIterator it = alarms.begin(); it != alarms.end(); ++it)
{
KCal::Event* event = dynamic_cast<KCal::Event*>((*it)->tqparent());
- if (!event || eventsDone.tqfind(event) != eventsDone.end())
+ if (!event || eventsDone.find(event) != eventsDone.end())
continue; // either not an event, or the event has already been processed
eventsDone += event;
const TQString& eventID = event->uid();
@@ -385,7 +385,7 @@ void AlarmDaemon::checkAlarms(ADCalendar* cal)
// The times for non-due alarms are set invalid in 'alarmtimes'.
bool recurs = event->doesRecur();
const TQStringList cats = event->categories();
- bool floats = (cats.tqfind(TQString::tqfromLatin1("DATE")) != cats.end());
+ bool floats = (cats.find(TQString::tqfromLatin1("DATE")) != cats.end());
TQDateTime nextDateTime = event->dtStart();
if (recurs)
{
@@ -487,7 +487,7 @@ bool AlarmDaemon::notifyEvent(ADCalendar* calendar, const TQString& eventID)
{
// It's running, but check if it has created our DCOP interface yet
QCStringList objects = kapp->dcopClient()->remoteObjects(appname);
- if (objects.tqfind(client->dcopObject()) == objects.end())
+ if (objects.find(client->dcopObject()) == objects.end())
ready = false;
}
if (!ready)
diff --git a/kalarm/kalarmd/clientinfo.cpp b/kalarm/kalarmd/clientinfo.cpp
index 5475cce57..e8c5ea6c7 100644
--- a/kalarm/kalarmd/clientinfo.cpp
+++ b/kalarm/kalarmd/clientinfo.cpp
@@ -72,7 +72,7 @@ ClientInfo* ClientInfo::get(const TQCString& appName)
{
if (appName.isEmpty())
return 0;
- TQMap<TQCString, ClientInfo*>::ConstIterator it = mClients.tqfind(appName);
+ TQMap<TQCString, ClientInfo*>::ConstIterator it = mClients.find(appName);
if (it == mClients.end())
return 0;
return it.data();
@@ -104,7 +104,7 @@ void ClientInfo::clear()
*/
void ClientInfo::remove(const TQCString& appName)
{
- TQMap<TQCString, ClientInfo*>::Iterator it = mClients.tqfind(appName);
+ TQMap<TQCString, ClientInfo*>::Iterator it = mClients.find(appName);
if (it != mClients.end())
delete it.data();
}