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 { AgentNotAvailable = KJob::UserDefinedError, CallFailed };
23 
24  explicit SendLaterJob(QObject *parent = nullptr);
25 
26  void start() final;
27 
28 protected:
29  virtual QDBusPendingReply<> doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface) = 0;
30  virtual QString getErrorString(Error error, const QString &desc) const = 0;
31 };
32 }
33 
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-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:06:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.