author | zautrix <zautrix> | 2005-06-10 20:13:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-10 20:13:31 (UTC) |
commit | cdc55afb3d2c3ebd970843b7dce02acb1e6a189b (patch) (unidiff) | |
tree | 45f3bfa69a72de4e8b53bbcb2414478ec65cd183 /libkcal/incidencebase.h | |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libkcal/incidencebase.h b/libkcal/incidencebase.h index 05209e0..dc6024a 100644 --- a/libkcal/incidencebase.h +++ b/libkcal/incidencebase.h | |||
@@ -112,63 +112,72 @@ class IncidenceBase : public CustomProperties | |||
112 | /** Return number of attendees. */ | 112 | /** Return number of attendees. */ |
113 | int attendeeCount() const { return mAttendees.count(); }; | 113 | int attendeeCount() const { return mAttendees.count(); }; |
114 | /** Return the Attendee with this email */ | 114 | /** Return the Attendee with this email */ |
115 | Attendee* attendeeByMail(const QString &); | 115 | Attendee* attendeeByMail(const QString &); |
116 | /** Return first Attendee with one of this emails */ | 116 | /** Return first Attendee with one of this emails */ |
117 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); | 117 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); |
118 | 118 | ||
119 | /** pilot syncronization states */ | 119 | /** pilot syncronization states */ |
120 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; | 120 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; |
121 | /** Set synchronisation satus. */ | 121 | /** Set synchronisation satus. */ |
122 | void setSyncStatus(int stat); | 122 | void setSyncStatus(int stat); |
123 | /** Return synchronisation status. */ | 123 | /** Return synchronisation status. */ |
124 | int syncStatus() const; | 124 | int syncStatus() const; |
125 | 125 | ||
126 | /** Set Pilot Id. */ | 126 | /** Set Pilot Id. */ |
127 | void setPilotId(int id); | 127 | void setPilotId(int id); |
128 | /** Return Pilot Id. */ | 128 | /** Return Pilot Id. */ |
129 | int pilotId() const; | 129 | int pilotId() const; |
130 | 130 | ||
131 | void setTempSyncStat(int id); | 131 | void setTempSyncStat(int id); |
132 | int tempSyncStat() const; | 132 | int tempSyncStat() const; |
133 | void setIDStr( const QString & ); | 133 | void setIDStr( const QString & ); |
134 | QString IDStr() const; | 134 | QString IDStr() const; |
135 | void setID( const QString &, const QString & ); | 135 | void setID( const QString &, const QString & ); |
136 | QString getID( const QString & ); | 136 | QString getID( const QString & ); |
137 | void setCsum( const QString &, const QString & ); | 137 | void setCsum( const QString &, const QString & ); |
138 | QString getCsum( const QString & ); | 138 | QString getCsum( const QString & ); |
139 | void removeID(const QString &); | 139 | void removeID(const QString &); |
140 | 140 | ||
141 | void registerObserver( Observer * ); | 141 | void registerObserver( Observer * ); |
142 | void unRegisterObserver( Observer * ); | 142 | void unRegisterObserver( Observer * ); |
143 | void updated(); | 143 | void updated(); |
144 | void setCalID( int id ); | ||
145 | int calID() const; | ||
146 | void setCalEnabled( bool ); | ||
147 | bool calEnabled() const; | ||
148 | void setAlarmEnabled( bool ); | ||
149 | bool alarmEnabled() const; | ||
144 | 150 | ||
145 | protected: | 151 | protected: |
146 | QDateTime mDtStart; | 152 | QDateTime mDtStart; |
147 | bool mReadOnly; | 153 | bool mReadOnly; |
148 | QDateTime getEvenTime( QDateTime ); | 154 | QDateTime getEvenTime( QDateTime ); |
149 | 155 | ||
150 | private: | 156 | private: |
151 | // base components | 157 | // base components |
152 | QString mOrganizer; | 158 | QString mOrganizer; |
153 | QString mUid; | 159 | QString mUid; |
160 | int mCalID; | ||
161 | bool mCalEnabled; | ||
162 | bool mAlarmEnabled; | ||
154 | QDateTime mLastModified; | 163 | QDateTime mLastModified; |
155 | QPtrList<Attendee> mAttendees; | 164 | QPtrList<Attendee> mAttendees; |
156 | 165 | ||
157 | bool mFloats; | 166 | bool mFloats; |
158 | 167 | ||
159 | int mDuration; | 168 | int mDuration; |
160 | bool mHasDuration; | 169 | bool mHasDuration; |
161 | QString mExternalId; | 170 | QString mExternalId; |
162 | int mTempSyncStat; | 171 | int mTempSyncStat; |
163 | 172 | ||
164 | // PILOT SYNCHRONIZATION STUFF | 173 | // PILOT SYNCHRONIZATION STUFF |
165 | int mPilotId; // unique id for pilot sync | 174 | int mPilotId; // unique id for pilot sync |
166 | int mSyncStatus; // status (for sync) | 175 | int mSyncStatus; // status (for sync) |
167 | 176 | ||
168 | QPtrList<Observer> mObservers; | 177 | QPtrList<Observer> mObservers; |
169 | }; | 178 | }; |
170 | 179 | ||
171 | bool operator==( const IncidenceBase&, const IncidenceBase& ); | 180 | bool operator==( const IncidenceBase&, const IncidenceBase& ); |
172 | } | 181 | } |
173 | 182 | ||
174 | #endif | 183 | #endif |