File indexing completed on 2024-05-12 05:38:17
0001 /* 0002 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in> 0003 SPDX-FileCopyrightText: 2017 David Edmundson <davidedmundson@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QDBusContext> 0011 #include <QDBusMessage> 0012 #include <QObject> 0013 0014 #include "dbusutils_p.h" 0015 #include <KRunner/QueryMatch> 0016 0017 class SearchRunner : public QObject, protected QDBusContext 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit SearchRunner(QObject *parent = nullptr); 0023 0024 RemoteActions Actions(); 0025 RemoteMatches Match(const QString &searchTerm); 0026 void Run(const QString &id, const QString &actionId); 0027 0028 private: 0029 RemoteMatches matchInternal(const QString &searchTerm, const QStringList &types, const QString &category, QSet<QUrl> &foundUrls); 0030 };