Akonadi

agentsearchinstance.h
1 /*
2  SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_AGENTSEARCHINSTANCE_H
8 #define AKONADI_AGENTSEARCHINSTANCE_H
9 
10 #include <QObject>
11 #include <QString>
12 
13 #include <memory>
14 
16 class OrgFreedesktopAkonadiAgentSearchInterface;
17 
18 namespace Akonadi
19 {
20 namespace Server
21 {
22 
23 class SearchTaskManager;
24 class AgentSearchInstance : public QObject
25 {
26  Q_OBJECT
27 public:
28  explicit AgentSearchInstance(const QString &id, SearchTaskManager &manager);
29  ~AgentSearchInstance() override;
30 
31  bool init();
32 
33  void search(const QByteArray &searchId, const QString &query, qlonglong collectionId);
34 
35  OrgFreedesktopAkonadiAgentSearchInterface *interface() const;
36 
37 private:
38  QString mId;
39  OrgFreedesktopAkonadiAgentSearchInterface *mInterface;
40  std::unique_ptr<QDBusServiceWatcher> mServiceWatcher;
41  SearchTaskManager &mManager;
42 };
43 
44 } // namespace Server
45 } // namespace Akonadi
46 
47 #endif // AKONADI_AGENTSEARCHINSTANCE_H
Q_OBJECTQ_OBJECT
QCA_EXPORT void init()
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.