Changeset View
Changeset View
Standalone View
Standalone View
src/incidencebase.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | #define KCALCORE_INCIDENCEBASE_H | 57 | #define KCALCORE_INCIDENCEBASE_H | ||
58 | 58 | | |||
59 | #include "attendee.h" | 59 | #include "attendee.h" | ||
60 | #include "customproperties.h" | 60 | #include "customproperties.h" | ||
61 | #include "duration.h" | 61 | #include "duration.h" | ||
62 | #include "person.h" | 62 | #include "person.h" | ||
63 | 63 | | |||
64 | #include <QDateTime> | 64 | #include <QDateTime> | ||
65 | 65 | #include <QSharedPointer> | |||
66 | #include <QSet> | 66 | #include <QSet> | ||
67 | #include <QUrl> | 67 | #include <QUrl> | ||
68 | #include <QDataStream> | 68 | #include <QDataStream> | ||
69 | 69 | | |||
70 | class QUrl; | 70 | class QUrl; | ||
71 | class QDate; | 71 | class QDate; | ||
72 | class QTimeZone; | 72 | class QTimeZone; | ||
73 | 73 | | |||
▲ Show 20 Lines • Show All 425 Lines • ▼ Show 20 Line(s) | 118 | public: | |||
499 | void clearContacts(); | 499 | void clearContacts(); | ||
500 | 500 | | |||
501 | /** | 501 | /** | ||
502 | Returns all incidence contacts as a list of strings. | 502 | Returns all incidence contacts as a list of strings. | ||
503 | */ | 503 | */ | ||
504 | Q_REQUIRED_RESULT QStringList contacts() const; | 504 | Q_REQUIRED_RESULT QStringList contacts() const; | ||
505 | 505 | | |||
506 | /** | 506 | /** | ||
507 | Add Attendee to this incidence. IncidenceBase takes ownership of the | 507 | Add Attendee to this incidence. | ||
508 | Attendee object. | | |||
509 | 508 | | |||
510 | @param attendee a pointer to the attendee to add | 509 | @param attendee the attendee to add | ||
511 | @param doUpdate If true the Observers are notified, if false they are not. | 510 | @param doUpdate If true the Observers are notified, if false they are not. | ||
512 | */ | 511 | */ | ||
513 | void addAttendee(const Attendee::Ptr &attendee, bool doUpdate = true); | 512 | void addAttendee(const Attendee &attendee, bool doUpdate = true); | ||
514 | 513 | | |||
515 | /** | 514 | /** | ||
516 | Removes all attendees from the incidence. | 515 | Removes all attendees from the incidence. | ||
517 | */ | 516 | */ | ||
518 | void clearAttendees(); | 517 | void clearAttendees(); | ||
519 | 518 | | |||
520 | /** | 519 | /** | ||
521 | Set the attendees of this incidence. | 520 | Set the attendees of this incidence. | ||
Show All 17 Lines | |||||
539 | 538 | | |||
540 | /** | 539 | /** | ||
541 | Returns the attendee with the specified email address. | 540 | Returns the attendee with the specified email address. | ||
542 | 541 | | |||
543 | @param email is a QString containing an email address of the | 542 | @param email is a QString containing an email address of the | ||
544 | form "FirstName LastName <emailaddress>". | 543 | form "FirstName LastName <emailaddress>". | ||
545 | @see attendeeByMails(), attendeesByUid(). | 544 | @see attendeeByMails(), attendeesByUid(). | ||
546 | */ | 545 | */ | ||
547 | Attendee::Ptr attendeeByMail(const QString &email) const; | 546 | Attendee attendeeByMail(const QString &email) const; | ||
548 | 547 | | |||
549 | /** | 548 | /** | ||
550 | Returns the first incidence attendee with one of the specified | 549 | Returns the first incidence attendee with one of the specified | ||
551 | email addresses. | 550 | email addresses. | ||
552 | 551 | | |||
553 | @param emails is a list of QStrings containing email addresses of the | 552 | @param emails is a list of QStrings containing email addresses of the | ||
554 | form "FirstName LastName <emailaddress>". | 553 | form "FirstName LastName <emailaddress>". | ||
555 | @param email is a QString containing a single email address to search | 554 | @param email is a QString containing a single email address to search | ||
556 | in addition to the list specified in @p emails. | 555 | in addition to the list specified in @p emails. | ||
557 | @see attendeeByMail(), attendeesByUid(). | 556 | @see attendeeByMail(), attendeesByUid(). | ||
558 | */ | 557 | */ | ||
559 | Attendee::Ptr attendeeByMails(const QStringList &emails, const QString &email = QString()) const; | 558 | Attendee attendeeByMails(const QStringList &emails, const QString &email = QString()) const; | ||
560 | 559 | | |||
561 | /** | 560 | /** | ||
562 | Returns the incidence attendee with the specified attendee @acronym UID. | 561 | Returns the incidence attendee with the specified attendee @acronym UID. | ||
563 | 562 | | |||
564 | @param uid is a QString containing an attendee @acronym UID. | 563 | @param uid is a QString containing an attendee @acronym UID. | ||
565 | @see attendeeByMail(), attendeeByMails(). | 564 | @see attendeeByMail(), attendeeByMails(). | ||
566 | */ | 565 | */ | ||
567 | Attendee::Ptr attendeeByUid(const QString &uid) const; | 566 | Attendee attendeeByUid(const QString &uid) const; | ||
568 | 567 | | |||
569 | /** | 568 | /** | ||
570 | Sets the incidences url. | 569 | Sets the incidences url. | ||
571 | 570 | | |||
572 | This property can be used to point to a more dynamic rendition of the incidence. | 571 | This property can be used to point to a more dynamic rendition of the incidence. | ||
573 | I.e. a website related to the incidence. | 572 | I.e. a website related to the incidence. | ||
574 | 573 | | |||
575 | @param url of the incience. | 574 | @param url of the incience. | ||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |