File indexing completed on 2025-01-26 05:00:54

0001 /*
0002  *   SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include "dbusutils.h"
0010 #include <Plugin.h>
0011 
0012 class ActivityRunner : public Plugin
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit ActivityRunner(QObject *parent);
0018     ~ActivityRunner() override;
0019     bool init(QHash<QString, QObject *> &modules) override;
0020 
0021     void Run(const QString &matchId, const QString &actionId);
0022     RemoteMatches Match(const QString &query);
0023     RemoteActions Actions();
0024     QVariantMap Config();
0025 
0026 private:
0027     QObject *m_activitiesService;
0028     const QString m_keywordi18n;
0029     const QString m_keyword;
0030 };