Messagelib

sendlaterjob.h
1/*
2 SPDX-FileCopyrightText: 2020 Daniel Vrátil <dvratil@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <KJob>
10#include <QDBusPendingReply>
11
12#include "messagecomposer_export.h"
13
14class OrgFreedesktopAkonadiSendLaterAgentInterface;
15
16namespace MessageComposer
17{
18class MESSAGECOMPOSER_EXPORT SendLaterJob : public KJob
19{
20 Q_OBJECT
21public:
22 enum Error {
23 AgentNotAvailable = KJob::UserDefinedError,
24 CallFailed,
25 };
26
27 explicit SendLaterJob(QObject *parent = nullptr);
28
29 void start() final;
30
31protected:
32 virtual QDBusPendingReply<> doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface) = 0;
33 virtual QString getErrorString(Error error, const QString &desc) const = 0;
34};
35}
Q_SCRIPTABLE Q_NOREPLY void start()
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:49:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.