File indexing completed on 2024-05-12 05:37:18
0001 /* 0002 SPDX-FileCopyrightText: 2011 Viranch Mehta <viranch.mehta@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include "hotplugengine.h" 0010 0011 #include <Plasma5Support/ServiceJob> 0012 0013 class HotplugJob : public Plasma5Support::ServiceJob 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 HotplugJob(HotplugEngine *engine, const QString &destination, const QString &operation, QMap<QString, QVariant> ¶meters, QObject *parent = nullptr) 0019 : ServiceJob(destination, operation, parameters, parent) 0020 , m_engine(engine) 0021 , m_dest(destination) 0022 { 0023 } 0024 0025 void start() override; 0026 0027 private: 0028 HotplugEngine *m_engine; 0029 QString m_dest; 0030 };