Akonadi

agentbrokeninstance.cpp
1/*
2 SPDX-FileCopyrightText: 2020 Daniel Vrátil <dvratil@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "agentbrokeninstance.h"
8
9using namespace Akonadi;
10
11AgentBrokenInstance::AgentBrokenInstance(const QString &type, AgentManager &manager)
12 : AgentInstance(manager)
13{
14 setAgentType(type);
15 statusChanged(2 /* Akonadi::AgentBase::Status::Broken */, {});
16 onlineChanged(false);
17}
18
19bool AgentBrokenInstance::start(const AgentType & /*agentInfo*/)
20{
21 return false;
22}
23
24void AgentBrokenInstance::quit()
25{
26 // no-op
27}
28
29void AgentBrokenInstance::cleanup()
30{
31 // no-op
32}
33
34void AgentBrokenInstance::restartWhenIdle()
35{
36 // no-op
37}
38
39void AgentBrokenInstance::configure(qlonglong /*windowId*/)
40{
41 // no-op
42}
43
44#include "moc_agentbrokeninstance.cpp"
Represents one agent instance and takes care of communication with it.
The agent manager has knowledge about all available agents (it scans for .desktop files in the agent ...
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.