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 | 539a35866f0bac8f00e493654d4a8ec6863726e2 (patch) | |
tree | 8991e5472fe88379787cafa85542d94706bd6fa4 /conduits/abbrowserconduit/abbrowser-conduit.cc | |
parent | 45598e35650c5806ecf2d684afeeb0da41c3ff6b (diff) | |
download | kpilot-539a35866f0bac8f00e493654d4a8ec6863726e2.tar.gz kpilot-539a35866f0bac8f00e493654d4a8ec6863726e2.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'conduits/abbrowserconduit/abbrowser-conduit.cc')
-rw-r--r-- | conduits/abbrowserconduit/abbrowser-conduit.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/conduits/abbrowserconduit/abbrowser-conduit.cc b/conduits/abbrowserconduit/abbrowser-conduit.cc index 7de5582..8885bbf 100644 --- a/conduits/abbrowserconduit/abbrowser-conduit.cc +++ b/conduits/abbrowserconduit/abbrowser-conduit.cc @@ -171,7 +171,7 @@ void AbbrowserConduit::_mapContactsToPilot(TQMap < recordid_t, TQString > &idCon // if we do (this can come from a copy/paste in kaddressbook, etc.), then we need // to reset our Addressee so that we can assign him a new pilot Id later and sync // him properly. if we don't do this, we'll lose one of these on the pilot. - if (!idContactMap.tqcontains(id)) + if (!idContactMap.contains(id)) { idContactMap.insert(id, aContact.uid()); } @@ -619,7 +619,7 @@ void AbbrowserConduit::slotPalmRecToPC() } // already synced, so skip: - if(syncedIds.tqcontains(palmRec->id())) + if(syncedIds.contains(palmRec->id())) { KPILOT_DELETE(palmRec); TQTimer::singleShot(0, this, TQT_SLOT(slotPalmRecToPC())); @@ -696,7 +696,7 @@ void AbbrowserConduit::slotPCRecToPalm() } // look into the list of already synced record ids to see if the addressee hasn't already been synced - if (syncedIds.tqcontains(rid)) + if (syncedIds.contains(rid)) { DEBUGKPILOT << ": address with id " << rid << " already synced." << endl; TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); @@ -819,7 +819,7 @@ void AbbrowserConduit::slotDeleteUnsyncedPCRecords() AddressBook::Iterator abit; for (abit = aBook->begin(); abit != aBook->end(); ++abit) { - if (!uids.tqcontains((*abit).uid())) + if (!uids.contains((*abit).uid())) { DEBUGKPILOT<<"Deleting addressee "<<(*abit).realName()<<" from PC (is not on HH, and syncing with HH->PC direction)"<<endl; abChanged = true; @@ -843,7 +843,7 @@ void AbbrowserConduit::slotDeleteUnsyncedHHRecords() RecordIDList::iterator it; for ( it = ids.begin(); it != ids.end(); ++it ) { - if (!syncedIds.tqcontains(*it)) + if (!syncedIds.contains(*it)) { DEBUGKPILOT<<"Deleting record with ID "<<*it<<" from handheld (is not on PC, and syncing with PC->HH direction)"<<endl; fDatabase->deleteRecord(*it); @@ -1150,7 +1150,7 @@ bool AbbrowserConduit::_deleteAddressee(Addressee &pcAddr, PilotAddress*backupAd if (palmAddr) { - if (!syncedIds.tqcontains(palmAddr->id())) { + if (!syncedIds.contains(palmAddr->id())) { DEBUGKPILOT << fname << ": adding id:["<< palmAddr->id() << "] to syncedIds." << endl; syncedIds.append(palmAddr->id()); } @@ -1160,7 +1160,7 @@ bool AbbrowserConduit::_deleteAddressee(Addressee &pcAddr, PilotAddress*backupAd } else if (backupAddr) { - if (!syncedIds.tqcontains(backupAddr->id())) { + if (!syncedIds.contains(backupAddr->id())) { DEBUGKPILOT << fname << ": adding id:["<< backupAddr->id() << "] to syncedIds." << endl; syncedIds.append(backupAddr->id()); } @@ -1205,7 +1205,7 @@ bool AbbrowserConduit::_savePalmAddr(PilotAddress *palmAddr, Addressee &pcAddr) if(pilotId != 0) { palmAddr->setID(pilotId); - if (!syncedIds.tqcontains(pilotId)) { + if (!syncedIds.contains(pilotId)) { DEBUGKPILOT << fname << ": adding id:["<< pilotId << "] to syncedIds." << endl; syncedIds.append(pilotId); } @@ -1339,14 +1339,14 @@ bool AbbrowserConduit::_equal(const PilotAddress *piAddress, const Addressee &ab return false; } for (TQStringList::Iterator it = abEmails.begin(); it != abEmails.end(); it++) { - if (!piEmails.tqcontains(*it)) + if (!piEmails.contains(*it)) { DEBUGKPILOT << fname << ": pilot e-mail missing" << endl; return false; } } for (TQStringList::Iterator it = piEmails.begin(); it != piEmails.end(); it++) { - if (!abEmails.tqcontains(*it)) + if (!abEmails.contains(*it)) { DEBUGKPILOT << fname << ": kabc e-mail missing" << endl; return false; @@ -1861,7 +1861,7 @@ Addressee AbbrowserConduit::_findMatch(const PilotAddress & pilotAddress) const { if (rid==pilotAddress.id()) return abEntry;// yes, we found it // skip this addressee, as it can an other corresponding address on the handheld - if (allIds.tqcontains(rid)) continue; + if (allIds.contains(rid)) continue; } } |