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 #include "jobcontrol.h"
0008 #include "jobaction.h"
0009 #include "kuiserverengine.h"
0010 
0011 using namespace NotificationManager;
0012 
0013 JobControl::JobControl(QObject *parent, Job *job)
0014     : Plasma5Support::Service(parent)
0015     , m_job(job)
0016 {
0017     setName(QStringLiteral("applicationjobs"));
0018     setDestination(KuiserverEngine::sourceName(job));
0019 }
0020 
0021 Plasma5Support::ServiceJob *JobControl::createJob(const QString &operation, QMap<QString, QVariant> &parameters)
0022 {
0023     return new JobAction(m_job, operation, parameters, this);
0024 }