From 937b2991d8e78166eea904c80ad04d34607017a4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- .../groupwise/libgroupwise/tasks/chatcountstask.cpp | 4 ++-- .../groupwise/libgroupwise/tasks/eventtask.cpp | 2 +- .../libgroupwise/tasks/getchatsearchresultstask.cpp | 4 ++-- .../groupwise/libgroupwise/tasks/getdetailstask.cpp | 4 ++-- .../groupwise/libgroupwise/tasks/joinchattask.cpp | 8 ++++---- .../libgroupwise/tasks/joinconferencetask.cpp | 8 ++++---- .../groupwise/libgroupwise/tasks/logintask.cpp | 18 +++++++++--------- .../libgroupwise/tasks/pollsearchresultstask.cpp | 6 +++--- 8 files changed, 27 insertions(+), 27 deletions(-) (limited to 'kopete/protocols/groupwise/libgroupwise/tasks') diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp index 08f04b40..fa28ece0 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp @@ -59,9 +59,9 @@ bool ChatCountsTask::take( Transfer * transfer ) } Field::FieldList counts = resultsArray->fields(); const Field::FieldListIterator end = counts.end(); - for ( Field::FieldListIterator it = counts.tqfind( NM_A_FA_CHAT ); + for ( Field::FieldListIterator it = counts.find( NM_A_FA_CHAT ); it != end; - it = counts.tqfind( ++it, NM_A_FA_CHAT ) ) + it = counts.find( ++it, NM_A_FA_CHAT ) ) { Field::MultiField * mf = static_cast( *it ); Field::FieldList chat = mf->fields(); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp index 8af45d93..6d252a4d 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp @@ -40,7 +40,7 @@ bool EventTask::forMe( Transfer * transfer, EventTransfer*& event ) const { // see if we are supposed to handle this kind of event // consider speeding this up by having 1 handler per event - return ( m_eventCodes.tqfind( event->eventType() ) != m_eventCodes.end() ); + return ( m_eventCodes.find( event->eventType() ) != m_eventCodes.end() ); } return false; } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp index 81898ca2..1c8e1d39 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp @@ -72,9 +72,9 @@ bool GetChatSearchResultsTask::take( Transfer * transfer ) } Field::FieldList matches = resultsArray->fields(); const Field::FieldListIterator end = matches.end(); - for ( Field::FieldListIterator it = matches.tqfind( NM_A_FA_CHAT ); + for ( Field::FieldListIterator it = matches.find( NM_A_FA_CHAT ); it != end; - it = matches.tqfind( ++it, NM_A_FA_CHAT ) ) + it = matches.find( ++it, NM_A_FA_CHAT ) ) { Field::MultiField * mf = static_cast( *it ); Field::FieldList chat = mf->fields(); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp index 27a0c7f0..5f2cbe18 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp @@ -58,9 +58,9 @@ bool GetDetailsTask::take( Transfer * transfer ) // parse received details and signal like billio Field::MultiField * container = 0; Field::FieldListIterator end = detailsFields.end(); - for ( Field::FieldListIterator it = detailsFields.tqfind( NM_A_FA_RESULTS ); + for ( Field::FieldListIterator it = detailsFields.find( NM_A_FA_RESULTS ); it != end; - it = detailsFields.tqfind( ++it, NM_A_FA_RESULTS ) ) + it = detailsFields.find( ++it, NM_A_FA_RESULTS ) ) { container = static_cast( *it ); ContactDetails cd = extractUserDetails( container ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp index 35fab516..d8a4c709 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp @@ -59,9 +59,9 @@ bool JoinChatTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = participants->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); it != end; - it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) + it = contactList.find( ++it, NM_A_SZ_DN ) ) { contact = static_cast( *it ); if ( contact ) @@ -83,9 +83,9 @@ bool JoinChatTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = invitees->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); it != end; - it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) + it = contactList.find( ++it, NM_A_SZ_DN ) ) { contact = static_cast( *it ); if ( contact ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp index 63a57fda..9ab94d0d 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp @@ -59,9 +59,9 @@ bool JoinConferenceTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = participants->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); it != end; - it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) + it = contactList.find( ++it, NM_A_SZ_DN ) ) { contact = static_cast( *it ); if ( contact ) @@ -85,9 +85,9 @@ bool JoinConferenceTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = invitees->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); it != end; - it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) + it = contactList.find( ++it, NM_A_SZ_DN ) ) { contact = static_cast( *it ); if ( contact ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp index 2474aaaa..a3a0f556 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp @@ -80,18 +80,18 @@ bool LoginTask::take( Transfer * transfer ) Field::FieldList contactListFields = contactList->fields(); Field::MultiField * container; // read folders - for ( Field::FieldListIterator it = contactListFields.tqfind( NM_A_FA_FOLDER ); + for ( Field::FieldListIterator it = contactListFields.find( NM_A_FA_FOLDER ); it != contactListFields.end(); - it = contactListFields.tqfind( ++it, NM_A_FA_FOLDER ) ) + it = contactListFields.find( ++it, NM_A_FA_FOLDER ) ) { container = static_cast( *it ); extractFolder( container ); } // read contacts - for ( Field::FieldListIterator it = contactListFields.tqfind( NM_A_FA_CONTACT ); + for ( Field::FieldListIterator it = contactListFields.find( NM_A_FA_CONTACT ); it != contactListFields.end(); - it = contactListFields.tqfind( ++it, NM_A_FA_CONTACT ) ) + it = contactListFields.find( ++it, NM_A_FA_CONTACT ) ) { container = static_cast( *it ); extractContact( container ); @@ -241,12 +241,12 @@ void LoginTask::extractPrivacy( Field::FieldList & fields ) TQStringList denyList; // read blocking // may be a single field or may be an array - Field::FieldListIterator it = fields.tqfind( NM_A_LOCKED_ATTR_LIST ); + Field::FieldListIterator it = fields.find( NM_A_LOCKED_ATTR_LIST ); if ( it != fields.end() ) { if ( Field::SingleField * sf = dynamic_cast( *it ) ) { - if ( sf->value().toString().tqfind( NM_A_BLOCKING ) ) + if ( sf->value().toString().find( NM_A_BLOCKING ) ) privacyLocked = true; } else if ( Field::MultiField * mf = dynamic_cast( *it ) ) @@ -284,7 +284,7 @@ TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldLis { TQStringList items; - Field::FieldListIterator it = fields.tqfind( tag ); + Field::FieldListIterator it = fields.find( tag ); if ( it != fields.end() ) { if ( Field::SingleField * sf = dynamic_cast( *it ) ) @@ -308,7 +308,7 @@ TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldLis void LoginTask::extractCustomStatuses( Field::FieldList & fields ) { - Field::FieldListIterator it = fields.tqfind( NM_A_FA_CUSTOM_STATUSES ); + Field::FieldListIterator it = fields.find( NM_A_FA_CUSTOM_STATUSES ); if ( it != fields.end() ) { if ( Field::MultiField * mf = dynamic_cast( *it ) ) @@ -342,7 +342,7 @@ void LoginTask::extractCustomStatuses( Field::FieldList & fields ) void LoginTask::extractKeepalivePeriod( Field::FieldList & fields ) { - Field::FieldListIterator it = fields.tqfind( NM_A_UD_KEEPALIVE ); + Field::FieldListIterator it = fields.find( NM_A_UD_KEEPALIVE ); if ( it != fields.end() ) { if ( Field::SingleField * sf = dynamic_cast( *it ) ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp index 1cc33e75..3fadb5a5 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp @@ -69,9 +69,9 @@ bool PollSearchResultsTask::take( Transfer * transfer ) } Field::FieldList matches = resultsArray->fields(); const Field::FieldListIterator end = matches.end(); - for ( Field::FieldListIterator it = matches.tqfind( NM_A_FA_CONTACT ); + for ( Field::FieldListIterator it = matches.find( NM_A_FA_CONTACT ); it != end; - it = matches.tqfind( ++it, NM_A_FA_CONTACT ) ) + it = matches.find( ++it, NM_A_FA_CONTACT ) ) { Field::MultiField * mf = static_cast( *it ); Field::FieldList contact = mf->fields(); @@ -79,7 +79,7 @@ bool PollSearchResultsTask::take( Transfer * transfer ) m_results.append( cd ); } - // first field: NM_A_SZ_STATUS tqcontains + // first field: NM_A_SZ_STATUS contains #define SEARCH_PENDING 0 #define SEARCH_INPROGRESS 1 #define SEARCH_COMPLETED 2 -- cgit v1.2.1