Messagelib
attachmentpart.cpp
22 static qint64 sizeWithEncoding(const QByteArray &data, KMime::Headers::contentEncoding encoding) // local
34 static KMime::Headers::contentEncoding bestEncodingForTypeAndData(const QByteArray &mimeType, const QByteArray &data)
bool isEncrypted() const
Returns whether the attachment is encrypted.
Definition: attachmentpart.cpp:181
KMime::Headers::contentEncoding encoding() const
Returns the encoding that will be used for the attachment.
Definition: attachmentpart.cpp:139
void setMimeType(const QByteArray &mimeType)
Sets the mimeType of the attachment.
Definition: attachmentpart.cpp:166
bool isMessageOrMessageCollection() const
Returns whether the specified attachment part is an encapsulated message (message/rfc822) or a collec...
Definition: attachmentpart.cpp:222
void setCompressed(bool compressed)
Sets whether the attachment is compressed.
Definition: attachmentpart.cpp:176
QString description() const
Returns the description of the attachment.
Definition: attachmentpart.cpp:103
KCALUTILS_EXPORT QString mimeType()
void setCharset(const QByteArray &charset)
Sets the charset that will be used for the attachment.
Definition: attachmentpart.cpp:156
QByteArray data() const
Returns the payload data of the attachment.
Definition: attachmentpart.cpp:201
void setInline(bool value)
Sets whether the attachment will be displayed inline the message.
Definition: attachmentpart.cpp:118
void setEncrypted(bool encrypted)
Sets whether the attachment is encrypted.
Definition: attachmentpart.cpp:186
void setBody(const QByteArray &body)
bool isCompressed() const
Returns whether the attachment is compressed.
Definition: attachmentpart.cpp:171
bool isEmpty() const const
void setEncoding(KMime::Headers::contentEncoding encoding)
Sets the encoding that will be used for the attachment.
Definition: attachmentpart.cpp:144
bool isInline() const
Returns whether the attachment will be displayed inline the message.
Definition: attachmentpart.cpp:113
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
QByteArray charset() const
Returns the charset that will be used for the attachment.
Definition: attachmentpart.cpp:151
void setAutoEncoding(bool enabled)
Sets whether encoding of the attachment will be determined automatically.
Definition: attachmentpart.cpp:128
void setDescription(const QString &description)
Sets the description of the attachment.
Definition: attachmentpart.cpp:108
bool isAutoEncoding() const
Returns whether encoding of the attachment will be determined automatically.
Definition: attachmentpart.cpp:123
void setData(const QByteArray &data)
Sets the payload data of the attachment.
Definition: attachmentpart.cpp:206
void setFileName(const QString &name)
Sets the file name of the attachment.
Definition: attachmentpart.cpp:98
QByteArray mimeType() const
Returns the mime type of the attachment.
Definition: attachmentpart.cpp:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.