Messagelib
attachmentcompressjob.cpp
35AttachmentCompressJob::AttachmentCompressJobPrivate::AttachmentCompressJobPrivate(AttachmentCompressJob *qq)
58 if (!zip.writeFile(mOriginalPart->name(), decoded, archivePerms, QString(/*user*/), QString(/*group*/), zipTime, zipTime, zipTime)) {
70 mCompressedPart->setName(mOriginalPart->name() + QLatin1StringView(".zip")); // TODO not sure name should be .zipped too
void setErrorText(const QString &errorText)
void emitResult()
void setError(int errorCode)
DeflateCompression
A job to compress the attachment of an email.
Definition attachmentcompressjob.h:24
const AttachmentPart::Ptr originalPart() const
Returns the original part of the compressed attachment.
Definition attachmentcompressjob.cpp:100
AttachmentCompressJob(const AttachmentPart::Ptr &part, QObject *parent=nullptr)
Creates a new attachment compress job.
Definition attachmentcompressjob.cpp:84
AttachmentPart::Ptr compressedPart() const
Returns the compressed part of the attachment.
Definition attachmentcompressjob.cpp:110
void setOriginalPart(const AttachmentPart::Ptr &part)
Sets the original part of the compressed attachment.
Definition attachmentcompressjob.cpp:105
~AttachmentCompressJob() override
Destroys the attachment compress job.
bool isCompressedPartLarger() const
Returns whether the compressed part is larger than the original part.
Definition attachmentcompressjob.cpp:115
QSharedPointer< AttachmentPart > Ptr
Defines a pointer to an attachment object.
Definition attachmentpart.h:31
QString i18n(const char *text, const TYPE &arg...)
qsizetype size() const const
QDateTime currentDateTime()
WriteOnly
QObject * parent() const const
singleShot
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.