author | zautrix <zautrix> | 2005-06-10 20:13:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-10 20:13:31 (UTC) |
commit | cdc55afb3d2c3ebd970843b7dce02acb1e6a189b (patch) (side-by-side diff) | |
tree | 45f3bfa69a72de4e8b53bbcb2414478ec65cd183 /libkcal/incidencebase.cpp | |
parent | 31fed261955dcb25d06052a8154ac4cc630b0f7d (diff) | |
download | kdepimpi-cdc55afb3d2c3ebd970843b7dce02acb1e6a189b.zip kdepimpi-cdc55afb3d2c3ebd970843b7dce02acb1e6a189b.tar.gz kdepimpi-cdc55afb3d2c3ebd970843b7dce02acb1e6a189b.tar.bz2 |
many preparations for multiple calendars
-rw-r--r-- | libkcal/incidencebase.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index b5fe2e6..2ddbb01 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -39,27 +39,34 @@ IncidenceBase::IncidenceBase() : mFloats = false; mDuration = 0; mHasDuration = false; mPilotId = 0; mExternalId = ":"; mTempSyncStat = SYNC_TEMPSTATE_INITIAL; mSyncStatus = 0; mAttendees.setAutoDelete( true ); + mCalEnabled = true; + mAlarmEnabled = true; + mCalID = 0; } IncidenceBase::IncidenceBase(const IncidenceBase &i) : CustomProperties( i ) { + mReadOnly = i.mReadOnly; mDtStart = i.mDtStart; mDuration = i.mDuration; mHasDuration = i.mHasDuration; mOrganizer = i.mOrganizer; mUid = i.mUid; + mCalEnabled = i.mCalEnabled; + mAlarmEnabled = i.mAlarmEnabled; + mCalID = i.mCalID; QPtrList<Attendee> attendees = i.attendees(); for( Attendee *a = attendees.first(); a; a = attendees.next() ) { mAttendees.append( new Attendee( *a ) ); } mFloats = i.mFloats; mLastModified = i.mLastModified; mPilotId = i.mPilotId; mTempSyncStat = i.mTempSyncStat; @@ -127,16 +134,42 @@ bool KCal::operator==( const IncidenceBase& i1, const IncidenceBase& i2 ) QDateTime IncidenceBase::getEvenTime( QDateTime dt ) { QTime t = dt.time(); dt.setTime( QTime (t.hour (), t.minute (), t.second () ) ); return dt; } +void IncidenceBase::setCalID( int id ) +{ + mCalID = id; +} +int IncidenceBase::calID() const +{ + return mCalID; +} +void IncidenceBase::setCalEnabled( bool b ) +{ + mCalEnabled = b; +} +bool IncidenceBase::calEnabled() const +{ + return mCalEnabled; +} + +void IncidenceBase::setAlarmEnabled( bool b ) +{ + mAlarmEnabled = b; +} +bool IncidenceBase::alarmEnabled() const +{ + return mAlarmEnabled; +} + void IncidenceBase::setUid(const QString &uid) { mUid = uid; updated(); } QString IncidenceBase::uid() const |