KCalCore Library
attachment.cpp
Go to the documentation of this file.
245 out << a->d->mSize << a->d->mMimeType << a->d->mUri << a->d->mEncodedData << a->d->mLabel << a->d->mBinary << a->d->mLocal << a->d->mShowInline;
252 in >> a->d->mSize >> a->d->mMimeType >> a->d->mUri >> a->d->mEncodedData >> a->d->mLabel >> a->d->mBinary >> a->d->mLocal >> a->d->mShowInline;
QSharedPointer< Attachment > Ptr
A shared pointer to an Attachment object.
Definition: attachment.h:65
bool operator==(const Attachment &attachment) const
Compare this with attachment for equality.
Definition: attachment.cpp:226
bool isBinary() const
Returns true if the attachment has a binary blob; false otherwise.
Definition: attachment.cpp:120
Attachment(const QString &uri, const QString &mime=QString())
Constructs an attachment consisting of a uri and a mime type.
Definition: attachment.cpp:83
bool isUri() const
Returns true if the attachment has a URI; false otherwise.
Definition: attachment.cpp:100
void setDecodedData(const QByteArray &data)
Sets the decoded attachment data.
Definition: attachment.cpp:143
void setLabel(const QString &label)
Sets the attachment label to label, which is derived from the Calendar Incidence X-LABEL parameter...
Definition: attachment.cpp:195
void setMimeType(const QString &mime)
Sets the MIME-type of the attachment to mime.
Definition: attachment.cpp:175
KCALCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:863
QByteArray decodedData() const
Returns a QByteArray containing the decoded base64 binary data of the attachment. ...
Definition: attachment.cpp:134
This file is part of the API for handling calendar data and defines the Attachment class...
void setLocal(bool local)
Sets the attachment "local" option, which is derived from the Calendar Incidence X-KONTACT-TYPE param...
Definition: attachment.cpp:205
bool operator!=(const Attachment &attachment) const
Compare this with attachment for inequality.
Definition: attachment.cpp:237
Represents information related to an attachment for a Calendar Incidence.
Definition: attachment.h:59
void setData(const QByteArray &base64)
Sets the base64 encoded binary blob data of the attachment.
Definition: attachment.cpp:150
void setShowInline(bool showinline)
Sets the attachment "show in-line" option, which is derived from the Calendar Incidence X-CONTENT-DIS...
Definition: attachment.cpp:185
Attachment & operator=(const Attachment &attachment)
Assignment operator.
Definition: attachment.cpp:210
void setUri(const QString &uri)
Sets the URI for this attachment to uri.
Definition: attachment.cpp:114
KCALCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:853
QByteArray data() const
Returns a pointer to a QByteArray containing the base64 encoded binary data of the attachment...
Definition: attachment.cpp:125
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.