MessageCore::AttachmentCompressJob Class
class MessageCore::AttachmentCompressJobA job to compress the attachment of an email. More...
| Header: | #include <MessageCore/AttachmentCompressJob> |
| CMake: | find_package(KPim6MessageCore REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MessageCore) |
Public Functions
| AttachmentCompressJob(const AttachmentPart::Ptr &part, QObject *parent = nullptr) | |
| virtual | ~AttachmentCompressJob() override |
| AttachmentPart::Ptr | compressedPart() const |
| bool | isCompressedPartLarger() const |
| const AttachmentPart::Ptr | originalPart() const |
| void | setOriginalPart(const AttachmentPart::Ptr &part) |
Reimplemented Public Functions
| virtual void | start() override |
Detailed Description
Author: Constantin Berzan <exit3219@gmail.com>
Member Function Documentation
[explicit] AttachmentCompressJob::AttachmentCompressJob(const AttachmentPart::Ptr &part, QObject *parent = nullptr)
Creates a new attachment compress job.
part The part of the attachment to compress. parent The parent object.
[override virtual noexcept] AttachmentCompressJob::~AttachmentCompressJob()
Destroys the attachment compress job.
AttachmentPart::Ptr AttachmentCompressJob::compressedPart() const
Returns the compressed part of the attachment.
Note: does not delete it unless it failed...
bool AttachmentCompressJob::isCompressedPartLarger() const
Returns whether the compressed part is larger than the original part.
const AttachmentPart::Ptr AttachmentCompressJob::originalPart() const
Returns the original part of the compressed attachment.
See also setOriginalPart().
void AttachmentCompressJob::setOriginalPart(const AttachmentPart::Ptr &part)
Sets the original part of the compressed attachment.
See also originalPart().
[override virtual] void AttachmentCompressJob::start()
Starts the attachment compress job.