author | zautrix <zautrix> | 2004-08-07 21:04:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-07 21:04:24 (UTC) |
commit | a9c3191a42084b6631dededef1709fa67eb2c048 (patch) (side-by-side diff) | |
tree | 9950e3c8fc54c2994a4a50417008921bfdc58889 /korganizer | |
parent | 809e502f4b6e84524c10fa963e2d17564e6b1af9 (diff) | |
download | kdepimpi-a9c3191a42084b6631dededef1709fa67eb2c048.zip kdepimpi-a9c3191a42084b6631dededef1709fa67eb2c048.tar.gz kdepimpi-a9c3191a42084b6631dededef1709fa67eb2c048.tar.bz2 |
more phone sync
-rw-r--r-- | korganizer/calendarview.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index b307649..d6ead37 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -1175,17 +1175,17 @@ bool CalendarView::syncCalendar(QString filename, int mode) return syncOK; } void CalendarView::syncPhone() { syncExternal( 1 ); } void CalendarView::syncExternal( int mode ) { - mGlobalSyncMode = SYNC_MODE_EXTERNAL; + mGlobalSyncMode = SYNC_MODE_EXTERNAL; //mCurrentSyncDevice = "sharp-DTM"; if ( KOPrefs::instance()->mAskForPreferences ) edit_sync_options(); qApp->processEvents(); CalendarLocal* calendar = new CalendarLocal(); calendar->setTimeZoneId(KOPrefs::instance()->mTimeZoneId); bool syncOK = false; bool loadSuccess = false; @@ -1195,17 +1195,22 @@ void CalendarView::syncExternal( int mode ) if ( mode == 0 ) { // sharp sharpFormat = new SharpFormat () ; loadSuccess = sharpFormat->load( calendar, mCalendar ); } else #endif if ( mode == 1 ) { // phone phoneFormat = new PhoneFormat (); - loadSuccess = phoneFormat->load( calendar, mCalendar ); + loadSuccess = phoneFormat->load( calendar, + mCalendar, + mCurrentSyncDevice, + KOPrefs::instance()->mPhoneDevice, + KOPrefs::instance()->mPhoneConnection, + KOPrefs::instance()->mPhoneModel); } else return; if ( loadSuccess ) { getEventViewerDialog()->setSyncMode( true ); syncOK = synchronizeCalendar( mCalendar, calendar, KOPrefs::instance()->mSyncAlgoPrefs ); getEventViewerDialog()->setSyncMode( false ); qApp->processEvents(); |