File indexing completed on 2024-12-15 05:02:05
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 ACTIVITIES_RUNNER_H 0008 #define ACTIVITIES_RUNNER_H 0009 0010 #include <AbstractRunner.h> 0011 0012 #include <KActivities/ActivitiesModel> 0013 0014 class ActivitiesRunner: public AbstractRunner { 0015 Q_OBJECT 0016 Q_CLASSINFO("D-Bus Interface", "org.kde.plasma.blade.Activities") 0017 0018 public: 0019 ActivitiesRunner(QObject *parent, const QVariantList &args); 0020 ~ActivitiesRunner(); 0021 0022 void query() override; 0023 0024 private: 0025 KActivities::ActivitiesModel activities; 0026 inline QString activityData(int row, int role) const; 0027 }; 0028 0029 0030 #endif // include guard end 0031