File indexing completed on 2024-06-23 05:18:37

0001 /*
0002    SPDX-FileCopyrightText: 2020 Daniel Vrátil <dvratil@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "sendlaterinfo.h"
0010 #include "sendlaterjob.h"
0011 
0012 #include "messagecomposer_export.h"
0013 
0014 namespace MessageComposer
0015 {
0016 class MESSAGECOMPOSER_EXPORT SendLaterCreateJob : public SendLaterJob
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit SendLaterCreateJob(const SendLaterInfo &info, QObject *parent = nullptr);
0021 
0022 protected:
0023     [[nodiscard]] QDBusPendingReply<> doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface) override;
0024     [[nodiscard]] QString getErrorString(SendLaterJob::Error code, const QString &detail) const override;
0025 
0026 private:
0027     const SendLaterInfo mInfo;
0028 };
0029 }