1 /*
2     SPDX-FileCopyrightText: 2011 Viranch Mehta <viranch.mehta@gmail.com>
3 
4     SPDX-License-Identifier: LGPL-2.0-only
5 */
6 
7 #pragma once
8 
9 #include "hotplugengine.h"
10 
11 #include <Plasma/ServiceJob>
12 
13 class HotplugJob : public Plasma::ServiceJob
14 {
15     Q_OBJECT
16 
17 public:
18     HotplugJob(HotplugEngine *engine, const QString &destination, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = nullptr)
ServiceJob(destination,operation,parameters,parent)19         : ServiceJob(destination, operation, parameters, parent)
20         , m_engine(engine)
21         , m_dest(destination)
22     {
23     }
24 
25     void start() override;
26 
27 private:
28     HotplugEngine *m_engine;
29     QString m_dest;
30 };
31