Messagelib
attachmentcompressjob.cpp
35 AttachmentCompressJob::AttachmentCompressJobPrivate::AttachmentCompressJobPrivate(AttachmentCompressJob *qq)
58 if (!zip.writeFile(mOriginalPart->name(), decoded, archivePerms, QString(/*user*/), QString(/*group*/), zipTime, zipTime, zipTime)) {
70 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:100
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.
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:115
AttachmentPart::Ptr compressedPart() const
Returns the compressed part of the attachment.
Definition: attachmentcompressjob.cpp:110
int size() const const
char * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.