Messagelib
attachmentpart.cpp
17static qint64 sizeWithEncoding(const QByteArray &data, KMime::Headers::contentEncoding encoding) // local
26static KMime::Headers::contentEncoding bestEncodingForTypeAndData(const QByteArray &mimeType, const QByteArray &data)
qsizetype size() const
const Headers::ContentTransferEncoding * contentTransferEncoding() const
void setBody(const QByteArray &body)
void setEncoding(contentEncoding e)
void setEncrypted(bool encrypted)
Sets whether the attachment is encrypted.
Definition attachmentpart.cpp:178
void setMimeType(const QByteArray &mimeType)
Sets the mimeType of the attachment.
Definition attachmentpart.cpp:158
bool isEncrypted() const
Returns whether the attachment is encrypted.
Definition attachmentpart.cpp:173
KMime::Headers::contentEncoding encoding() const
Returns the encoding that will be used for the attachment.
Definition attachmentpart.cpp:131
QByteArray mimeType() const
Returns the mime type of the attachment.
Definition attachmentpart.cpp:153
void setInline(bool value)
Sets whether the attachment will be displayed inline the message.
Definition attachmentpart.cpp:110
bool isAutoEncoding() const
Returns whether encoding of the attachment will be determined automatically.
Definition attachmentpart.cpp:115
void setDescription(const QString &description)
Sets the description of the attachment.
Definition attachmentpart.cpp:100
QByteArray charset() const
Returns the charset that will be used for the attachment.
Definition attachmentpart.cpp:143
void setAutoEncoding(bool enabled)
Sets whether encoding of the attachment will be determined automatically.
Definition attachmentpart.cpp:120
QString description() const
Returns the description of the attachment.
Definition attachmentpart.cpp:95
bool isInline() const
Returns whether the attachment will be displayed inline the message.
Definition attachmentpart.cpp:105
void setData(const QByteArray &data)
Sets the payload data of the attachment.
Definition attachmentpart.cpp:198
void setFileName(const QString &name)
Sets the file name of the attachment.
Definition attachmentpart.cpp:90
void setCharset(const QByteArray &charset)
Sets the charset that will be used for the attachment.
Definition attachmentpart.cpp:148
bool isMessageOrMessageCollection() const
Returns whether the specified attachment part is an encapsulated message (message/rfc822) or a collec...
Definition attachmentpart.cpp:214
void setCompressed(bool compressed)
Sets whether the attachment is compressed.
Definition attachmentpart.cpp:168
bool isCompressed() const
Returns whether the attachment is compressed.
Definition attachmentpart.cpp:163
void setEncoding(KMime::Headers::contentEncoding encoding)
Sets the encoding that will be used for the attachment.
Definition attachmentpart.cpp:136
KCALUTILS_EXPORT QString mimeType()
bool isEmpty() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.