KCal Library
Go to the documentation of this file.
35 #include <klocalizedstring.h>
38 #include <QtCore/QStringList>
40 static const KCatalogLoader loader(
"libkcal");
49 class KCal::Attendee::Private
76 d( new
Attendee::Private( *attendee.d ) )
89 d->mRSVP == attendee.d->mRSVP &&
90 d->mRole == attendee.d->mRole &&
91 d->mStatus == attendee.d->mStatus &&
92 d->mUid == attendee.d->mUid &&
93 d->mDelegate == attendee.d->mDelegate &&
94 d->mDelegator == attendee.d->mDelegator;
100 if ( &attendee ==
this ) {
105 setName( attendee.
name() );
106 setEmail( attendee.
email() );
140 return i18nc(
"@item event, to-do or journal needs action",
"Needs Action" );
143 return i18nc(
"@item event, to-do or journal accepted",
"Accepted" );
146 return i18nc(
"@item event, to-do or journal declined",
"Declined" );
149 return i18nc(
"@item event or to-do tentatively accepted",
"Tentative" );
152 return i18nc(
"@item event or to-do delegated",
"Delegated" );
155 return i18nc(
"@item to-do completed",
"Completed" );
158 return i18nc(
"@item to-do in process of being completed",
"In Process" );
161 return i18nc(
"@item event or to-do status unknown",
"Unknown" );
209 return i18nc(
"@item chairperson",
"Chair" );
213 return i18nc(
"@item participation is required",
"Participant" );
216 return i18nc(
"@item participation is optional",
"Optional Participant" );
219 return i18nc(
"@item non-participant copied for information",
"Observer" );
252 return d->mDelegator;
257 d->mCustomProperties.setNonKDECustomProperty( xname, xvalue );
262 return d->mCustomProperties;
267 return d->mCustomProperties;
PartStat status() const
Returns the PartStat of the attendee.
~Attendee()
Destroys the attendee.
static QString statusName(PartStat status)
Returns the specified PartStat status as a text string.
A class to manage custom calendar properties.
QString delegator() const
Returns the delegator.
QString roleStr() const
Returns the attendee Role as a text string.
@ NonParticipant
Non-Participant; copied for information purposes.
void setName(const QString &name)
Sets the name of the person to name.
Represents a person, by name ane email address.
Attendee(const QString &name, const QString &email, bool rsvp=false, PartStat status=None, Role role=ReqParticipant, const QString &uid=QString())
Constructs an attendee consisting of a Person name (name) and email address (email); invitation statu...
@ OptParticipant
Participation is optional.
static QStringList roleList()
Returns a list of strings representing each Role.
Role role() const
Returns the Role of the attendee.
void setRSVP(bool rsvp)
Sets the RSVP flag of the attendee to rsvp.
static QStringList statusList()
Returns a list of strings representing each PartStat.
void setDelegator(const QString &delegator)
Sets the delegator.
@ NeedsAction
Event, to-do or journal needs action (default)
CustomProperties & customProperties()
Returns a reference to the CustomProperties object.
void setStatus(PartStat status)
Sets the PartStat of the attendee to status.
QString email() const
Returns the email address for this person.
@ Completed
To-do completed.
@ Tentative
Event or to-do tentatively accepted.
QString name() const
Returns the person name string.
static QString roleName(Role role)
Returns the specified Role role as a text string.
Attendee & operator=(const Attendee &attendee)
Sets this attendee equal to attendee.
bool RSVP() const
Returns the attendee RSVP flag.
@ Accepted
Event, to-do or journal accepted.
QString statusStr() const
Returns the attendee PartStat as a text string.
QString uid() const
Returns the UID of the attendee.
@ ReqParticipant
Participation is required (default)
@ Declined
Event, to-do or journal declined.
Represents information related to an attendee of an Calendar Incidence, typically a meeting or task (...
void setDelegate(const QString &delegate)
Sets the delegate.
void setUid(const QString &uid)
Sets the UID of the attendee to uid.
void setCustomProperty(const QByteArray &xname, const QString &xvalue)
Adds a custom property.
void setRole(Role role)
Sets the Role of the attendee to role.
QString delegate() const
Returns the delegate.
void setEmail(const QString &email)
Sets the email address for this person to email.
bool operator==(const Attendee &attendee)
Compares this with attendee for equality.
Role
The different types of participation roles.
PartStat
The different types of participant status.
@ InProcess
To-do in process of being completed.
@ Delegated
Event or to-do delegated.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by
doxygen 1.8.18 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.