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 #pragma once
8 
9 #include <QObject>
10 #include <QString>
11 
12 #include <memory>
13 
15 class OrgFreedesktopAkonadiAgentSearchInterface;
16 
17 namespace Akonadi
18 {
19 namespace Server
20 {
21 class SearchTaskManager;
22 class AgentSearchInstance : public QObject
23 {
24  Q_OBJECT
25 public:
26  explicit AgentSearchInstance(const QString &id, SearchTaskManager &manager);
27  ~AgentSearchInstance() override;
28 
29  bool init();
30 
31  void search(const QByteArray &searchId, const QString &query, qlonglong collectionId);
32 
33  OrgFreedesktopAkonadiAgentSearchInterface *interface() const;
34 
35 private:
36  QString mId;
37  OrgFreedesktopAkonadiAgentSearchInterface *mInterface;
38  std::unique_ptr<QDBusServiceWatcher> mServiceWatcher;
39  SearchTaskManager &mManager;
40 };
41 
42 } // namespace Server
43 } // namespace Akonadi
44 
Q_OBJECTQ_OBJECT
QCA_EXPORT void init()
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.