author | zautrix <zautrix> | 2004-10-16 23:24:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-16 23:24:31 (UTC) |
commit | 6564856660d583425a5f5d51bf77bc52c01da444 (patch) (unidiff) | |
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() | |||
101 | prof.clear(); | 101 | prof.clear(); |
102 | #ifdef DESKTOP_VERSION | ||
103 | #ifdef _WIN32_ | ||
104 | prof << i18n("OutLook(not_implemented)"); | ||
105 | #else | ||
106 | prof << i18n("KDE_Desktop"); | ||
107 | #endif | ||
108 | #else | ||
102 | prof << i18n("Sharp_DTM"); | 109 | prof << i18n("Sharp_DTM"); |
110 | #endif | ||
103 | prof << i18n("Local_file"); | 111 | prof << i18n("Local_file"); |
@@ -130,2 +138,3 @@ void KSyncManager::fillSyncMenu() | |||
130 | } | 138 | } |
139 | #ifndef DESKTOP_VERSION | ||
131 | else if (!app_dir.exists(QDir::homeDirPath()+"/Applications/dtm" ) ) { | 140 | else if (!app_dir.exists(QDir::homeDirPath()+"/Applications/dtm" ) ) { |
@@ -133,2 +142,3 @@ void KSyncManager::fillSyncMenu() | |||
133 | } | 142 | } |
143 | #endif | ||
134 | mSyncMenu->removeItem( 1002 ); | 144 | mSyncMenu->removeItem( 1002 ); |
@@ -188,3 +198,7 @@ void KSyncManager::slotSyncMenu( int action ) | |||
188 | if ( action == 1000 ) { | 198 | if ( action == 1000 ) { |
199 | #ifdef DESKTOP_VERSION | ||
200 | syncKDE(); | ||
201 | #else | ||
189 | syncSharp(); | 202 | syncSharp(); |
203 | #endif | ||
190 | 204 | ||
@@ -743,2 +757,32 @@ void KSyncManager::confSync() | |||
743 | } | 757 | } |
758 | void KSyncManager::syncKDE() | ||
759 | { | ||
760 | emit save(); | ||
761 | switch(mTargetApp) | ||
762 | { | ||
763 | case (KAPI): | ||
764 | |||
765 | break; | ||
766 | case (KOPI): | ||
767 | { | ||
768 | QString command ="./kdecaldump"; | ||
769 | system ( command.latin1()); | ||
770 | if ( syncWithFile( "/tmp/kdedumpall.ics",true ) ) { | ||
771 | if ( mWriteBackFile ) { | ||
772 | command += " --read"; | ||
773 | system ( command.latin1()); | ||
774 | } | ||
775 | } | ||
776 | |||
777 | } | ||
778 | break; | ||
779 | case (PWMPI): | ||
780 | |||
781 | break; | ||
782 | default: | ||
783 | qDebug("KSyncManager::slotSyncMenu: invalid apptype selected"); | ||
784 | break; | ||
785 | |||
786 | } | ||
787 | } | ||
744 | 788 | ||