KCalendarCore
attachment.cpp
Go to the documentation of this file.
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:825
bool showInline() const
Returns the attachment "show in-line" flag.
bool isBinary() const
Returns true if the attachment has a binary blob; false otherwise.
void setDecodedData(const QByteArray &data)
Sets the decoded attachment data.
Definition: attachment.cpp:124
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:849
QByteArray data() const
Returns a pointer to a QByteArray containing the base64 encoded binary data of the attachment...
Definition: attachment.cpp:106
void setData(const QByteArray &base64)
Sets the base64 encoded binary blob data of the attachment.
Definition: attachment.cpp:131
QByteArray decodedData() const
Returns a QByteArray containing the decoded base64 binary data of the attachment. ...
Definition: attachment.cpp:115
Represents information related to an attachment for a Calendar Incidence.
Definition: attachment.h:47
void setLocal(bool local)
Sets the attachment "local" option, which is derived from the Calendar Incidence X-KONTACT-TYPE param...
Definition: attachment.cpp:186
This file is part of the API for handling calendar data and defines the Attachment class...
bool operator!=(const Attachment &attachment) const
Compare this with attachment for inequality.
Definition: attachment.cpp:204
QByteArray fromBase64(const QByteArray &base64, QByteArray::Base64Options options)
bool isUri() const
Returns true if the attachment has a URI; false otherwise.
bool operator==(const Attachment &attachment) const
Compare this with attachment for equality.
Definition: attachment.cpp:193
Attachment & operator=(const Attachment &attachment)
Assignment operator.
bool isEmpty() const
Returns whether this is an empty or default constructed object.
int size() const const
QString mimeType() const
Returns the MIME-type of the attachment.
void setUri(const QString &uri)
Sets the URI for this attachment to uri.
Definition: attachment.cpp:95
void setMimeType(const QString &mime)
Sets the MIME-type of the attachment to mime.
Definition: attachment.cpp:156
QByteArray toBase64(QByteArray::Base64Options options) const const
void setShowInline(bool showinline)
Sets the attachment "show in-line" option, which is derived from the Calendar Incidence X-CONTENT-DIS...
Definition: attachment.cpp:166
void setLabel(const QString &label)
Sets the attachment label to label, which is derived from the Calendar Incidence X-LABEL parameter...
Definition: attachment.cpp:176
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:52:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:52:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.