Messagelib
attachmentcompressjob.cpp
36 AttachmentCompressJob::AttachmentCompressJobPrivate::AttachmentCompressJobPrivate(AttachmentCompressJob *qq)
59 if (!zip.writeFile(mOriginalPart->name(), decoded, archivePerms, QString(/*user*/), QString(/*group*/), zipTime, zipTime, zipTime)) {
71 mCompressedPart->setName(mOriginalPart->name() + QLatin1String(".zip")); // TODO not sure name should be .zipped too
const AttachmentPart::Ptr originalPart() const
Returns the original part of the compressed attachment.
Definition: attachmentcompressjob.cpp:101
void setOriginalPart(const AttachmentPart::Ptr &part)
Sets the original part of the compressed attachment.
Definition: attachmentcompressjob.cpp:106
~AttachmentCompressJob() override
Destroys the attachment compress job.
A job to compress the attachment of an email.
Definition: attachmentcompressjob.h:23
WriteOnly
singleShot
QDateTime currentDateTime()
DeflateCompression
QString i18n(const char *text, const TYPE &arg...)
bool isCompressedPartLarger() const
Returns whether the compressed part is larger than the original part.
Definition: attachmentcompressjob.cpp:116
AttachmentPart::Ptr compressedPart() const
Returns the compressed part of the attachment.
Definition: attachmentcompressjob.cpp:111
int size() const const
char * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue May 17 2022 04:00:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue May 17 2022 04:00:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.