File indexing completed on 2025-01-05 04:46:24
0001 /* 0002 SPDX-FileCopyrightText: 2009 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "agentsearchinterface.h" 0010 #include "collection.h" 0011 0012 #include <QObject> 0013 0014 class KJob; 0015 0016 namespace Akonadi 0017 { 0018 class AgentSearchInterfacePrivate : public QObject 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit AgentSearchInterfacePrivate(AgentSearchInterface *qq); 0023 0024 void search(const QByteArray &searchId, const QString &query, quint64 collectionId); 0025 void addSearch(const QString &query, const QString &queryLanguage, quint64 resultCollectionId); 0026 void removeSearch(quint64 resultCollectionId); 0027 0028 QByteArray mSearchId; 0029 qint64 mCollectionId; 0030 0031 private Q_SLOTS: 0032 void delayedInit(); 0033 void collectionReceived(KJob *job); 0034 0035 private: 0036 AgentSearchInterface *const q; 0037 }; 0038 0039 }