-rw-r--r-- | libkdepim/ksyncmanager.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index 5175f94..7ee56e4 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp @@ -101,3 +101,11 @@ void KSyncManager::fillSyncMenu() prof.clear(); +#ifdef DESKTOP_VERSION +#ifdef _WIN32_ + prof << i18n("OutLook(not_implemented)"); +#else + prof << i18n("KDE_Desktop"); +#endif +#else prof << i18n("Sharp_DTM"); +#endif prof << i18n("Local_file"); @@ -130,2 +138,3 @@ void KSyncManager::fillSyncMenu() } +#ifndef DESKTOP_VERSION else if (!app_dir.exists(QDir::homeDirPath()+"/Applications/dtm" ) ) { @@ -133,2 +142,3 @@ void KSyncManager::fillSyncMenu() } +#endif mSyncMenu->removeItem( 1002 ); @@ -188,3 +198,7 @@ void KSyncManager::slotSyncMenu( int action ) if ( action == 1000 ) { +#ifdef DESKTOP_VERSION + syncKDE(); +#else syncSharp(); +#endif @@ -743,2 +757,32 @@ void KSyncManager::confSync() } +void KSyncManager::syncKDE() +{ + emit save(); + switch(mTargetApp) + { + case (KAPI): + + break; + case (KOPI): + { + QString command ="./kdecaldump"; + system ( command.latin1()); + if ( syncWithFile( "/tmp/kdedumpall.ics",true ) ) { + if ( mWriteBackFile ) { + command += " --read"; + system ( command.latin1()); + } + } + + } + break; + case (PWMPI): + + break; + default: + qDebug("KSyncManager::slotSyncMenu: invalid apptype selected"); + break; + + } +} |