Messagelib

followupreminder.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 "followupreminder.h"
8 #include "followupreminderinterface.h"
9 
10 #include <Akonadi/ServerManager>
11 
12 using namespace MessageComposer;
13 
14 bool FollowUpReminder::isAvailableAndEnabled()
15 {
17  org::freedesktop::Akonadi::FollowUpReminderAgent iface{
18  ServerManager::agentServiceName(ServerManager::Agent, QStringLiteral("akonadi_followupreminder_agent")),
19  QStringLiteral("/FollowUpReminder"),
21 
22  return iface.isValid() && iface.enabledAgent();
23 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QDBusConnection sessionBus()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:56:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.