Changeset View
Changeset View
Standalone View
Standalone View
src/todo.h
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Line(s) | 341 | /** | |||
---|---|---|---|---|---|
342 | Disabled, otherwise could be dangerous if you subclass Todo. | 342 | Disabled, otherwise could be dangerous if you subclass Todo. | ||
343 | Use IncidenceBase::operator= which is safe because it calls | 343 | Use IncidenceBase::operator= which is safe because it calls | ||
344 | virtual function assign(). | 344 | virtual function assign(). | ||
345 | @param other is another Todo object to assign to this one. | 345 | @param other is another Todo object to assign to this one. | ||
346 | */ | 346 | */ | ||
347 | Todo &operator=(const Todo &other); | 347 | Todo &operator=(const Todo &other); | ||
348 | 348 | | |||
349 | // For polymorfic serialization | 349 | // For polymorfic serialization | ||
350 | void serialize(QDataStream &out); | 350 | void serialize(QDataStream &out) const override; | ||
351 | void deserialize(QDataStream &in); | 351 | void deserialize(QDataStream &in) override; | ||
352 | 352 | | |||
353 | //@cond PRIVATE | 353 | //@cond PRIVATE | ||
354 | class Private; | 354 | class Private; | ||
355 | Private *const d; | 355 | Private *const d; | ||
356 | //@endcond | 356 | //@endcond | ||
357 | }; | 357 | }; | ||
358 | 358 | | |||
359 | } // namespace KCalCore | 359 | } // namespace KCalCore | ||
360 | 360 | | |||
361 | //@cond PRIVATE | 361 | //@cond PRIVATE | ||
362 | Q_DECLARE_TYPEINFO(KCalCore::Todo::Ptr, Q_MOVABLE_TYPE); | 362 | Q_DECLARE_TYPEINFO(KCalCore::Todo::Ptr, Q_MOVABLE_TYPE); | ||
363 | Q_DECLARE_METATYPE(KCalCore::Todo::Ptr) | 363 | Q_DECLARE_METATYPE(KCalCore::Todo::Ptr) | ||
364 | Q_DECLARE_METATYPE(KCalCore::Todo *) | 364 | Q_DECLARE_METATYPE(KCalCore::Todo *) | ||
365 | //@endcond | 365 | //@endcond | ||
366 | 366 | | |||
367 | #endif | 367 | #endif |