diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch) | |
tree | 766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kresources/groupwise | |
parent | 469cc56a805bd3d6940d54adbef554877c29853c (diff) | |
download | tdepim-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 'kresources/groupwise')
-rw-r--r-- | kresources/groupwise/kabc_resourcegroupwise.cpp | 6 | ||||
-rw-r--r-- | kresources/groupwise/kabc_resourcegroupwiseconfig.cpp | 6 | ||||
-rw-r--r-- | kresources/groupwise/kioslave/groupwise.cpp | 12 | ||||
-rw-r--r-- | kresources/groupwise/soap/contactconverter.cpp | 6 | ||||
-rw-r--r-- | kresources/groupwise/soap/groupwiseserver.cpp | 8 | ||||
-rw-r--r-- | kresources/groupwise/soap/gwjobs.cpp | 4 | ||||
-rw-r--r-- | kresources/groupwise/soap/ksslsocket.cpp | 4 | ||||
-rw-r--r-- | kresources/groupwise/soap/soapC.cpp | 2 | ||||
-rw-r--r-- | kresources/groupwise/soap/soapStub.h | 2 | ||||
-rw-r--r-- | kresources/groupwise/soap/stdsoap2.h | 4 |
10 files changed, 27 insertions, 27 deletions
diff --git a/kresources/groupwise/kabc_resourcegroupwise.cpp b/kresources/groupwise/kabc_resourcegroupwise.cpp index 6ac8a880a..e6570b46e 100644 --- a/kresources/groupwise/kabc_resourcegroupwise.cpp +++ b/kresources/groupwise/kabc_resourcegroupwise.cpp @@ -665,13 +665,13 @@ bool ResourceGroupwise::shouldFetchSystemAddressBook() { TQStringList ids = mPrefs->readAddressBooks(); - return ( appIsWhiteListedForSAB() && ids.tqfind( mPrefs->systemAddressBook() ) != ids.end() ); + return ( appIsWhiteListedForSAB() && ids.find( mPrefs->systemAddressBook() ) != ids.end() ); } bool ResourceGroupwise::shouldFetchUserAddressBooks() { TQStringList ids = mPrefs->readAddressBooks(); - return ( ids.count() > 1 || ids.tqfind( mPrefs->systemAddressBook() ) == ids.end() ); + return ( ids.count() > 1 || ids.find( mPrefs->systemAddressBook() ) == ids.end() ); } KURL ResourceGroupwise::createAccessUrl( BookType bookType, AccessMode mode, unsigned long lastSequenceNumber, unsigned long lastPORebuildTime ) @@ -732,7 +732,7 @@ void ResourceGroupwise::storeDeltaInfo() bool ResourceGroupwise::appIsWhiteListedForSAB() { - if ( !mPrefs->systemAddressBookWhiteList().tqcontains( tqApp->argv()[ 0 ] ) ) + if ( !mPrefs->systemAddressBookWhiteList().contains( tqApp->argv()[ 0 ] ) ) { kdDebug() << "Application " << tqApp->argv()[ 0 ] << " is _blacklisted_ to load the SAB" << endl; return false; diff --git a/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp b/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp index a5ccb74fc..220769077 100644 --- a/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp +++ b/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp @@ -168,7 +168,7 @@ void ResourceGroupwiseConfig::saveAddressBookSettings() // if so, clear the resource to clear the SAB data that is no longer required. // also, set the sequence numbers to 0 so that we know the SAB should be re-fetched in its entirety the next time we do load it TQString sab = mResource->prefs()->systemAddressBook(); - if ( ( mReadAddressBookIds.tqfind( sab ) != mReadAddressBookIds.end() ) && ( selectedRead.tqfind( sab ) == selectedRead.end() ) ) + if ( ( mReadAddressBookIds.find( sab ) != mReadAddressBookIds.end() ) && ( selectedRead.find( sab ) == selectedRead.end() ) ) { mResource->clearCache(); mResource->prefs()->setLastSequenceNumber( 0 ); @@ -195,14 +195,14 @@ void ResourceGroupwiseConfig::updateAddressBookView() GroupWise::AddressBook::List::ConstIterator abIt; for ( abIt = addressBooks.begin(); abIt != addressBooks.end(); ++abIt ) { AddressBookItem *item = new AddressBookItem( mAddressBookView, *abIt ); - if ( selectedRead.tqfind( (*abIt).id ) != selectedRead.end() ) + if ( selectedRead.find( (*abIt).id ) != selectedRead.end() ) item->setOn( true ); mAddressBookBox->insertItem( (*abIt).name ); mWriteAddressBookIds.append( (*abIt).id ); } - int index = mWriteAddressBookIds.tqfindIndex( mResource->prefs()->writeAddressBook() ); + int index = mWriteAddressBookIds.findIndex( mResource->prefs()->writeAddressBook() ); mAddressBookBox->setCurrentItem( index ); } diff --git a/kresources/groupwise/kioslave/groupwise.cpp b/kresources/groupwise/kioslave/groupwise.cpp index 8689309b4..6ea0c8ed4 100644 --- a/kresources/groupwise/kioslave/groupwise.cpp +++ b/kresources/groupwise/kioslave/groupwise.cpp @@ -106,12 +106,12 @@ void Groupwise::get( const KURL &url ) TQString path = url.path(); debugMessage( "Path: " + path ); - if ( path.tqcontains( "/freebusy" ) ) { + if ( path.contains( "/freebusy" ) ) { getFreeBusy( url ); - } else if ( path.tqcontains( "/calendar" ) ) { + } else if ( path.contains( "/calendar" ) ) { getCalendar( url ); - } else if ( path.tqcontains( "/addressbook" ) ) { - if ( url.query().tqcontains( "update=true" ) ) + } else if ( path.contains( "/addressbook" ) ) { + if ( url.query().contains( "update=true" ) ) updateAddressbook( url ); else getAddressbook( url ); @@ -169,8 +169,8 @@ void Groupwise::getFreeBusy( const KURL &url ) // Sanitise local Nuernberg email addresses kdDebug() << "Email before sanitizing: " << email << endl; - email = email.tqreplace(TQRegExp("\\.EMEA5-1\\.EMEA5" ), "" ); - email = email.tqreplace(TQRegExp("\\.Suse.INTERNET" ), "" ); + email = email.replace(TQRegExp("\\.EMEA5-1\\.EMEA5" ), "" ); + email = email.replace(TQRegExp("\\.Suse.INTERNET" ), "" ); kdDebug() << "Email after sanitizing: " << email << endl; TQString u = soapUrl( url ); diff --git a/kresources/groupwise/soap/contactconverter.cpp b/kresources/groupwise/soap/contactconverter.cpp index 605d14d69..d4ab5f6a4 100644 --- a/kresources/groupwise/soap/contactconverter.cpp +++ b/kresources/groupwise/soap/contactconverter.cpp @@ -313,7 +313,7 @@ KABC::Addressee ContactConverter::convertFromContact( ngwt__Contact* contact ) std::vector<std::string> list = contact->emailList->email; std::vector<std::string>::const_iterator it; for ( it = list.begin(); it != list.end(); ++it ) { - if ( emails.tqfind( stringToTQString( *it ) ) == emails.end() ) + if ( emails.find( stringToTQString( *it ) ) == emails.end() ) emails.append( stringToTQString( *it ) ); } } @@ -618,12 +618,12 @@ ngwt__ImAddressList* ContactConverter::convertImAddresses( const KABC::Addressee void ContactConverter::splitField( const TQString &str, TQString &app, TQString &name, TQString &value ) { - int colon = str.tqfind( ':' ); + int colon = str.find( ':' ); if ( colon != -1 ) { TQString tmp = str.left( colon ); value = str.mid( colon + 1 ); - int dash = tmp.tqfind( '-' ); + int dash = tmp.find( '-' ); if ( dash != -1 ) { app = tmp.left( dash ); name = tmp.mid( dash + 1 ); diff --git a/kresources/groupwise/soap/groupwiseserver.cpp b/kresources/groupwise/soap/groupwiseserver.cpp index 3aee84877..93a3f0a27 100644 --- a/kresources/groupwise/soap/groupwiseserver.cpp +++ b/kresources/groupwise/soap/groupwiseserver.cpp @@ -60,7 +60,7 @@ static TQMap<struct soap *,GroupwiseServer *> mServerMap; int myOpen( struct soap *soap, const char *endpoint, const char *host, int port ) { TQMap<struct soap *,GroupwiseServer *>::ConstIterator it; - it = mServerMap.tqfind( soap ); + it = mServerMap.find( soap ); if ( it == mServerMap.end() ) { soap->error = SOAP_FAULT; return SOAP_INVALID_SOCKET; @@ -72,7 +72,7 @@ int myOpen( struct soap *soap, const char *endpoint, const char *host, int port int myClose( struct soap *soap ) { TQMap<struct soap *,GroupwiseServer *>::ConstIterator it; - it = mServerMap.tqfind( soap ); + it = mServerMap.find( soap ); if ( it == mServerMap.end() ) return SOAP_FAULT; return (*it)->gSoapClose( soap ); @@ -81,7 +81,7 @@ int myClose( struct soap *soap ) int mySendCallback( struct soap *soap, const char *s, size_t n ) { TQMap<struct soap *,GroupwiseServer *>::ConstIterator it; - it = mServerMap.tqfind( soap ); + it = mServerMap.find( soap ); if ( it == mServerMap.end() ) return SOAP_FAULT; return (*it)->gSoapSendCallback( soap, s, n ); @@ -90,7 +90,7 @@ int mySendCallback( struct soap *soap, const char *s, size_t n ) size_t myReceiveCallback( struct soap *soap, char *s, size_t n ) { TQMap<struct soap *,GroupwiseServer *>::ConstIterator it; - it = mServerMap.tqfind( soap ); + it = mServerMap.find( soap ); if ( it == mServerMap.end() ) { kdDebug() << "No soap object found" << endl; soap->error = SOAP_FAULT; diff --git a/kresources/groupwise/soap/gwjobs.cpp b/kresources/groupwise/soap/gwjobs.cpp index 7a95cf6e8..6f5918597 100644 --- a/kresources/groupwise/soap/gwjobs.cpp +++ b/kresources/groupwise/soap/gwjobs.cpp @@ -84,7 +84,7 @@ void ReadAddressBooksJob::run() } else { TQString id = GWConverter::stringToTQString( (*it)->id ); kdDebug() << "Reading ID: " << id << endl; - if ( mAddressBookIds.tqfind( id ) != mAddressBookIds.end() ) { + if ( mAddressBookIds.find( id ) != mAddressBookIds.end() ) { readAddressBook( *(*it)->id ); mProgress += 100; } @@ -438,7 +438,7 @@ void ReadCalendarJob::run() // perform consistency checks kdDebug() << "Total count of items of all types in folders we read: " << totalItems << endl; kdDebug() << "Folders we read contained " << totals.appointments << " appointments, " << totals.notes << " notes, and " << totals.tasks << " tasks." << endl; - kdDebug() << "Local calendar now tqcontains " << mCalendar->rawEvents().count() << " events and " << mCalendar->rawJournals().count() << " journals, and " << mCalendar->rawTodos().count() << " todos." << endl; + kdDebug() << "Local calendar now contains " << mCalendar->rawEvents().count() << " events and " << mCalendar->rawJournals().count() << " journals, and " << mCalendar->rawTodos().count() << " todos." << endl; if ( totals.appointments == mCalendar->rawEvents().count() ) kdDebug() << "All events accounted for." << endl; else diff --git a/kresources/groupwise/soap/ksslsocket.cpp b/kresources/groupwise/soap/ksslsocket.cpp index c07708799..30e8bb643 100644 --- a/kresources/groupwise/soap/ksslsocket.cpp +++ b/kresources/groupwise/soap/ksslsocket.cpp @@ -150,12 +150,12 @@ void KSSLSocket::setMetaData( const TQString &key, const TQVariant &data ) bool KSSLSocket::hasMetaData( const TQString &key ) { - return d->metaData.tqcontains(key); + return d->metaData.contains(key); } TQString KSSLSocket::metaData( const TQString &key ) { - if( d->metaData.tqcontains(key) ) + if( d->metaData.contains(key) ) return d->metaData[key]; return TQString(); } diff --git a/kresources/groupwise/soap/soapC.cpp b/kresources/groupwise/soap/soapC.cpp index 17c52d602..b446bc4ba 100644 --- a/kresources/groupwise/soap/soapC.cpp +++ b/kresources/groupwise/soap/soapC.cpp @@ -12992,7 +12992,7 @@ static const struct soap_code_map soap_codes_ngwt__FilterOp[] = { (long)lt, "lt" }, { (long)gte, "gte" }, { (long)lte, "lte" }, - { (long)tqcontains, "tqcontains" }, + { (long)contains, "contains" }, { (long)containsWord, "containsWord" }, { (long)begins, "begins" }, { (long)exists, "exists" }, diff --git a/kresources/groupwise/soap/soapStub.h b/kresources/groupwise/soap/soapStub.h index 7ba6692e9..829237fda 100644 --- a/kresources/groupwise/soap/soapStub.h +++ b/kresources/groupwise/soap/soapStub.h @@ -115,7 +115,7 @@ enum ngwt__FilterDate {Today = 0, Tomorrow = 1, ThisMonth = 2, ThisWeek = 3, Thi #ifndef SOAP_TYPE_ngwt__FilterOp #define SOAP_TYPE_ngwt__FilterOp (357) /* ngwt:FilterOp */ -enum ngwt__FilterOp {and_ = 0, or_ = 1, not_ = 2, eq = 3, ne = 4, gt = 5, lt = 6, gte = 7, lte = 8, tqcontains = 9, containsWord = 10, begins = 11, exists = 12, notExist = 13, isOf = 14, isNotOf = 15, fieldEqual = 16, fieldGTE = 17, fieldGT = 18, fieldLTE = 19, fieldLT = 20, fieldNE = 21, fieldDateEqual = 22}; +enum ngwt__FilterOp {and_ = 0, or_ = 1, not_ = 2, eq = 3, ne = 4, gt = 5, lt = 6, gte = 7, lte = 8, contains = 9, containsWord = 10, begins = 11, exists = 12, notExist = 13, isOf = 14, isNotOf = 15, fieldEqual = 16, fieldGTE = 17, fieldGT = 18, fieldLTE = 19, fieldLT = 20, fieldNE = 21, fieldDateEqual = 22}; #endif #ifndef SOAP_TYPE_ngwt__FolderACLtqStatus diff --git a/kresources/groupwise/soap/stdsoap2.h b/kresources/groupwise/soap/stdsoap2.h index 3a337402a..603d4def9 100644 --- a/kresources/groupwise/soap/stdsoap2.h +++ b/kresources/groupwise/soap/stdsoap2.h @@ -1257,8 +1257,8 @@ struct soap_dom_element struct soap_dom_element &add(struct soap_dom_attribute&); soap_dom_iterator begin(); soap_dom_iterator end(); - soap_dom_iterator tqfind(const char *nstr, const char *name); - soap_dom_iterator tqfind(int type); + soap_dom_iterator find(const char *nstr, const char *name); + soap_dom_iterator find(int type); void unlink(); soap_dom_element(); soap_dom_element(struct soap *soap); |