Messagelib

sendlaterremovejob.cpp
1/*
2 SPDX-FileCopyrightText: 2020 Daniel Vrátil <dvratil@kde.org>
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
12using namespace MessageComposer;
13
14SendLaterRemoveJob::SendLaterRemoveJob(Akonadi::Item::Id item, QObject *parent)
15 : SendLaterJob(parent)
16 , mItem(item)
17{
18}
19
20QDBusPendingReply<> SendLaterRemoveJob::doCall(OrgFreedesktopAkonadiSendLaterAgentInterface *iface)
21{
22 return iface->removeItem(mItem);
23}
24
25QString SendLaterRemoveJob::getErrorString(Error, const QString &detail) const
26{
27 return i18n("Failed to removed message from send later schedule: %1", detail);
28}
29
30#include "moc_sendlaterremovejob.cpp"
QString i18n(const char *text, const TYPE &arg...)
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.