-rw-r--r-- | kaddressbook/kabcore.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 590cc82..ae0a068 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -428,5 +428,5 @@ KABCore::~KABCore() void KABCore::receive( const QCString& cmsg, const QByteArray& data ) { - qDebug("KA: QCOP message received: %s ", cmsg.data() ); + //qDebug("KA: QCOP message received: %s ", cmsg.data() ); if ( cmsg == "setDocument(QString)" ) { QDataStream stream( data, IO_ReadOnly ); @@ -443,5 +443,5 @@ void KABCore::toggleBeamReceive( ) #ifndef DESKTOP_VERSION if ( infrared ) { - qDebug("AB disable BeamReceive "); + qDebug("KA: AB disable BeamReceive "); delete infrared; infrared = 0; @@ -449,5 +449,5 @@ void KABCore::toggleBeamReceive( ) return; } - qDebug("AB enable BeamReceive "); + qDebug("KA: AB enable BeamReceive "); mActionBR->setChecked(true); @@ -569,5 +569,5 @@ void KABCore::saveSettings() KABPrefs::instance()->mCurrentIncSearchField = mIncSearchWidget->currentItem(); KABPrefs::instance()->writeConfig(); - qDebug("KABCore::saveSettings() "); + qDebug("KA: KABCore::saveSettings() "); } @@ -907,5 +907,5 @@ void KABCore::writeToPhone( ) message(i18n("Export to phone finished!")); else - qDebug(i18n("Error exporting to phone")); + qDebug(i18n("KA: Error exporting to phone")); } void KABCore::beamVCard() @@ -978,5 +978,5 @@ void KABCore::beamVCard(const QStringList& uids) ir->send( fileName, description, "text/x-vCard" ); } else { - qDebug("Error open temp beam file "); + qDebug("KA: Error open temp beam file "); return; } @@ -2685,5 +2685,5 @@ KABC::Addressee KABCore::getLastSyncAddressee() lse = mAddressBook->findByUid( "last-syncAddressee-"+mCurrentSyncDevice ); if (lse.isEmpty()) { - qDebug("Creating new last-syncAddressee "); + qDebug("KA: Creating new last-syncAddressee "); lse.setUid( "last-syncAddressee-"+mCurrentSyncDevice ); QString sum = ""; @@ -2719,6 +2719,6 @@ int KABCore::takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, i bool remCh, locCh; remCh = ( remote->getCsum(mCurrentSyncDevice) != local->getCsum(mCurrentSyncDevice) ); - if ( remCh ) - qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() ); + //if ( remCh ) + // qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() ); locCh = ( localMod > mLastAddressbookSync ); //qDebug("cahnged rem %d loc %d",remCh, locCh ); @@ -2857,12 +2857,12 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo if ( KSyncManager::mRequestedSyncEvent.isValid() ) { mLastAddressbookSync = KSyncManager::mRequestedSyncEvent; - qDebug("using extern time for calendar sync: %s ", mLastAddressbookSync.toString().latin1() ); + qDebug("KA: using extern time for calendar sync: %s ", mLastAddressbookSync.toString().latin1() ); } else { - qDebug("KSyncManager::mRequestedSyncEvent has invalid datatime "); + qDebug("KA: KSyncManager::mRequestedSyncEvent has invalid datatime "); } } QDateTime modifiedCalendar = mLastAddressbookSync; addresseeLSync = getLastSyncAddressee(); - qDebug("Last Sync %s ", addresseeLSync.revision().toString().latin1()); + qDebug("KA: Last Sync %s ", addresseeLSync.revision().toString().latin1()); addresseeR = remote->findByUid("last-syncAddressee-"+mCurrentSyncName ); if ( !addresseeR.isEmpty() ) { @@ -3126,5 +3126,5 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, mes, i18n("KA/Pi Synchronization"),i18n("Write back"))) { - qDebug("cancelled "); + qDebug("KA: WB cancelled "); return false; } @@ -3148,5 +3148,5 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) bool syncOK = false; if ( abLocal.load() ) { - qDebug("Sync:AB loaded %s,sync mode %d",filename.latin1(), mode ); + qDebug("KA: Sync::AB loaded %s,sync mode %d",filename.latin1(), mode ); bool external = false; bool isXML = false; @@ -3158,5 +3158,5 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) external = !manager->mIsKapiFile; if ( external ) { - qDebug("Sync:Setting vcf mode to external "); + qDebug("KA: Sync::Setting vcf mode to external "); mGlobalSyncMode = SYNC_MODE_EXTERNAL; AddressBook::Iterator it; @@ -3178,7 +3178,7 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) if ( external ) abLocal.removeSyncAddressees( !isXML); - qDebug("Sync:Saving remote AB "); + qDebug("KA: Sync::Saving remote AB "); if ( ! abLocal.saveAB()) - qDebug("Error writing back AB to file "); + qDebug("KA: sync::Error writing back AB to file "); if ( external ) { // afterwrite processing @@ -3198,5 +3198,5 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) void KABCore::removeSyncInfo( QString syncProfile) { - qDebug("AB:removeSyncInfo for profile %s ", syncProfile.latin1()); + qDebug("KA: AB:removeSyncInfo for profile %s ", syncProfile.latin1()); mAddressBook->removeSyncInfo( syncProfile ); setModified(); @@ -3218,5 +3218,5 @@ bool KABCore::syncExternal(KSyncManager* manager, QString resource) message(i18n("Loading DTM address data..."), false); if ( abLocal.load() ) { - qDebug("AB sharp loaded ,sync device %s",mCurrentSyncDevice.latin1()); + qDebug("KA: AB sharp loaded ,sync device %s",mCurrentSyncDevice.latin1()); mGlobalSyncMode = SYNC_MODE_EXTERNAL; message(i18n("Sync preprocessing..."),false); @@ -3266,5 +3266,5 @@ bool KABCore::syncPhone() { abLocal.importFromFile( fileName ); - qDebug("AB phone loaded ,sync device %s",mCurrentSyncDevice.latin1()); + qDebug("KA: AB phone loaded ,sync device %s",mCurrentSyncDevice.latin1()); mGlobalSyncMode = SYNC_MODE_EXTERNAL; abLocal.preparePhoneSync( mCurrentSyncDevice, true ); |