MessageComposer::SendLaterJob Class

Base class for send later operations. More...

Header: #include <MessageComposer/SendLaterJob>
CMake: find_package(KPim6MessageComposer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::MessageComposer)
Inherited By:

MessageComposer::SendLaterCreateJob and MessageComposer::SendLaterRemoveJob

Public Functions

SendLaterJob(QObject *parent = nullptr)

Reimplemented Public Functions

virtual void start() override

Protected Functions

virtual QDBusPendingReply<> doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface) = 0
virtual QString getErrorString(MessageComposer::SendLaterJob::Error error, const QString &desc) const = 0

Detailed Description

Member Function Documentation

[explicit] SendLaterJob::SendLaterJob(QObject *parent = nullptr)

[pure virtual protected] QDBusPendingReply<> SendLaterJob::doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface)

Performs the actual D-Bus call to the send later agent. iface The D-Bus interface to the send later agent. Returns A pending reply from the D-Bus call.

[pure virtual protected] QString SendLaterJob::getErrorString(MessageComposer::SendLaterJob::Error error, const QString &desc) const

Returns a human-readable error message for the given error. error The error code that occurred. desc A description of the error. Returns The formatted error string.

[override virtual] void SendLaterJob::start()