Akonadi

agentsearchinstance.h
1/*
2 SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
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
15class OrgFreedesktopAkonadiAgentSearchInterface;
16
17namespace Akonadi
18{
19namespace Server
20{
21class SearchTaskManager;
22class AgentSearchInstance : public QObject
23{
25public:
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
35private:
36 QString mId;
37 OrgFreedesktopAkonadiAgentSearchInterface *mInterface;
38 std::unique_ptr<QDBusServiceWatcher> mServiceWatcher;
39 SearchTaskManager &mManager;
40};
41
42} // namespace Server
43} // namespace Akonadi
Helper integration between Akonadi and Qt.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.