author | zautrix <zautrix> | 2005-01-26 00:32:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-26 00:32:18 (UTC) |
commit | c3ec0a5a43fb328f2d190b8adee1ef662746fb41 (patch) (side-by-side diff) | |
tree | dd34f587205f8567a59bf7abb6161e1ba6667444 /libkdepim/ksyncmanager.cpp | |
parent | eeb9059d1cbf2ffb13300d0491b4b61126507373 (diff) | |
download | kdepimpi-c3ec0a5a43fb328f2d190b8adee1ef662746fb41.zip kdepimpi-c3ec0a5a43fb328f2d190b8adee1ef662746fb41.tar.gz kdepimpi-c3ec0a5a43fb328f2d190b8adee1ef662746fb41.tar.bz2 |
debug fixes
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index f488a07..3adbf61 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp @@ -183,9 +183,9 @@ void KSyncManager::slotClearMenu( int action ) mImplementation->removeSyncInfo( syncDevice ); } void KSyncManager::slotSyncMenu( int action ) { - qDebug("syncaction %d ", action); + qDebug("KSM::syncaction %d ", action); if ( action == 5000 ) return; mSyncWithDesktop = false; if ( action == 0 ) { @@ -291,9 +291,9 @@ void KSyncManager::slotSyncMenu( int action ) if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); break; default: - qDebug("KSyncManager::slotSyncMenu: invalid apptype selected"); + qDebug("KSM::slotSyncMenu: invalid apptype selected"); break; } } else { @@ -439,18 +439,18 @@ void KSyncManager::syncLocalFile() case (PWMPI): ext = "(*.pwm)"; break; default: - qDebug("KSyncManager::syncLocalFile: invalid apptype selected"); + qDebug("KSM::syncLocalFile: invalid apptype selected"); break; } fn =KFileDialog:: getOpenFileName( fn, i18n("Sync filename"+ext), mParent ); if ( fn == "" ) return; if ( syncWithFile( fn, false ) ) { - qDebug("syncLocalFile() successful "); + qDebug("KSM::syncLocalFile() successful "); } } @@ -497,9 +497,9 @@ bool KSyncManager::syncWithFile( QString fn , bool quick ) void KSyncManager::quickSyncLocalFile() { if ( syncWithFile( mPrefs->mLastSyncedLocalFile, true ) ) { - qDebug("quick syncLocalFile() successful "); + qDebug("KSM::quick syncLocalFile() successful "); } } @@ -568,9 +568,9 @@ int KSyncManager::ringSync() case (PWMPI): includeInRingSync = temp->getIncludeInRingSyncPWM(); break; default: - qDebug("KSyncManager::ringSync: invalid apptype selected"); + qDebug("KSM::ringSync: invalid apptype selected"); break; } @@ -618,9 +618,9 @@ int KSyncManager::ringSync() if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); break; default: - qDebug("KSyncManager::slotSyncMenu: invalid apptype selected"); + qDebug("KSM: invalid apptype selected"); break; } } else { if ( temp->getIsPhoneSync() ) { @@ -705,9 +705,9 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) postCommand = prof->getPostSyncCommandPWM(); localTempFile = prof->getLocalTempFilePWM(); break; default: - qDebug("KSyncManager::syncRemote: invalid apptype selected"); + qDebug("KSM::syncRemote: invalid apptype selected"); break; } @@ -725,9 +725,9 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) int result = system ( preCommand ); // 0 : okay // 256: no such file or dir // - qDebug("Sync: Remote copy result(0 = okay): %d ",result ); + qDebug("KSM::Sync: Remote copy result(0 = okay): %d ",result ); if ( result != 0 ) { unsigned int len = maxlen; while ( len < preCommand.length() ) { preCommand.insert( len , "\n" ); @@ -753,9 +753,9 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) } mParent->topLevelWidget()->setCaption ( i18n( "Writing back file ..." ) ); result = system ( postCommand ); - qDebug("Sync:Writing back file result: %d ", result); + qDebug("KSM::Sync:Writing back file result: %d ", result); if ( result != 0 ) { mParent->topLevelWidget()->setCaption ( i18n( "Writing back file result: " )+QString::number( result ) ); return; } else { @@ -948,9 +948,9 @@ void KSyncManager::syncKDE() case (PWMPI): break; default: - qDebug("KSyncManager::slotSyncMenu: invalid apptype selected"); + qDebug("KSM::slotSyncMenu: invalid apptype selected"); break; } } @@ -958,9 +958,9 @@ void KSyncManager::syncKDE() void KSyncManager::syncSharp() { if ( ! syncExternalApplication("sharp") ) - qDebug("ERROR sync sharp "); + qDebug("KSM::ERROR sync sharp "); } bool KSyncManager::syncExternalApplication(QString resource) { @@ -972,9 +972,9 @@ bool KSyncManager::syncExternalApplication(QString resource) mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") ); return false; } - qDebug("Sync extern %s", resource.latin1()); + qDebug("KSM::Sync extern %s", resource.latin1()); bool syncOK = mImplementation->syncExternal(this, resource); return syncOK; @@ -1119,9 +1119,9 @@ KServerSocket:: KServerSocket ( QString pw, Q_UINT16 port, int backlog, QObject void KServerSocket::newConnection ( int socket ) { // qDebug("KServerSocket:New connection %d ", socket); if ( mSocket ) { - qDebug("KServerSocket::newConnection Socket deleted! "); + qDebug("KSS::newConnection Socket deleted! "); delete mSocket; mSocket = 0; } mSocket = new QSocket( this ); @@ -1143,9 +1143,9 @@ void KServerSocket::readClient() { if ( blockRC ) return; if ( mSocket == 0 ) { - qDebug("ERROR::KServerSocket::readClient(): mSocket == 0 "); + qDebug("ERROR::KSS::readClient(): mSocket == 0 "); return; } //qDebug("KServerSocket::readClient()"); if ( mSocket->canReadLine() ) { @@ -1218,9 +1218,9 @@ void KServerSocket::send_file() if ( secs > 180 ) { if ( secs > 300 ) { if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(0, i18n("The clocks of the syncing\ndevices have a difference\n of more than 5 minutes.\nPlease adjust your clocks.\n<b>You may get wrong syncing results!<\b>\nPlease confirm synchronization!"), i18n("High clock skew!"),i18n("Synchronize!"))) { - qDebug("cancelled "); + qDebug("KSS::Sync cancelled ,cs"); return ; } } QFont f = label->font(); @@ -1464,9 +1464,9 @@ void KCommandSocket::deleteSocket() //qDebug("KCommandSocket::deleteSocket() "); if ( mTimerSocket->isActive () ) { mTimerSocket->stop(); mRetVal = errorTO; - qDebug("Connection to remote host timed out"); + qDebug("KCS::Connection to remote host timed out"); if ( mSocket ) { mSocket->close(); //if ( mSocket->state() == QSocket::Idle ) // deleteSocket(); |