author | zautrix <zautrix> | 2004-10-16 23:24:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-16 23:24:31 (UTC) |
commit | 6564856660d583425a5f5d51bf77bc52c01da444 (patch) (side-by-side diff) | |
tree | 223ef7aab1d489113681e3f29d07ca499bb6d1c5 /libkdepim/ksyncmanager.cpp | |
parent | 4bab2cac8beb6103b982bd2b42eeb7061a18a0d1 (diff) | |
download | kdepimpi-6564856660d583425a5f5d51bf77bc52c01da444.zip kdepimpi-6564856660d583425a5f5d51bf77bc52c01da444.tar.gz kdepimpi-6564856660d583425a5f5d51bf77bc52c01da444.tar.bz2 |
added KDE sync
-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; + + } +} |