Akonadi

agentprocessinstance.h
1/*
2 SPDX-FileCopyrightText: 2008 Volker Krause <vkrause@kde.org>
3 SPDX-FileCopyrightText: 2010 Bertjan Broeksema <broeksema@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "agentinstance.h"
11
12namespace Akonadi
13{
14class ProcessControl;
15
16class AgentProcessInstance : public AgentInstance
17{
18 Q_OBJECT
19
20public:
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
30private Q_SLOTS:
31 void failedToStart();
32
33private:
34 std::unique_ptr<Akonadi::ProcessControl> mController;
35};
36
37}
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 ...
Q_SCRIPTABLE Q_NOREPLY void start()
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.