KCalCore Library
incidencebase.cpp
Go to the documentation of this file.
727 in >> i->d->mLastModified >> i->d->mDtStart >> i->d->mOrganizer >> i->d->mUid >> i->d->mDuration
QSet< IncidenceBase::Field > dirtyFields() const
Returns a QSet with all Fields that were changed since the incidence was created or resetDirtyFields(...
Definition: incidencebase.cpp:652
void addComment(const QString &comment)
Adds a comment to the incidence.
Definition: incidencebase.cpp:355
Duration duration() const
Returns the length of the incidence duration.
Definition: incidencebase.cpp:555
Attendee::List attendees() const
Returns a list of incidence attendees.
Definition: incidencebase.cpp:483
Field representing the SEQUENCE component.
Definition: incidencebase.h:188
virtual void setDtStart(const KDateTime &dtStart)
Sets the incidence's starting date/time with a KDateTime.
Definition: incidencebase.cpp:306
int attendeeCount() const
Returns the number of incidence attendees.
Definition: incidencebase.cpp:488
QString uid() const
Returns the unique id (uid) for the incidence.
Definition: incidencebase.cpp:235
Field representing the DTSTART component.
Definition: incidencebase.h:162
Person::Ptr organizer() const
Returns the Person associated with this incidence.
Definition: incidencebase.cpp:288
void setUid(const QString &uid)
Sets the unique id for the incidence to uid.
Definition: incidencebase.cpp:227
bool operator!=(const IncidenceBase &ib) const
Compares this with IncidenceBase ib for inequality.
Definition: incidencebase.cpp:174
An abstract class that provides a common base for all calendar incidence classes. ...
Definition: incidencebase.h:109
bool isReadOnly() const
Returns true the object is read-only; false otherwise.
Definition: incidencebase.cpp:301
This class provides the interface for a visitor of calendar components.
Definition: visitor.h:43
Field representing the ATTENDEE component.
Definition: incidencebase.h:185
void update()
Call this to notify the observers after the IncidenceBase object will be changed. ...
Definition: incidencebase.cpp:593
KUrl uri() const
Returns the uri for the incidence, of form urn:x-ical:
Definition: incidencebase.cpp:662
QStringList contacts() const
Returns all incidence contacts as a list of strings.
Definition: incidencebase.cpp:423
CustomProperties & operator=(const CustomProperties &other)
Assignment operator.
Definition: customproperties.cpp:96
virtual bool equals(const IncidenceBase &incidenceBase) const
Provides polymorfic comparison for equality.
Definition: incidencebase.cpp:179
bool hasDuration() const
Returns true if the incidence has a duration; false otherwise.
Definition: incidencebase.cpp:565
This file is part of the API for handling calendar data and defines the CalFormat abstract base class...
void setHasDuration(bool hasDuration)
Sets if the incidence has a duration.
Definition: incidencebase.cpp:560
virtual bool accept(Visitor &v, IncidenceBase::Ptr incidence)
Accept IncidenceVisitor.
Definition: incidencebase.cpp:220
Attendee::Ptr attendeeByMail(const QString &email) const
Returns the attendee with the specified email address.
Definition: incidencebase.cpp:502
Field representing the COMMENT component.
Definition: incidencebase.h:191
virtual void incidenceUpdated(const QString &uid, const KDateTime &recurrenceId)=0
The IncidenceObserver interface.
virtual void setDuration(const Duration &duration)
Sets the incidence duration.
Definition: incidencebase.cpp:546
Attendee::Ptr attendeeByUid(const QString &uid) const
Returns the incidence attendee with the specified attendee UID.
Definition: incidencebase.cpp:534
void registerObserver(IncidenceObserver *observer)
Register observer.
Definition: incidencebase.cpp:581
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:604
bool removeComment(const QString &comment)
Removes a comment from the incidence.
Definition: incidencebase.cpp:360
bool operator==(const IncidenceBase &ib) const
Compares this with IncidenceBase ib for equality.
Definition: incidencebase.cpp:164
Field representing the CONTACT component.
Definition: incidencebase.h:190
QSharedPointer< IncidenceBase > Ptr
A shared pointer to an IncidenceBase.
Definition: incidencebase.h:115
Field representing the X-KDE-LIBKCAL-ID component.
Definition: incidencebase.h:184
bool allDay() const
Returns true or false depending on whether the incidence is all-day.
Definition: incidencebase.cpp:326
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition: incidencebase.cpp:657
void setDirtyFields(const QSet< IncidenceBase::Field > &)
Sets which fields are dirty.
Definition: incidencebase.cpp:667
static quint32 magicSerializationIdentifier()
Constant that identifies KCalCore data in a binary stream.
Definition: incidencebase.cpp:673
void deleteAttendee(const Attendee::Ptr &attendee, bool doUpdate=true)
Delete single attendee from the incidence.
Definition: incidencebase.cpp:462
bool removeContact(const QString &contact)
Removes a contact from the incidence.
Definition: incidencebase.cpp:398
void endUpdates()
Call this when a group of updates is complete, to notify observers that the instance has changed...
Definition: incidencebase.cpp:622
KCALCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:863
void startUpdates()
Call this when a group of updates is going to be made.
Definition: incidencebase.cpp:616
Something changed. Always set when you use the assignment operator.
Definition: incidencebase.h:193
static Person::Ptr fromFullName(const QString &fullName)
Constructs a person with name and email address taken from fullName.
Definition: person.cpp:391
Field representing the DTEND component.
Definition: incidencebase.h:163
This file is part of the API for handling calendar data and defines the IncidenceBase class...
void unRegisterObserver(IncidenceObserver *observer)
Unregister observer.
Definition: incidencebase.cpp:588
A class to manage custom calendar properties.
Definition: customproperties.h:51
virtual void customPropertyUpdated()
Definition: incidencebase.cpp:637
virtual KDateTime recurrenceId() const
Returns the incidence recurrenceId.
Definition: incidencebase.cpp:642
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition: incidencebase.cpp:154
Field representing the DURATION component.
Definition: incidencebase.h:189
QStringList comments() const
Returns all incidence comments as a list of strings.
Definition: incidencebase.cpp:385
virtual void setLastModified(const KDateTime &lm)
Sets the time the incidence was last modified to lm.
Definition: incidencebase.cpp:240
void addAttendee(const Attendee::Ptr &attendee, bool doUpdate=true)
Add Attendee to this incidence.
Definition: incidencebase.cpp:428
The IncidenceObserver class.
Definition: incidencebase.h:199
Attendee::Ptr attendeeByMails(const QStringList &emails, const QString &email=QString()) const
Returns the first incidence attendee with one of the specified email addresses.
Definition: incidencebase.cpp:514
virtual void customPropertyUpdate()
Definition: incidencebase.cpp:632
virtual void incidenceUpdate(const QString &uid, const KDateTime &recurrenceId)=0
The IncidenceObserver interface.
void setOrganizer(const Person::Ptr &organizer)
Sets the organizer for the incidence.
Definition: incidencebase.cpp:261
Represents information related to an attendee of an Calendar Incidence, typically a meeting or task (...
Definition: attendee.h:57
KCALCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:853
KDateTime lastModified() const
Returns the time the incidence was last modified.
Definition: incidencebase.cpp:256
void setAllDay(bool allDay)
Sets whether the incidence is all-day, i.e.
Definition: incidencebase.cpp:331
Field representing the UID component.
Definition: incidencebase.h:192
void addContact(const QString &contact)
Adds a contact to thieincidence.
Definition: incidencebase.cpp:390
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Shift the times of the incidence so that they appear at the same clock time as before but in a new ti...
Definition: incidencebase.cpp:344
IncidenceBase & operator=(const IncidenceBase &other)
Assignment operator.
Definition: incidencebase.cpp:142
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition: incidencebase.cpp:321
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.