Akonadi

resourcemanager.h
1 /*
2  SPDX-FileCopyrightText: 2006 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QObject>
10 
11 namespace Akonadi
12 {
13 namespace Server
14 {
15 class Tracer;
16 
17 /**
18  Listens to agent instance added/removed signals and creates/removes
19  the corresponding data in the database.
20 */
21 class ResourceManager : public QObject
22 {
23  Q_OBJECT
24 
25 public:
26  explicit ResourceManager(Tracer &tracer);
27 
28  QStringList resourceInstances() const;
29 
30 public Q_SLOTS:
31  void addResourceInstance(const QString &name, const QStringList &capabilities);
32  void removeResourceInstance(const QString &name);
33 
34 private:
35  Tracer &mTracer;
36 };
37 
38 } // namespace Server
39 } // namespace Akonadi
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
The global tracer instance where all akonadi components can send their tracing information to.
Definition: tracer.h:37
Listens to agent instance added/removed signals and creates/removes the corresponding data in the dat...
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Dec 6 2022 03:53:33 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.