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 "messagecomposer_export.h" 0010 #include "sendlaterjob.h" 0011 0012 #include <Akonadi/Item> 0013 0014 namespace MessageComposer 0015 { 0016 class MESSAGECOMPOSER_EXPORT SendLaterRemoveJob : public SendLaterJob 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit SendLaterRemoveJob(Akonadi::Item::Id item, QObject *parent = nullptr); 0021 0022 protected: 0023 [[nodiscard]] QDBusPendingReply<> doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface) override; 0024 [[nodiscard]] QString getErrorString(Error error, const QString &detail) const override; 0025 0026 private: 0027 const Akonadi::Item::Id mItem; 0028 }; 0029 }