Messagelib

sendlaterremovejob.cpp
1 /*
2  SPDX-FileCopyrightText: 2020 Daniel Vrátil <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "sendlaterremovejob.h"
8 #include "sendlaterinterface.h"
9 
10 #include <KLocalizedString>
11 
12 using namespace MessageComposer;
13 
14 SendLaterRemoveJob::SendLaterRemoveJob(Akonadi::Item::Id item, QObject *parent)
15  : SendLaterJob(parent)
16  , mItem(item)
17 {
18 }
19 
20 QDBusPendingReply<> SendLaterRemoveJob::doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface)
21 {
22  return iface->removeItem(mItem);
23 }
24 
25 QString SendLaterRemoveJob::getErrorString(Error, const QString &detail) const
26 {
27  return i18n("Failed to removed message from send later schedule: %1", detail);
28 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QString i18n(const char *text, const TYPE &arg...)
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.