Akonadi

agentbrokeninstance.cpp
1 /*
2  SPDX-FileCopyrightText: 2020 Daniel Vr├ítil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "agentbrokeninstance.h"
8 
9 using namespace Akonadi;
10 
11 AgentBrokenInstance::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 
19 bool AgentBrokenInstance::start(const AgentType & /*agentInfo*/)
20 {
21  return false;
22 }
23 
24 void AgentBrokenInstance::quit()
25 {
26  // no-op
27 }
28 
29 void AgentBrokenInstance::cleanup()
30 {
31  // no-op
32 }
33 
34 void AgentBrokenInstance::restartWhenIdle()
35 {
36  // no-op
37 }
38 
39 void AgentBrokenInstance::configure(qlonglong /*windowId*/)
40 {
41  // no-op
42 }
A representation of an agent type.
Q_SCRIPTABLE Q_NOREPLY void start()
Provides an interface to retrieve agent types and manage agent instances.
void onlineChanged(bool online)
Emitted when the online state changed.
A representation of an agent instance.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.