Akonadi

agentthreadinstance.h
1/*
2 SPDX-FileCopyrightText: 2010 Bertjan Broeksema <broeksema@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "agentinstance.h"
9#include "agenttype.h"
10
11#include <QDBusServiceWatcher>
12
13namespace Akonadi
14{
15class AgentThreadInstance : public AgentInstance
16{
17 Q_OBJECT
18public:
19 explicit AgentThreadInstance(AgentManager &manager);
20 ~AgentThreadInstance() override = default;
21
22 bool start(const AgentType &agentInfo) override;
23 void quit() override;
24 void restartWhenIdle() override;
25 void configure(qlonglong windowId) override;
26
27private Q_SLOTS:
28 void agentServerRegistered();
29
30private:
31 AgentType mAgentType;
32 QDBusServiceWatcher mServiceWatcher;
33};
34
35}
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.