File indexing completed on 2024-05-05 17:44:59
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 ~SearchRunner() override; 0024 0025 RemoteActions Actions(); 0026 RemoteMatches Match(const QString &searchTerm); 0027 void Run(const QString &id, const QString &actionId); 0028 0029 private: 0030 RemoteMatches matchInternal(const QString &searchTerm, const QString &type, const QString &category, QSet<QUrl> &foundUrls); 0031 };