Akonadi

agentprocessinstance.h
1 /*
2  Copyright (c) 2008 Volker Krause <[email protected]>
3  Copyright (c) 2010 Bertjan Broeksema <[email protected]>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef AGENTPROCESSINSTANCE_H
22 #define AGENTPROCESSINSTANCE_H
23 
24 #include "agentinstance.h"
25 
26 namespace Akonadi
27 {
28 
29 class ProcessControl;
30 
31 class AgentProcessInstance : public AgentInstance
32 {
33  Q_OBJECT
34 
35 public:
36  explicit AgentProcessInstance(AgentManager &manager);
37  ~AgentProcessInstance() override = default;
38 
39  bool start(const AgentType &agentInfo) override;
40  void quit() override;
41  void cleanup() override;
42  void restartWhenIdle() override;
43  void configure(qlonglong windowId) override;
44 
45 private Q_SLOTS:
46  void failedToStart();
47 
48 private:
49  std::unique_ptr<Akonadi::ProcessControl> mController;
50 };
51 
52 }
53 
54 #endif // AGENTPROCESSINSTANCE_H
Represents one agent instance and takes care of communication with it.
AKONADICORE_DEPRECATED void configure(QWidget *parent=nullptr)
Triggers the agent instance to show its configuration dialog.
The agent manager has knowledge about all available agents (it scans for .desktop files in the agent ...
KDEGAMES_EXPORT QAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:08:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.