-rw-r--r-- | libkcal/incidencebase.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libkcal/incidencebase.h b/libkcal/incidencebase.h index e2950d3..e02d03a 100644 --- a/libkcal/incidencebase.h +++ b/libkcal/incidencebase.h | |||
@@ -113,63 +113,60 @@ class IncidenceBase : public CustomProperties | |||
113 | Attendee* attendeeByMail(const QString &); | 113 | Attendee* attendeeByMail(const QString &); |
114 | /** Return first Attendee with one of this emails */ | 114 | /** Return first Attendee with one of this emails */ |
115 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); | 115 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); |
116 | 116 | ||
117 | /** pilot syncronization states */ | 117 | /** pilot syncronization states */ |
118 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; | 118 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; |
119 | /** Set synchronisation satus. */ | 119 | /** Set synchronisation satus. */ |
120 | void setSyncStatus(int stat); | 120 | void setSyncStatus(int stat); |
121 | /** Return synchronisation status. */ | 121 | /** Return synchronisation status. */ |
122 | int syncStatus() const; | 122 | int syncStatus() const; |
123 | 123 | ||
124 | /** Set Pilot Id. */ | 124 | /** Set Pilot Id. */ |
125 | void setPilotId(int id); | 125 | void setPilotId(int id); |
126 | /** Return Pilot Id. */ | 126 | /** Return Pilot Id. */ |
127 | int pilotId() const; | 127 | int pilotId() const; |
128 | 128 | ||
129 | void setZaurusUid(int id); | ||
130 | int zaurusUid() const; | ||
131 | void setTempSyncStat(int id); | 129 | void setTempSyncStat(int id); |
132 | int tempSyncStat() const; | 130 | int tempSyncStat() const; |
133 | void setIDStr( const QString & ); | 131 | void setIDStr( const QString & ); |
134 | QString IDStr() const; | 132 | QString IDStr() const; |
135 | void setID( const QString &, int ); | 133 | void setID( const QString &, const QString & ); |
136 | int getID( const QString & ); | 134 | QString getID( const QString & ); |
137 | void setCsum( const QString &, int ); | 135 | void setCsum( const QString &, const QString & ); |
138 | int getCsum( const QString & ); | 136 | QString getCsum( const QString & ); |
139 | 137 | void removeID(const QString &); | |
140 | 138 | ||
141 | void registerObserver( Observer * ); | 139 | void registerObserver( Observer * ); |
142 | void unRegisterObserver( Observer * ); | 140 | void unRegisterObserver( Observer * ); |
143 | void updated(); | 141 | void updated(); |
144 | 142 | ||
145 | protected: | 143 | protected: |
146 | bool mReadOnly; | 144 | bool mReadOnly; |
147 | QDateTime getEvenTime( QDateTime ); | 145 | QDateTime getEvenTime( QDateTime ); |
148 | 146 | ||
149 | private: | 147 | private: |
150 | // base components | 148 | // base components |
151 | QDateTime mDtStart; | 149 | QDateTime mDtStart; |
152 | QString mOrganizer; | 150 | QString mOrganizer; |
153 | QString mUid; | 151 | QString mUid; |
154 | QDateTime mLastModified; | 152 | QDateTime mLastModified; |
155 | QPtrList<Attendee> mAttendees; | 153 | QPtrList<Attendee> mAttendees; |
156 | 154 | ||
157 | bool mFloats; | 155 | bool mFloats; |
158 | 156 | ||
159 | int mDuration; | 157 | int mDuration; |
160 | bool mHasDuration; | 158 | bool mHasDuration; |
161 | QString mExternalId; | 159 | QString mExternalId; |
162 | int mZaurusUid; | ||
163 | int mTempSyncStat; | 160 | int mTempSyncStat; |
164 | 161 | ||
165 | // PILOT SYNCHRONIZATION STUFF | 162 | // PILOT SYNCHRONIZATION STUFF |
166 | int mPilotId; // unique id for pilot sync | 163 | int mPilotId; // unique id for pilot sync |
167 | int mSyncStatus; // status (for sync) | 164 | int mSyncStatus; // status (for sync) |
168 | 165 | ||
169 | QPtrList<Observer> mObservers; | 166 | QPtrList<Observer> mObservers; |
170 | }; | 167 | }; |
171 | 168 | ||
172 | bool operator==( const IncidenceBase&, const IncidenceBase& ); | 169 | bool operator==( const IncidenceBase&, const IncidenceBase& ); |
173 | } | 170 | } |
174 | 171 | ||
175 | #endif | 172 | #endif |