author | zautrix <zautrix> | 2005-08-24 17:20:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-24 17:20:24 (UTC) |
commit | 645ceb7a95dce4716eb87a1b9191d3f3c1657be3 (patch) (side-by-side diff) | |
tree | 674230c364bf35d57143f5e7f14e6a9b7787f581 | |
parent | 2acca9aff5bd651923b5d728712a0fd80b3d54e9 (diff) | |
download | kdepimpi-645ceb7a95dce4716eb87a1b9191d3f3c1657be3.zip kdepimpi-645ceb7a95dce4716eb87a1b9191d3f3c1657be3.tar.gz kdepimpi-645ceb7a95dce4716eb87a1b9191d3f3c1657be3.tar.bz2 |
fixx
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index 2a75bfb..d71264f 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp @@ -1073,65 +1073,65 @@ void KSyncManager::showProgressBar(int percentage, QString caption, int total) qApp->processEvents(); } void KSyncManager::hideProgressBar() { bar->hide(); qApp->processEvents(); } bool KSyncManager::isProgressBarCanceled() { return !bar->isVisible(); } QString KSyncManager::syncFileName() { QString fn = "tempfile"; switch(mTargetApp) { case (KAPI): fn = "tempsyncab.vcf"; break; case (KOPI): fn = "tempsynccal.ics"; break; case (PWMPI): fn = "tempsyncpw.pwm"; break; default: break; } -#ifdef _WIN32_ +#ifdef DESKTOP_VERSION return locateLocal( "tmp", fn ); #else return (QString( "/tmp/" )+ fn ); #endif } void KSyncManager::syncPi() { mIsKapiFile = true; mPisyncFinished = false; qApp->processEvents(); if ( mAskForPreferences ) if ( !edit_pisync_options()) { mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") ); mPisyncFinished = true; return; } bool ok; Q_UINT16 port = mActiveSyncPort.toUInt(&ok); if ( ! ok ) { mParent->topLevelWidget()->setCaption( i18n("Sorry, no valid port.Syncing cancelled.") ); mPisyncFinished = true; return; } KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, port, mActiveSyncIP, this, mParent->topLevelWidget() ); connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int )), this, SLOT(deleteCommandSocket(KCommandSocket*, int)) ); commandSocket->readFile( syncFileName() ); } void KSyncManager::deleteCommandSocket(KCommandSocket*s, int state) { //enum { success, errorW, errorR, quiet }; |