File indexing completed on 2024-11-10 04:40:08
0001 /* 0002 SPDX-FileCopyrightText: 2014 Christian Mollekopf <mollekopf@kolabsys.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "../../../src/server/search/abstractsearchplugin.h" 0010 #include "searchquery.h" 0011 #include <QStringList> 0012 0013 class TestSearchPlugin : public QObject, public Akonadi::AbstractSearchPlugin 0014 { 0015 Q_OBJECT 0016 Q_INTERFACES(Akonadi::AbstractSearchPlugin) 0017 Q_PLUGIN_METADATA(IID "org.kde.akonadi.TestSearchPlugin" FILE "akonadi_test_searchplugin.json") 0018 public: 0019 QSet<qint64> search(const QString &query, const QList<qint64> &collections, const QStringList &mimeTypes) override; 0020 0021 static QSet<qint64> parseQuery(const QString &queryString); 0022 };