author | zautrix <zautrix> | 2004-08-01 12:02:39 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 12:02:39 (UTC) |
commit | c31e99f265dbe8762efca20667f8ccd973840f8f (patch) (unidiff) | |
tree | 29e7fd6845d187f41f9d80e756611dc8bc182bdc /korganizer | |
parent | e954cc1e29b129982e4d07c4f490d7e881597374 (diff) | |
download | kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.zip kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.tar.gz kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.tar.bz2 |
Changed zaurusstat to tempsyncstat
-rw-r--r-- | korganizer/calendarview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index fd68dc4..b543eca 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -998,13 +998,13 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int | |||
998 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { | 998 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { |
999 | QString des = eventLSync->description(); | 999 | QString des = eventLSync->description(); |
1000 | QString pref = "e"; | 1000 | QString pref = "e"; |
1001 | if ( inR->type() == "Todo" ) | 1001 | if ( inR->type() == "Todo" ) |
1002 | pref = "t"; | 1002 | pref = "t"; |
1003 | if ( des.find(pref+QString::number( inR->zaurusId() ) +"," ) >= 0 && mode != 5) { // delete it | 1003 | if ( des.find(pref+QString::number( inR->zaurusId() ) +"," ) >= 0 && mode != 5) { // delete it |
1004 | inR->setZaurusStat( SYNC_TEMPSTATE_DELETE ); | 1004 | inR->setTempSyncStat( SYNC_TEMPSTATE_DELETE ); |
1005 | //remote->deleteIncidence( inR ); | 1005 | //remote->deleteIncidence( inR ); |
1006 | ++deletedEventR; | 1006 | ++deletedEventR; |
1007 | } else { | 1007 | } else { |
1008 | inR->setLastModified( modifiedCalendar ); | 1008 | inR->setLastModified( modifiedCalendar ); |
1009 | local->addIncidence( inR->clone() ); | 1009 | local->addIncidence( inR->clone() ); |
1010 | ++addedEvent; | 1010 | ++addedEvent; |
@@ -1168,13 +1168,13 @@ void CalendarView::syncSharp() | |||
1168 | // pending: clean last sync event description | 1168 | // pending: clean last sync event description |
1169 | sharpFormat.save(calendar); | 1169 | sharpFormat.save(calendar); |
1170 | iL = calendar->rawIncidences(); | 1170 | iL = calendar->rawIncidences(); |
1171 | inc = iL.first(); | 1171 | inc = iL.first(); |
1172 | Incidence* loc; | 1172 | Incidence* loc; |
1173 | while ( inc ) { | 1173 | while ( inc ) { |
1174 | if ( inc->zaurusStat() == SYNC_TEMPSTATE_NEW_ID ) { | 1174 | if ( inc->tempSyncStat() == SYNC_TEMPSTATE_NEW_ID ) { |
1175 | loc = mCalendar->incidence(inc->uid() ); | 1175 | loc = mCalendar->incidence(inc->uid() ); |
1176 | if ( loc ) { | 1176 | if ( loc ) { |
1177 | loc->setZaurusId( inc->zaurusId() ); | 1177 | loc->setZaurusId( inc->zaurusId() ); |
1178 | loc->setZaurusUid( inc->zaurusUid() ); | 1178 | loc->setZaurusUid( inc->zaurusUid() ); |
1179 | } | 1179 | } |
1180 | } | 1180 | } |