-rw-r--r-- | kaddressbook/kabcore.cpp | 14 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 14 | ||||
-rw-r--r-- | korganizer/calendarview.h | 2 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 1 | ||||
-rw-r--r-- | libkdepim/kpimprefs.h | 18 | ||||
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 100 | ||||
-rw-r--r-- | libkdepim/ksyncmanager.h | 20 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmdoc.cpp | 6 |
8 files changed, 79 insertions, 96 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index b014cba..9041e45 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2607,3 +2607,3 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
2607 | } else { | 2607 | } else { |
2608 | if ( ! KABPrefs::instance()->mWriteBackExistingOnly ) { | 2608 | if ( ! syncManager->mWriteBackExistingOnly ) { |
2609 | inL.removeID(mCurrentSyncDevice ); | 2609 | inL.removeID(mCurrentSyncDevice ); |
@@ -2624,3 +2624,3 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
2624 | } else { | 2624 | } else { |
2625 | if ( ! KABPrefs::instance()->mWriteBackExistingOnly ) { | 2625 | if ( ! syncManager->mWriteBackExistingOnly ) { |
2626 | ++addedAddresseeR; | 2626 | ++addedAddresseeR; |
@@ -2660,3 +2660,3 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
2660 | mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n"),addedAddressee, addedAddresseeR, changedLocal, changedRemote, deletedAddresseeL, deletedAddresseeR ); | 2660 | mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n"),addedAddressee, addedAddresseeR, changedLocal, changedRemote, deletedAddresseeL, deletedAddresseeR ); |
2661 | if ( KABPrefs::instance()->mShowSyncSummary ) { | 2661 | if ( syncManager->mShowSyncSummary ) { |
2662 | KMessageBox::information(this, mes, i18n("KA/Pi Synchronization") ); | 2662 | KMessageBox::information(this, mes, i18n("KA/Pi Synchronization") ); |
@@ -2670,3 +2670,3 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
2670 | bool KABCore::sync(KSyncManager* manager, QString filename, int mode) | 2670 | bool KABCore::sync(KSyncManager* manager, QString filename, int mode) |
2671 | { | 2671 | { |
2672 | 2672 | ||
@@ -2721,3 +2721,3 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) | |||
2721 | if ( syncOK ) { | 2721 | if ( syncOK ) { |
2722 | if ( KABPrefs::instance()->mWriteBackFile ) | 2722 | if ( syncManager->mWriteBackFile ) |
2723 | { | 2723 | { |
@@ -2771,5 +2771,5 @@ bool KABCore::syncExternal(KSyncManager* manager, QString resource) | |||
2771 | qDebug("KABCore::syncExternal: why do we acces here KABPrefs and not somehow KSyncProfile? "); | 2771 | qDebug("KABCore::syncExternal: why do we acces here KABPrefs and not somehow KSyncProfile? "); |
2772 | syncOK = synchronizeAddressbooks( mAddressBook, &abLocal, KABPrefs::instance()->mSyncAlgoPrefs ); | 2772 | syncOK = synchronizeAddressbooks( mAddressBook, &abLocal, syncManager->mSyncAlgoPrefs ); |
2773 | if ( syncOK ) { | 2773 | if ( syncOK ) { |
2774 | if ( KABPrefs::instance()->mWriteBackFile ) { | 2774 | if ( syncManager->mWriteBackFile ) { |
2775 | abLocal.saveAB(); | 2775 | abLocal.saveAB(); |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 38b55f7..1de2759 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -879,17 +879,3 @@ Event* CalendarView::getLastSyncEvent() | |||
879 | } | 879 | } |
880 | // probaly useless | ||
881 | void CalendarView::setupExternSyncProfiles() | ||
882 | { | ||
883 | Event* lse; | ||
884 | mExternLastSyncEvent.clear(); | ||
885 | int i; | ||
886 | for ( i = 0; i < KOPrefs::instance()->mExternSyncProfiles.count(); ++i ) { | ||
887 | lse = mCalendar->event( "last-syncEvent-"+ KOPrefs::instance()->mExternSyncProfiles[i] ); | ||
888 | if ( lse ) | ||
889 | mExternLastSyncEvent.append( lse ); | ||
890 | else | ||
891 | qDebug("Last Sync event not found for %s ", KOPrefs::instance()->mExternSyncProfiles[i].latin1()); | ||
892 | } | ||
893 | 880 | ||
894 | } | ||
895 | // we check, if the to delete event has a id for a profile | 881 | // we check, if the to delete event has a id for a profile |
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index a713c91..0f7e696 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -115,3 +115,2 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
115 | Incidence *currentSelection(); | 115 | Incidence *currentSelection(); |
116 | void setupExternSyncProfiles(); | ||
117 | 116 | ||
@@ -546,3 +545,2 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
546 | Incidence *mMoveIncidence; | 545 | Incidence *mMoveIncidence; |
547 | QPtrList<Event> mExternLastSyncEvent; | ||
548 | KOTodoView *mTodoList; | 546 | KOTodoView *mTodoList; |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index ec69b11..9104347 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -992,3 +992,2 @@ void MainWindow::fillSyncMenu() | |||
992 | } | 992 | } |
993 | mView->setupExternSyncProfiles(); | ||
994 | } | 993 | } |
diff --git a/libkdepim/kpimprefs.h b/libkdepim/kpimprefs.h index 01c57a3..6f92919 100644 --- a/libkdepim/kpimprefs.h +++ b/libkdepim/kpimprefs.h | |||
@@ -58,19 +58,3 @@ class KPimPrefs : public KPrefs | |||
58 | 58 | ||
59 | // sync stuff | 59 | |
60 | QString mLocalMachineName; | ||
61 | QStringList mExternSyncProfiles; | ||
62 | QStringList mSyncProfileNames; | ||
63 | bool mAskForPreferences; | ||
64 | bool mShowSyncSummary; | ||
65 | bool mShowSyncEvents; | ||
66 | bool mShowTodoInAgenda; | ||
67 | bool mWriteBackExistingOnly; | ||
68 | int mSyncAlgoPrefs; | ||
69 | int mRingSyncAlgoPrefs; | ||
70 | bool mWriteBackFile; | ||
71 | int mWriteBackInFuture; | ||
72 | QString mPhoneDevice; | ||
73 | QString mPhoneConnection; | ||
74 | QString mPhoneModel; | ||
75 | QString mLastSyncedLocalFile; // save! | ||
76 | 60 | ||
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index 07e6761..c0cc840 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp | |||
@@ -54,3 +54,3 @@ | |||
54 | KSyncManager::KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu) | 54 | KSyncManager::KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu) |
55 | : QObject(), mParent(parent), mImplementation(implementation), mTargetApp(ta), mPrefs(prefs), mSyncMenu(syncmenu) | 55 | : QObject(), mParent(parent), mImplementation(implementation), mTargetApp(ta), mSyncMenu(syncmenu) |
56 | { | 56 | { |
@@ -88,3 +88,3 @@ void KSyncManager::fillSyncMenu() | |||
88 | QStringList prof = config.readListEntry("SyncProfileNames"); | 88 | QStringList prof = config.readListEntry("SyncProfileNames"); |
89 | mPrefs->mLocalMachineName = config.readEntry("LocalMachineName","undefined"); | 89 | mLocalMachineName = config.readEntry("LocalMachineName","undefined"); |
90 | if ( prof.count() < 3 ) { | 90 | if ( prof.count() < 3 ) { |
@@ -107,4 +107,4 @@ void KSyncManager::fillSyncMenu() | |||
107 | } | 107 | } |
108 | mPrefs->mExternSyncProfiles = config.readListEntry("ExternSyncProfiles"); | 108 | mExternSyncProfiles = config.readListEntry("ExternSyncProfiles"); |
109 | mPrefs->mSyncProfileNames = prof; | 109 | mSyncProfileNames = prof; |
110 | unsigned int i; | 110 | unsigned int i; |
@@ -123,4 +123,2 @@ void KSyncManager::fillSyncMenu() | |||
123 | } | 123 | } |
124 | //probaly useless | ||
125 | //mView->setupExternSyncProfiles(); | ||
126 | } | 124 | } |
@@ -152,16 +150,16 @@ void KSyncManager::slotSyncMenu( int action ) | |||
152 | mCurrentSyncProfile = action - 1000 ; | 150 | mCurrentSyncProfile = action - 1000 ; |
153 | mCurrentSyncDevice = mPrefs->mSyncProfileNames[mCurrentSyncProfile] ; | 151 | mCurrentSyncDevice = mSyncProfileNames[mCurrentSyncProfile] ; |
154 | mCurrentSyncName = mPrefs->mLocalMachineName ; | 152 | mCurrentSyncName = mLocalMachineName ; |
155 | KConfig config ( locateLocal( "config","ksyncprofilesrc" ) ); | 153 | KConfig config ( locateLocal( "config","ksyncprofilesrc" ) ); |
156 | KSyncProfile* temp = new KSyncProfile (); | 154 | KSyncProfile* temp = new KSyncProfile (); |
157 | temp->setName(mPrefs->mSyncProfileNames[mCurrentSyncProfile]); | 155 | temp->setName(mSyncProfileNames[mCurrentSyncProfile]); |
158 | temp->readConfig(&config); | 156 | temp->readConfig(&config); |
159 | mPrefs->mAskForPreferences = temp->getAskForPreferences(); | 157 | mAskForPreferences = temp->getAskForPreferences(); |
160 | mPrefs->mSyncAlgoPrefs = temp->getSyncPrefs(); | 158 | mSyncAlgoPrefs = temp->getSyncPrefs(); |
161 | mPrefs->mWriteBackFile = temp->getWriteBackFile(); | 159 | mWriteBackFile = temp->getWriteBackFile(); |
162 | mPrefs->mWriteBackExistingOnly = temp->getWriteBackExisting(); | 160 | mWriteBackExistingOnly = temp->getWriteBackExisting(); |
163 | mPrefs->mWriteBackInFuture = 0; | 161 | mWriteBackInFuture = 0; |
164 | if ( temp->getWriteBackFuture() ) | 162 | if ( temp->getWriteBackFuture() ) |
165 | mPrefs->mWriteBackInFuture = temp->getWriteBackFutureWeeks( ); | 163 | mWriteBackInFuture = temp->getWriteBackFutureWeeks( ); |
166 | mPrefs->mShowSyncSummary = temp->getShowSummaryAfterSync(); | 164 | mShowSyncSummary = temp->getShowSummaryAfterSync(); |
167 | if ( action == 1000 ) { | 165 | if ( action == 1000 ) { |
@@ -181,3 +179,3 @@ void KSyncManager::slotSyncMenu( int action ) | |||
181 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) | 179 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) |
182 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNameAB(); | 180 | mLastSyncedLocalFile = temp->getRemoteFileNameAB(); |
183 | break; | 181 | break; |
@@ -185,3 +183,3 @@ void KSyncManager::slotSyncMenu( int action ) | |||
185 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) | 183 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) |
186 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileName(); | 184 | mLastSyncedLocalFile = temp->getRemoteFileName(); |
187 | break; | 185 | break; |
@@ -189,3 +187,3 @@ void KSyncManager::slotSyncMenu( int action ) | |||
189 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) | 187 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) |
190 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); | 188 | mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); |
191 | break; | 189 | break; |
@@ -198,5 +196,5 @@ void KSyncManager::slotSyncMenu( int action ) | |||
198 | if ( temp->getIsPhoneSync() ) { | 196 | if ( temp->getIsPhoneSync() ) { |
199 | mPrefs->mPhoneDevice = temp->getPhoneDevice( ) ; | 197 | mPhoneDevice = temp->getPhoneDevice( ) ; |
200 | mPrefs->mPhoneConnection = temp->getPhoneConnection( ); | 198 | mPhoneConnection = temp->getPhoneConnection( ); |
201 | mPrefs->mPhoneModel = temp->getPhoneModel( ); | 199 | mPhoneModel = temp->getPhoneModel( ); |
202 | syncPhone(); | 200 | syncPhone(); |
@@ -214,3 +212,3 @@ void KSyncManager::syncLocalFile() | |||
214 | 212 | ||
215 | QString fn =mPrefs->mLastSyncedLocalFile; | 213 | QString fn =mLastSyncedLocalFile; |
216 | QString ext; | 214 | QString ext; |
@@ -265,3 +263,3 @@ bool KSyncManager::syncWithFile( QString fn , bool quick ) | |||
265 | } | 263 | } |
266 | if ( mPrefs->mAskForPreferences ) | 264 | if ( mAskForPreferences ) |
267 | edit_sync_options(); | 265 | edit_sync_options(); |
@@ -269,3 +267,3 @@ bool KSyncManager::syncWithFile( QString fn , bool quick ) | |||
269 | //qDebug("Now sycing ... "); | 267 | //qDebug("Now sycing ... "); |
270 | if ( ret = mImplementation->sync( this, fn, mPrefs->mSyncAlgoPrefs ) ) | 268 | if ( ret = mImplementation->sync( this, fn, mSyncAlgoPrefs ) ) |
271 | mParent->setCaption( i18n("Synchronization successful") ); | 269 | mParent->setCaption( i18n("Synchronization successful") ); |
@@ -274,3 +272,3 @@ bool KSyncManager::syncWithFile( QString fn , bool quick ) | |||
274 | if ( ! quick ) | 272 | if ( ! quick ) |
275 | mPrefs->mLastSyncedLocalFile = fn; | 273 | mLastSyncedLocalFile = fn; |
276 | mImplementation->sync_setModified(); | 274 | mImplementation->sync_setModified(); |
@@ -282,3 +280,3 @@ void KSyncManager::quickSyncLocalFile() | |||
282 | 280 | ||
283 | if ( syncWithFile( mPrefs->mLastSyncedLocalFile, false ) ) { | 281 | if ( syncWithFile( mLastSyncedLocalFile, false ) ) { |
284 | qDebug("quick syncLocalFile() successful "); | 282 | qDebug("quick syncLocalFile() successful "); |
@@ -302,6 +300,6 @@ void KSyncManager::multiSync( bool askforPrefs ) | |||
302 | mCurrentSyncDevice = i18n("Multiple profiles") ; | 300 | mCurrentSyncDevice = i18n("Multiple profiles") ; |
303 | mPrefs->mSyncAlgoPrefs = mPrefs->mRingSyncAlgoPrefs; | 301 | mSyncAlgoPrefs = mRingSyncAlgoPrefs; |
304 | if ( askforPrefs ) { | 302 | if ( askforPrefs ) { |
305 | edit_sync_options(); | 303 | edit_sync_options(); |
306 | mPrefs->mRingSyncAlgoPrefs = mPrefs->mSyncAlgoPrefs; | 304 | mRingSyncAlgoPrefs = mSyncAlgoPrefs; |
307 | } | 305 | } |
@@ -327,5 +325,5 @@ int KSyncManager::ringSync() | |||
327 | KConfig config ( locateLocal( "config","ksyncprofilesrc" ) ); | 325 | KConfig config ( locateLocal( "config","ksyncprofilesrc" ) ); |
328 | QStringList syncProfileNames = mPrefs->mSyncProfileNames; | 326 | QStringList syncProfileNames = mSyncProfileNames; |
329 | KSyncProfile* temp = new KSyncProfile (); | 327 | KSyncProfile* temp = new KSyncProfile (); |
330 | mPrefs->mAskForPreferences = false; | 328 | mAskForPreferences = false; |
331 | for ( i = 0; i < syncProfileNames.count(); ++i ) { | 329 | for ( i = 0; i < syncProfileNames.count(); ++i ) { |
@@ -357,11 +355,11 @@ int KSyncManager::ringSync() | |||
357 | ++syncedProfiles; | 355 | ++syncedProfiles; |
358 | // mPrefs->mAskForPreferences = temp->getAskForPreferences(); | 356 | // mAskForPreferences = temp->getAskForPreferences(); |
359 | mPrefs->mWriteBackFile = temp->getWriteBackFile(); | 357 | mWriteBackFile = temp->getWriteBackFile(); |
360 | mPrefs->mWriteBackExistingOnly = temp->getWriteBackExisting(); | 358 | mWriteBackExistingOnly = temp->getWriteBackExisting(); |
361 | mPrefs->mWriteBackInFuture = 0; | 359 | mWriteBackInFuture = 0; |
362 | if ( temp->getWriteBackFuture() ) | 360 | if ( temp->getWriteBackFuture() ) |
363 | mPrefs->mWriteBackInFuture = temp->getWriteBackFutureWeeks( ); | 361 | mWriteBackInFuture = temp->getWriteBackFutureWeeks( ); |
364 | mPrefs->mShowSyncSummary = false; | 362 | mShowSyncSummary = false; |
365 | mCurrentSyncDevice = syncProfileNames[i] ; | 363 | mCurrentSyncDevice = syncProfileNames[i] ; |
366 | mCurrentSyncName = mPrefs->mLocalMachineName; | 364 | mCurrentSyncName = mLocalMachineName; |
367 | if ( i == 0 ) { | 365 | if ( i == 0 ) { |
@@ -374,3 +372,3 @@ int KSyncManager::ringSync() | |||
374 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) | 372 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) |
375 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNameAB(); | 373 | mLastSyncedLocalFile = temp->getRemoteFileNameAB(); |
376 | break; | 374 | break; |
@@ -378,3 +376,3 @@ int KSyncManager::ringSync() | |||
378 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) | 376 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) |
379 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileName(); | 377 | mLastSyncedLocalFile = temp->getRemoteFileName(); |
380 | break; | 378 | break; |
@@ -382,3 +380,3 @@ int KSyncManager::ringSync() | |||
382 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) | 380 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) |
383 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); | 381 | mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); |
384 | break; | 382 | break; |
@@ -390,5 +388,5 @@ int KSyncManager::ringSync() | |||
390 | if ( temp->getIsPhoneSync() ) { | 388 | if ( temp->getIsPhoneSync() ) { |
391 | mPrefs->mPhoneDevice = temp->getPhoneDevice( ) ; | 389 | mPhoneDevice = temp->getPhoneDevice( ) ; |
392 | mPrefs->mPhoneConnection = temp->getPhoneConnection( ); | 390 | mPhoneConnection = temp->getPhoneConnection( ); |
393 | mPrefs->mPhoneModel = temp->getPhoneModel( ); | 391 | mPhoneModel = temp->getPhoneModel( ); |
394 | syncPhone(); | 392 | syncPhone(); |
@@ -493,3 +491,3 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) | |||
493 | // e->setReadOnly( true ); | 491 | // e->setReadOnly( true ); |
494 | if ( mPrefs->mWriteBackFile ) { | 492 | if ( mWriteBackFile ) { |
495 | int fi; | 493 | int fi; |
@@ -517,3 +515,3 @@ void KSyncManager::edit_sync_options() | |||
517 | //mDialogManager->showSyncOptions(); | 515 | //mDialogManager->showSyncOptions(); |
518 | //mPrefs->mSyncAlgoPrefs | 516 | //mSyncAlgoPrefs |
519 | QDialog dia( mParent, "dia", true ); | 517 | QDialog dia( mParent, "dia", true ); |
@@ -535,3 +533,3 @@ void KSyncManager::edit_sync_options() | |||
535 | connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); | 533 | connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); |
536 | switch ( mPrefs->mSyncAlgoPrefs ) { | 534 | switch ( mSyncAlgoPrefs ) { |
537 | case 0: | 535 | case 0: |
@@ -561,3 +559,3 @@ void KSyncManager::edit_sync_options() | |||
561 | if ( dia.exec() ) { | 559 | if ( dia.exec() ) { |
562 | mPrefs->mSyncAlgoPrefs = rem.isChecked()*1+newest.isChecked()*2+ ask.isChecked()*3+ f_loc.isChecked()*4+ f_rem.isChecked()*5;//+ both.isChecked()*6 ; | 560 | mSyncAlgoPrefs = rem.isChecked()*1+newest.isChecked()*2+ ask.isChecked()*3+ f_loc.isChecked()*4+ f_rem.isChecked()*5;//+ both.isChecked()*6 ; |
563 | } | 561 | } |
@@ -605,4 +603,4 @@ void KSyncManager::confSync() | |||
605 | sp->exec(); | 603 | sp->exec(); |
606 | mPrefs->mSyncProfileNames = sp->getSyncProfileNames(); | 604 | mSyncProfileNames = sp->getSyncProfileNames(); |
607 | mPrefs->mLocalMachineName = sp->getLocalMachineName (); | 605 | mLocalMachineName = sp->getLocalMachineName (); |
608 | fillSyncMenu(); | 606 | fillSyncMenu(); |
@@ -621,3 +619,3 @@ bool KSyncManager::syncExternalApplication(QString resource) | |||
621 | 619 | ||
622 | if ( mPrefs->mAskForPreferences ) | 620 | if ( mAskForPreferences ) |
623 | edit_sync_options(); | 621 | edit_sync_options(); |
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h index 9761107..6b10016 100644 --- a/libkdepim/ksyncmanager.h +++ b/libkdepim/ksyncmanager.h | |||
@@ -61,2 +61,21 @@ class KSyncManager : public QObject | |||
61 | 61 | ||
62 | // sync stuff | ||
63 | QString mLocalMachineName; | ||
64 | QStringList mExternSyncProfiles; | ||
65 | QStringList mSyncProfileNames; | ||
66 | bool mAskForPreferences; | ||
67 | bool mShowSyncSummary; | ||
68 | bool mShowSyncEvents; | ||
69 | bool mShowTodoInAgenda; | ||
70 | bool mWriteBackExistingOnly; | ||
71 | int mSyncAlgoPrefs; | ||
72 | int mRingSyncAlgoPrefs; | ||
73 | bool mWriteBackFile; | ||
74 | int mWriteBackInFuture; | ||
75 | QString mPhoneDevice; | ||
76 | QString mPhoneConnection; | ||
77 | QString mPhoneModel; | ||
78 | QString mLastSyncedLocalFile; // save! | ||
79 | |||
80 | |||
62 | 81 | ||
@@ -94,3 +113,2 @@ class KSyncManager : public QObject | |||
94 | TargetApp mTargetApp; | 113 | TargetApp mTargetApp; |
95 | KPimPrefs* mPrefs; | ||
96 | QPopupMenu* mSyncMenu; | 114 | QPopupMenu* mSyncMenu; |
diff --git a/pwmanager/pwmanager/pwmdoc.cpp b/pwmanager/pwmanager/pwmdoc.cpp index 6c1a9c0..76a45f4 100644 --- a/pwmanager/pwmanager/pwmdoc.cpp +++ b/pwmanager/pwmanager/pwmdoc.cpp | |||
@@ -2962,3 +2962,3 @@ PwMerror PwMDoc::syncronize(KSyncManager* manager, PwMDoc* syncLocal , PwMDoc* s | |||
2962 | } else { | 2962 | } else { |
2963 | if ( ! PWMPrefs::instance()->mWriteBackExistingOnly ) { | 2963 | if ( ! manager->mWriteBackExistingOnly ) { |
2964 | ++addedPasswordsRemote; | 2964 | ++addedPasswordsRemote; |
@@ -2997,3 +2997,3 @@ PwMerror PwMDoc::syncronize(KSyncManager* manager, PwMDoc* syncLocal , PwMDoc* s | |||
2997 | mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n"),addedPasswordsLocal, addedPasswordsRemote, changedLocal, changedRemote, deletedPasswordsLocal, deletedPasswordsRemote ); | 2997 | mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n"),addedPasswordsLocal, addedPasswordsRemote, changedLocal, changedRemote, deletedPasswordsLocal, deletedPasswordsRemote ); |
2998 | if ( PWMPrefs::instance()->mShowSyncSummary ) { | 2998 | if ( manager->mShowSyncSummary ) { |
2999 | KMessageBox::information(0, mes, i18n("PWM/Pi Synchronization") ); | 2999 | KMessageBox::information(0, mes, i18n("PWM/Pi Synchronization") ); |
@@ -3141,3 +3141,3 @@ bool PwMDoc::sync(KSyncManager* manager, QString filename, int mode) | |||
3141 | if (err == e_success) { | 3141 | if (err == e_success) { |
3142 | if ( PWMPrefs::instance()->mWriteBackFile ){ | 3142 | if ( manager->mWriteBackFile ){ |
3143 | qDebug("Saving remote PWManager file"); | 3143 | qDebug("Saving remote PWManager file"); |