Messagelib
attachmentpart.cpp
22static qint64 sizeWithEncoding(const QByteArray &data, KMime::Headers::contentEncoding encoding) // local
34static KMime::Headers::contentEncoding bestEncodingForTypeAndData(const QByteArray &mimeType, const QByteArray &data)
void setBody(const QByteArray &body)
void setEncrypted(bool encrypted)
Sets whether the attachment is encrypted.
Definition attachmentpart.cpp:186
void setMimeType(const QByteArray &mimeType)
Sets the mimeType of the attachment.
Definition attachmentpart.cpp:166
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
QByteArray mimeType() const
Returns the mime type of the attachment.
Definition attachmentpart.cpp:161
void setInline(bool value)
Sets whether the attachment will be displayed inline the message.
Definition attachmentpart.cpp:118
bool isAutoEncoding() const
Returns whether encoding of the attachment will be determined automatically.
Definition attachmentpart.cpp:123
void setDescription(const QString &description)
Sets the description of the attachment.
Definition attachmentpart.cpp:108
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
QString description() const
Returns the description of the attachment.
Definition attachmentpart.cpp:103
bool isInline() const
Returns whether the attachment will be displayed inline the message.
Definition attachmentpart.cpp:113
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
void setCharset(const QByteArray &charset)
Sets the charset that will be used for the attachment.
Definition attachmentpart.cpp:156
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
bool isCompressed() const
Returns whether the attachment is compressed.
Definition attachmentpart.cpp:171
void setEncoding(KMime::Headers::contentEncoding encoding)
Sets the encoding that will be used for the attachment.
Definition attachmentpart.cpp:144
KCALUTILS_EXPORT QString mimeType()
KTEXTEDITOR_EXPORT size_t qHash(KTextEditor::Cursor cursor, size_t seed=0) noexcept
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 Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.