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 /libkcal | |
parent | e954cc1e29b129982e4d07c4f490d7e881597374 (diff) | |
download | kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.zip kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.tar.gz kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.tar.bz2 |
Changed zaurusstat to tempsyncstat
-rw-r--r-- | libkcal/icalformatimpl.cpp | 8 | ||||
-rw-r--r-- | libkcal/incidencebase.cpp | 12 | ||||
-rw-r--r-- | libkcal/incidencebase.h | 6 | ||||
-rw-r--r-- | libkcal/sharpformat.cpp | 14 |
4 files changed, 16 insertions, 24 deletions
diff --git a/libkcal/icalformatimpl.cpp b/libkcal/icalformatimpl.cpp index 3437f45..df05ab3 100644 --- a/libkcal/icalformatimpl.cpp +++ b/libkcal/icalformatimpl.cpp | |||
@@ -275,7 +275,4 @@ void ICalFormatImpl::writeIncidence(icalcomponent *parent,Incidence *incidence) | |||
275 | incidence->setNonKDECustomProperty("X-ZAURUSUID", QString::number(incidence->zaurusUid())); | 275 | incidence->setNonKDECustomProperty("X-ZAURUSUID", QString::number(incidence->zaurusUid())); |
276 | } | 276 | } |
277 | if (incidence->zaurusStat() > 0) { | ||
278 | incidence->setNonKDECustomProperty("X-ZAURUSSTAT", QString::number(incidence->zaurusStat())); | ||
279 | } | ||
280 | 277 | ||
281 | writeIncidenceBase(parent,incidence); | 278 | writeIncidenceBase(parent,incidence); |
@@ -1294,9 +1291,4 @@ void ICalFormatImpl::readIncidence(icalcomponent *parent,Incidence *incidence) | |||
1294 | } | 1291 | } |
1295 | 1292 | ||
1296 | kp = incidence->nonKDECustomProperty("X-ZAURUSSTAT"); | ||
1297 | if (!kp.isNull()) { | ||
1298 | incidence->setZaurusStat(kp.toInt()); | ||
1299 | } | ||
1300 | |||
1301 | // Cancel backwards compatibility mode for subsequent changes by the application | 1293 | // Cancel backwards compatibility mode for subsequent changes by the application |
1302 | incidence->recurrence()->setCompatVersion(); | 1294 | incidence->recurrence()->setCompatVersion(); |
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 9479048..707d666 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp | |||
@@ -41,5 +41,5 @@ IncidenceBase::IncidenceBase() : | |||
41 | mZaurusId = -1; | 41 | mZaurusId = -1; |
42 | mZaurusUid = 0; | 42 | mZaurusUid = 0; |
43 | mZaurusStat = 0; | 43 | mTempSyncStat = 0; |
44 | mSyncStatus = 0; | 44 | mSyncStatus = 0; |
45 | mAttendees.setAutoDelete( true ); | 45 | mAttendees.setAutoDelete( true ); |
@@ -64,5 +64,5 @@ IncidenceBase::IncidenceBase(const IncidenceBase &i) : | |||
64 | mZaurusId = i.mZaurusId; | 64 | mZaurusId = i.mZaurusId; |
65 | mZaurusUid = i.mZaurusUid; | 65 | mZaurusUid = i.mZaurusUid; |
66 | mZaurusStat = i.mZaurusStat; | 66 | mTempSyncStat = i.mTempSyncStat; |
67 | mSyncStatus = i.mSyncStatus; | 67 | mSyncStatus = i.mSyncStatus; |
68 | 68 | ||
@@ -363,12 +363,12 @@ void IncidenceBase::setZaurusUid( int id ) | |||
363 | } | 363 | } |
364 | 364 | ||
365 | int IncidenceBase::zaurusStat() const | 365 | int IncidenceBase::tempSyncStat() const |
366 | { | 366 | { |
367 | return mZaurusStat; | 367 | return mTempSyncStat; |
368 | } | 368 | } |
369 | void IncidenceBase::setZaurusStat( int id ) | 369 | void IncidenceBase::setTempSyncStat( int id ) |
370 | { | 370 | { |
371 | if (mReadOnly) return; | 371 | if (mReadOnly) return; |
372 | mZaurusStat = id; | 372 | mTempSyncStat = id; |
373 | } | 373 | } |
374 | 374 | ||
diff --git a/libkcal/incidencebase.h b/libkcal/incidencebase.h index 0ab7eef..ce6e254 100644 --- a/libkcal/incidencebase.h +++ b/libkcal/incidencebase.h | |||
@@ -131,6 +131,6 @@ class IncidenceBase : public CustomProperties | |||
131 | void setZaurusUid(int id); | 131 | void setZaurusUid(int id); |
132 | int zaurusUid() const; | 132 | int zaurusUid() const; |
133 | void setZaurusStat(int id); | 133 | void setTempSyncStat(int id); |
134 | int zaurusStat() const; | 134 | int tempSyncStat() const; |
135 | 135 | ||
136 | void registerObserver( Observer * ); | 136 | void registerObserver( Observer * ); |
@@ -156,5 +156,5 @@ class IncidenceBase : public CustomProperties | |||
156 | int mZaurusId; | 156 | int mZaurusId; |
157 | int mZaurusUid; | 157 | int mZaurusUid; |
158 | int mZaurusStat; | 158 | int mTempSyncStat; |
159 | 159 | ||
160 | // PILOT SYNCHRONIZATION STUFF | 160 | // PILOT SYNCHRONIZATION STUFF |
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp index 973f19d..d39d2dd 100644 --- a/libkcal/sharpformat.cpp +++ b/libkcal/sharpformat.cpp | |||
@@ -93,5 +93,5 @@ class SharpParser : public QObject | |||
93 | event->setZaurusId( attList[0].toInt() ); | 93 | event->setZaurusId( attList[0].toInt() ); |
94 | event->setZaurusUid( cSum ); | 94 | event->setZaurusUid( cSum ); |
95 | event->setZaurusStat(SYNC_TEMPSTATE_NEW_EXTERNAL ); | 95 | event->setTempSyncStat(SYNC_TEMPSTATE_NEW_EXTERNAL ); |
96 | 96 | ||
97 | event->setSummary( attList[2] ); | 97 | event->setSummary( attList[2] ); |
@@ -204,5 +204,5 @@ class SharpParser : public QObject | |||
204 | todo->setZaurusId( attList[0].toInt() ); | 204 | todo->setZaurusId( attList[0].toInt() ); |
205 | todo->setZaurusUid( cSum ); | 205 | todo->setZaurusUid( cSum ); |
206 | todo->setZaurusStat( SYNC_TEMPSTATE_NEW_EXTERNAL ); | 206 | todo->setTempSyncStat( SYNC_TEMPSTATE_NEW_EXTERNAL ); |
207 | 207 | ||
208 | todo->setSummary( attList[7] ); | 208 | todo->setSummary( attList[7] ); |
@@ -469,5 +469,5 @@ int SharpFormat::getNumFromRecord( QString answer, Incidence* inc ) | |||
469 | inc->setZaurusId( newnum ); | 469 | inc->setZaurusId( newnum ); |
470 | inc->setZaurusUid( getCsum( templist ) ); | 470 | inc->setZaurusUid( getCsum( templist ) ); |
471 | inc->setZaurusStat( SYNC_TEMPSTATE_NEW_ID ); | 471 | inc->setTempSyncStat( SYNC_TEMPSTATE_NEW_ID ); |
472 | } | 472 | } |
473 | } | 473 | } |
@@ -508,9 +508,9 @@ bool SharpFormat::save( Calendar *calendar) | |||
508 | while ( ev ) { | 508 | while ( ev ) { |
509 | //qDebug("i %d ", ++i); | 509 | //qDebug("i %d ", ++i); |
510 | if ( ev->zaurusStat() != SYNC_TEMPSTATE_NEW_EXTERNAL ) { | 510 | if ( ev->tempSyncStat() != SYNC_TEMPSTATE_NEW_EXTERNAL ) { |
511 | status.setText ( message + QString::number ( ++procCount ) ); | 511 | status.setText ( message + QString::number ( ++procCount ) ); |
512 | qApp->processEvents(); | 512 | qApp->processEvents(); |
513 | QString eString = getEventString( ev ); | 513 | QString eString = getEventString( ev ); |
514 | if ( ev->zaurusStat() == SYNC_TEMPSTATE_DELETE ) { // delete | 514 | if ( ev->tempSyncStat() == SYNC_TEMPSTATE_DELETE ) { // delete |
515 | // deleting empty strings does not work. | 515 | // deleting empty strings does not work. |
516 | // we write first and x and then delete the record with the x | 516 | // we write first and x and then delete the record with the x |
@@ -594,9 +594,9 @@ bool SharpFormat::save( Calendar *calendar) | |||
594 | procCount = 0; | 594 | procCount = 0; |
595 | while ( to ) { | 595 | while ( to ) { |
596 | if ( to->zaurusStat() != SYNC_TEMPSTATE_NEW_EXTERNAL ) { | 596 | if ( to->tempSyncStat() != SYNC_TEMPSTATE_NEW_EXTERNAL ) { |
597 | status.setText ( message + QString::number ( ++procCount ) ); | 597 | status.setText ( message + QString::number ( ++procCount ) ); |
598 | qApp->processEvents(); | 598 | qApp->processEvents(); |
599 | QString eString = getTodoString( to ); | 599 | QString eString = getTodoString( to ); |
600 | if ( to->zaurusStat() == SYNC_TEMPSTATE_DELETE ) { // delete | 600 | if ( to->tempSyncStat() == SYNC_TEMPSTATE_DELETE ) { // delete |
601 | // deleting empty strings does not work. | 601 | // deleting empty strings does not work. |
602 | // we write first and x and then delete the record with the x | 602 | // we write first and x and then delete the record with the x |