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 }
QString i18n(const char *text, const TYPE &arg...)
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 Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.