Akonadi

agentprocessinstance.h
1 /*
2  SPDX-FileCopyrightText: 2008 Volker Krause <[email protected]>
3  SPDX-FileCopyrightText: 2010 Bertjan Broeksema <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "agentinstance.h"
11 
12 namespace Akonadi
13 {
14 class ProcessControl;
15 
16 class AgentProcessInstance : public AgentInstance
17 {
18  Q_OBJECT
19 
20 public:
21  explicit AgentProcessInstance(AgentManager &manager);
22  ~AgentProcessInstance() override = default;
23 
24  bool start(const AgentType &agentInfo) override;
25  void quit() override;
26  void cleanup() override;
27  void restartWhenIdle() override;
28  void configure(qlonglong windowId) override;
29 
30 private Q_SLOTS:
31  void failedToStart();
32 
33 private:
34  std::unique_ptr<Akonadi::ProcessControl> mController;
35 };
36 
37 }
38 
The agent manager has knowledge about all available agents (it scans for .desktop files in the agent ...
Q_SCRIPTABLE Q_NOREPLY void start()
Represents one agent instance and takes care of communication with it.
const QList< QKeySequence > & quit()
AKONADICORE_DEPRECATED void configure(QWidget *parent=nullptr)
Triggers the agent instance to show its configuration dialog.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.