MessageCore::AttachmentFromUrlBaseJob Class
class MessageCore::AttachmentFromUrlBaseJobThe AttachmentFromUrlBaseJob class. More...
| Header: | #include <MessageCore/AttachmentFromUrlBaseJob> |
| CMake: | find_package(KPim6MessageCore REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MessageCore) |
| Inherits: | MessageCore::AttachmentLoadJob |
Public Functions
| AttachmentFromUrlBaseJob(const QUrl &url = QUrl(), QObject *parent = nullptr) | |
| virtual | ~AttachmentFromUrlBaseJob() override |
| qint64 | maximumAllowedSize() const |
| void | setMaximumAllowedSize(qint64 size) |
| void | setUrl(const QUrl &url) |
| QUrl | url() const |
Protected Slots
| virtual void | doStart() override = 0 |
Detailed Description
Member Function Documentation
[explicit] AttachmentFromUrlBaseJob::AttachmentFromUrlBaseJob(const QUrl &url = QUrl(), QObject *parent = nullptr)
Constructs an attachment from URL base job.
[override virtual noexcept] AttachmentFromUrlBaseJob::~AttachmentFromUrlBaseJob()
Destroys the attachment from URL base job.
[override pure virtual protected slot] void AttachmentFromUrlBaseJob::doStart()
qint64 AttachmentFromUrlBaseJob::maximumAllowedSize() const
Returns the maximum size the attachment is allowed to have.
See also setMaximumAllowedSize().
void AttachmentFromUrlBaseJob::setMaximumAllowedSize(qint64 size)
Sets the maximum size the attachment is allowed to have.
See also maximumAllowedSize().
void AttachmentFromUrlBaseJob::setUrl(const QUrl &url)
Sets the url of the folder that will be loaded as attachment.
See also url().
QUrl AttachmentFromUrlBaseJob::url() const
Returns the url that will be loaded as attachment.
See also setUrl().