-rw-r--r-- | libkcal/incidence.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkcal/incidence.h b/libkcal/incidence.h index dc49640..f89942f 100644 --- a/libkcal/incidence.h +++ b/libkcal/incidence.h | |||
@@ -128,96 +128,97 @@ class Incidence : public IncidenceBase | |||
128 | 128 | ||
129 | /** set creation date */ | 129 | /** set creation date */ |
130 | void setCreated(QDateTime); | 130 | void setCreated(QDateTime); |
131 | /** return time and date of creation. */ | 131 | /** return time and date of creation. */ |
132 | QDateTime created() const; | 132 | QDateTime created() const; |
133 | 133 | ||
134 | /** set the number of revisions this event has seen */ | 134 | /** set the number of revisions this event has seen */ |
135 | void setRevision(int rev); | 135 | void setRevision(int rev); |
136 | /** return the number of revisions this event has seen */ | 136 | /** return the number of revisions this event has seen */ |
137 | int revision() const; | 137 | int revision() const; |
138 | 138 | ||
139 | /** Set starting date/time. */ | 139 | /** Set starting date/time. */ |
140 | virtual void setDtStart(const QDateTime &dtStart); | 140 | virtual void setDtStart(const QDateTime &dtStart); |
141 | /** Return the incidence's ending date/time as a QDateTime. */ | 141 | /** Return the incidence's ending date/time as a QDateTime. */ |
142 | virtual QDateTime dtEnd() const { return QDateTime(); } | 142 | virtual QDateTime dtEnd() const { return QDateTime(); } |
143 | 143 | ||
144 | /** sets the event's lengthy description. */ | 144 | /** sets the event's lengthy description. */ |
145 | void setDescription(const QString &description); | 145 | void setDescription(const QString &description); |
146 | /** returns a reference to the event's description. */ | 146 | /** returns a reference to the event's description. */ |
147 | QString description() const; | 147 | QString description() const; |
148 | 148 | ||
149 | /** sets the event's short summary. */ | 149 | /** sets the event's short summary. */ |
150 | void setSummary(const QString &summary); | 150 | void setSummary(const QString &summary); |
151 | /** returns a reference to the event's summary. */ | 151 | /** returns a reference to the event's summary. */ |
152 | QString summary() const; | 152 | QString summary() const; |
153 | 153 | ||
154 | /** set event's applicable categories */ | 154 | /** set event's applicable categories */ |
155 | void setCategories(const QStringList &categories, bool setForRelations = false); | 155 | void setCategories(const QStringList &categories, bool setForRelations = false); |
156 | void addCategories(const QStringList &categories, bool addToRelations = false); | 156 | void addCategories(const QStringList &categories, bool addToRelations = false); |
157 | /** set event's categories based on a comma delimited string */ | 157 | /** set event's categories based on a comma delimited string */ |
158 | void setCategories(const QString &catStr); | 158 | void setCategories(const QString &catStr); |
159 | /** return categories in a list */ | 159 | /** return categories in a list */ |
160 | QStringList categories() const; | 160 | QStringList categories() const; |
161 | QStringList* categoriesP(); | 161 | QStringList* categoriesP(); |
162 | /** return categories as a comma separated string */ | 162 | /** return categories as a comma separated string */ |
163 | QString categoriesStr(); | 163 | QString categoriesStr(); |
164 | QString categoriesStrWithSpace(); | 164 | QString categoriesStrWithSpace(); |
165 | 165 | ||
166 | /** point at some other event to which the event relates. This function should | 166 | /** point at some other event to which the event relates. This function should |
167 | * only be used when constructing a calendar before the related Event | 167 | * only be used when constructing a calendar before the related Event |
168 | * exists. */ | 168 | * exists. */ |
169 | void setRelatedToUid(const QString &); | 169 | void setRelatedToUid(const QString &); |
170 | /** what event does this one relate to? This function should | 170 | /** what event does this one relate to? This function should |
171 | * only be used when constructing a calendar before the related Event | 171 | * only be used when constructing a calendar before the related Event |
172 | * exists. */ | 172 | * exists. */ |
173 | QString relatedToUid() const; | 173 | QString relatedToUid() const; |
174 | /** point at some other event to which the event relates */ | 174 | /** point at some other event to which the event relates */ |
175 | void setRelatedTo(Incidence *relatedTo); | 175 | void setRelatedTo(Incidence *relatedTo); |
176 | void resetRelatedTo(); | ||
176 | /** what event does this one relate to? */ | 177 | /** what event does this one relate to? */ |
177 | Incidence *relatedTo() const; | 178 | Incidence *relatedTo() const; |
178 | /** All events that are related to this event */ | 179 | /** All events that are related to this event */ |
179 | QPtrList<Incidence> relations() const; | 180 | QPtrList<Incidence> relations() const; |
180 | /** Add an event which is related to this event */ | 181 | /** Add an event which is related to this event */ |
181 | void addRelation(Incidence *); | 182 | void addRelation(Incidence *); |
182 | /** Remove event that is related to this event */ | 183 | /** Remove event that is related to this event */ |
183 | void removeRelation(Incidence *); | 184 | void removeRelation(Incidence *); |
184 | 185 | ||
185 | /** returns the list of dates which are exceptions to the recurrence rule */ | 186 | /** returns the list of dates which are exceptions to the recurrence rule */ |
186 | DateList exDates() const; | 187 | DateList exDates() const; |
187 | /** sets the list of dates which are exceptions to the recurrence rule */ | 188 | /** sets the list of dates which are exceptions to the recurrence rule */ |
188 | void setExDates(const DateList &_exDates); | 189 | void setExDates(const DateList &_exDates); |
189 | void setExDates(const char *dates); | 190 | void setExDates(const char *dates); |
190 | /** Add a date to the list of exceptions of the recurrence rule. */ | 191 | /** Add a date to the list of exceptions of the recurrence rule. */ |
191 | void addExDate(const QDate &date); | 192 | void addExDate(const QDate &date); |
192 | 193 | ||
193 | /** returns true if there is an exception for this date in the recurrence | 194 | /** returns true if there is an exception for this date in the recurrence |
194 | rule set, or false otherwise. */ | 195 | rule set, or false otherwise. */ |
195 | bool isException(const QDate &qd) const; | 196 | bool isException(const QDate &qd) const; |
196 | 197 | ||
197 | /** add attachment to this event */ | 198 | /** add attachment to this event */ |
198 | void addAttachment(Attachment *attachment); | 199 | void addAttachment(Attachment *attachment); |
199 | /** remove and delete a specific attachment */ | 200 | /** remove and delete a specific attachment */ |
200 | void deleteAttachment(Attachment *attachment); | 201 | void deleteAttachment(Attachment *attachment); |
201 | /** remove and delete all attachments with this mime type */ | 202 | /** remove and delete all attachments with this mime type */ |
202 | void deleteAttachments(const QString& mime); | 203 | void deleteAttachments(const QString& mime); |
203 | /** return list of all associated attachments */ | 204 | /** return list of all associated attachments */ |
204 | QPtrList<Attachment> attachments() const; | 205 | QPtrList<Attachment> attachments() const; |
205 | /** find a list of attachments with this mime type */ | 206 | /** find a list of attachments with this mime type */ |
206 | QPtrList<Attachment> attachments(const QString& mime) const; | 207 | QPtrList<Attachment> attachments(const QString& mime) const; |
207 | 208 | ||
208 | /** sets the event's status the value specified. See the enumeration | 209 | /** sets the event's status the value specified. See the enumeration |
209 | * above for possible values. */ | 210 | * above for possible values. */ |
210 | void setSecrecy(int); | 211 | void setSecrecy(int); |
211 | /** return the event's secrecy. */ | 212 | /** return the event's secrecy. */ |
212 | int secrecy() const; | 213 | int secrecy() const; |
213 | /** return the event's secrecy in string format. */ | 214 | /** return the event's secrecy in string format. */ |
214 | QString secrecyStr() const; | 215 | QString secrecyStr() const; |
215 | /** return list of all availbale secrecy classes */ | 216 | /** return list of all availbale secrecy classes */ |
216 | static QStringList secrecyList(); | 217 | static QStringList secrecyList(); |
217 | /** return human-readable name of secrecy class */ | 218 | /** return human-readable name of secrecy class */ |
218 | static QString secrecyName(int); | 219 | static QString secrecyName(int); |
219 | 220 | ||
220 | /** returns TRUE if the date specified is one on which the event will | 221 | /** returns TRUE if the date specified is one on which the event will |
221 | * recur. */ | 222 | * recur. */ |
222 | bool recursOn(const QDate &qd) const; | 223 | bool recursOn(const QDate &qd) const; |
223 | 224 | ||