File indexing completed on 2024-05-12 05:37:17

0001 /*
0002     SPDX-FileCopyrightText: 2009 Chani Armitage <chani@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 // plasma
0010 #include <Plasma5Support/Service>
0011 #include <Plasma5Support/ServiceJob>
0012 
0013 // own
0014 #include "appsource.h"
0015 
0016 /**
0017  * App Service
0018  */
0019 class AppService : public Plasma5Support::Service
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit AppService(AppSource *source);
0025     ~AppService() override;
0026 
0027 protected:
0028     Plasma5Support::ServiceJob *createJob(const QString &operation, QMap<QString, QVariant> &parameters) override;
0029 
0030 private:
0031     AppSource *m_source;
0032 };