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/incidencebase.cpp | |
parent | e954cc1e29b129982e4d07c4f490d7e881597374 (diff) | |
download | kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.zip kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.tar.gz kdepimpi-c31e99f265dbe8762efca20667f8ccd973840f8f.tar.bz2 |
Changed zaurusstat to tempsyncstat
-rw-r--r-- | libkcal/incidencebase.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 9479048..707d666 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp | |||
@@ -31,48 +31,48 @@ using namespace KCal; | |||
31 | IncidenceBase::IncidenceBase() : | 31 | IncidenceBase::IncidenceBase() : |
32 | mReadOnly(false), mFloats(true), mDuration(0), mHasDuration(false), | 32 | mReadOnly(false), mFloats(true), mDuration(0), mHasDuration(false), |
33 | mPilotId(0), mSyncStatus(SYNCMOD) | 33 | mPilotId(0), mSyncStatus(SYNCMOD) |
34 | { | 34 | { |
35 | setUid(CalFormat::createUniqueId()); | 35 | setUid(CalFormat::createUniqueId()); |
36 | mOrganizer = ""; | 36 | mOrganizer = ""; |
37 | mFloats = false; | 37 | mFloats = false; |
38 | mDuration = 0; | 38 | mDuration = 0; |
39 | mHasDuration = false; | 39 | mHasDuration = false; |
40 | mPilotId = 0; | 40 | mPilotId = 0; |
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 ); |
46 | } | 46 | } |
47 | 47 | ||
48 | IncidenceBase::IncidenceBase(const IncidenceBase &i) : | 48 | IncidenceBase::IncidenceBase(const IncidenceBase &i) : |
49 | CustomProperties( i ) | 49 | CustomProperties( i ) |
50 | { | 50 | { |
51 | mReadOnly = i.mReadOnly; | 51 | mReadOnly = i.mReadOnly; |
52 | mDtStart = i.mDtStart; | 52 | mDtStart = i.mDtStart; |
53 | mDuration = i.mDuration; | 53 | mDuration = i.mDuration; |
54 | mHasDuration = i.mHasDuration; | 54 | mHasDuration = i.mHasDuration; |
55 | mOrganizer = i.mOrganizer; | 55 | mOrganizer = i.mOrganizer; |
56 | mUid = i.mUid; | 56 | mUid = i.mUid; |
57 | QPtrList<Attendee> attendees = i.attendees(); | 57 | QPtrList<Attendee> attendees = i.attendees(); |
58 | for( Attendee *a = attendees.first(); a; a = attendees.next() ) { | 58 | for( Attendee *a = attendees.first(); a; a = attendees.next() ) { |
59 | mAttendees.append( new Attendee( *a ) ); | 59 | mAttendees.append( new Attendee( *a ) ); |
60 | } | 60 | } |
61 | mFloats = i.mFloats; | 61 | mFloats = i.mFloats; |
62 | mLastModified = i.mLastModified; | 62 | mLastModified = i.mLastModified; |
63 | mPilotId = i.mPilotId; | 63 | mPilotId = i.mPilotId; |
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 | ||
69 | // The copied object is a new one, so it isn't observed by the observer | 69 | // The copied object is a new one, so it isn't observed by the observer |
70 | // of the original object. | 70 | // of the original object. |
71 | mObservers.clear(); | 71 | mObservers.clear(); |
72 | 72 | ||
73 | mAttendees.setAutoDelete( true ); | 73 | mAttendees.setAutoDelete( true ); |
74 | } | 74 | } |
75 | 75 | ||
76 | IncidenceBase::~IncidenceBase() | 76 | IncidenceBase::~IncidenceBase() |
77 | { | 77 | { |
78 | } | 78 | } |
@@ -353,32 +353,32 @@ int IncidenceBase::zaurusId() const | |||
353 | } | 353 | } |
354 | 354 | ||
355 | int IncidenceBase::zaurusUid() const | 355 | int IncidenceBase::zaurusUid() const |
356 | { | 356 | { |
357 | return mZaurusUid; | 357 | return mZaurusUid; |
358 | } | 358 | } |
359 | void IncidenceBase::setZaurusUid( int id ) | 359 | void IncidenceBase::setZaurusUid( int id ) |
360 | { | 360 | { |
361 | if (mReadOnly) return; | 361 | if (mReadOnly) return; |
362 | mZaurusUid = id; | 362 | mZaurusUid = 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 | ||
375 | void IncidenceBase::registerObserver( IncidenceBase::Observer *observer ) | 375 | void IncidenceBase::registerObserver( IncidenceBase::Observer *observer ) |
376 | { | 376 | { |
377 | if( !mObservers.contains(observer) ) mObservers.append( observer ); | 377 | if( !mObservers.contains(observer) ) mObservers.append( observer ); |
378 | } | 378 | } |
379 | 379 | ||
380 | void IncidenceBase::unRegisterObserver( IncidenceBase::Observer *observer ) | 380 | void IncidenceBase::unRegisterObserver( IncidenceBase::Observer *observer ) |
381 | { | 381 | { |
382 | mObservers.remove( observer ); | 382 | mObservers.remove( observer ); |
383 | } | 383 | } |
384 | 384 | ||