Messagelib

sendlaterjob.h
1 /*
2  SPDX-FileCopyrightText: 2020 Daniel Vrátil <[email protected]>
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 
14 class OrgFreedesktopAkonadiSendLaterAgentInterface;
15 
16 namespace MessageComposer
17 {
18 class MESSAGECOMPOSER_EXPORT SendLaterJob : public KJob
19 {
20  Q_OBJECT
21 public:
22  enum Error {
23  AgentNotAvailable = KJob::UserDefinedError,
24  CallFailed,
25  };
26 
27  explicit SendLaterJob(QObject *parent = nullptr);
28 
29  void start() final;
30 
31 protected:
32  virtual QDBusPendingReply<> doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface) = 0;
33  virtual QString getErrorString(Error error, const QString &desc) const = 0;
34 };
35 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.