Akonadi

agentthreadinstance.h
1 /*
2  SPDX-FileCopyrightText: 2010 Bertjan Broeksema <[email protected]>
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 
13 namespace Akonadi
14 {
15 class AgentThreadInstance : public AgentInstance
16 {
17  Q_OBJECT
18 public:
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 
27 private Q_SLOTS:
28  void agentServerRegistered();
29 
30 private:
31  AgentType mAgentType;
32  QDBusServiceWatcher mServiceWatcher;
33 };
34 
35 }
36 
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 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.