File indexing completed on 2025-03-02 05:08:09
0001 /* 0002 SPDX-FileCopyrightText: 2016 Ivan Čukić <ivan.cukic(at)kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef SERVICES_RUNNER_H 0008 #define SERVICES_RUNNER_H 0009 0010 #include <runners/AbstractRunner.h> 0011 0012 #include <KService> 0013 0014 class ServicesRunner: public AbstractRunner { 0015 Q_OBJECT 0016 Q_CLASSINFO("D-Bus Interface", "org.kde.plasma.blade.Services") 0017 0018 public: 0019 ServicesRunner(QObject *parent = nullptr, const QVariantList &args = QVariantList{}); 0020 ~ServicesRunner(); 0021 0022 void query() override; 0023 void cancelQuery() override; 0024 0025 void setupResult(const KService::Ptr &service, Result &result); 0026 0027 private: 0028 QSet<QString> m_seen; 0029 }; 0030 0031 0032 #endif // include guard end 0033