File indexing completed on 2024-05-19 05:37:49

0001 /*
0002     SPDX-FileCopyrightText: 2008 Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include "kuiserverengine.h"
0010 
0011 #include <QPointer>
0012 
0013 #include <plasma5support/servicejob.h>
0014 
0015 #include "job.h"
0016 
0017 namespace NotificationManager
0018 {
0019 class Job;
0020 }
0021 
0022 class JobAction : public Plasma5Support::ServiceJob
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     JobAction(NotificationManager::Job *job, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = nullptr)
0028         : ServiceJob(KuiserverEngine::sourceName(job), operation, parameters, parent)
0029         , m_job(job)
0030     {
0031     }
0032 
0033     void start() override;
0034 
0035 private:
0036     QPointer<NotificationManager::Job> m_job;
0037 };