@ -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 . tq contains( id ) )
if ( ! idContactMap . contains( id ) )
{
idContactMap . insert ( id , aContact . uid ( ) ) ;
}
@ -619,7 +619,7 @@ void AbbrowserConduit::slotPalmRecToPC()
}
// already synced, so skip:
if ( syncedIds . tq contains( 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 . tq contains( 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 . tq contains( ( * 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 . tq contains( * 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 . tq contains( 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 . tq contains( 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 . tq contains( 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 . tq contains( * 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 . tq contains( * 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 . tq contains( rid ) ) continue ;
if ( allIds . contains( rid ) ) continue ;
}
}