File indexing completed on 2025-02-02 05:25:16
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 "soliddeviceengine.h" 0010 0011 #include <Plasma5Support/ServiceJob> 0012 0013 class SolidDeviceJob : public Plasma5Support::ServiceJob 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 SolidDeviceJob(SolidDeviceEngine *engine, 0019 const QString &destination, 0020 const QString &operation, 0021 QMap<QString, QVariant> ¶meters, 0022 QObject *parent = nullptr) 0023 : ServiceJob(destination, operation, parameters, parent) 0024 , m_engine(engine) 0025 , m_dest(destination) 0026 { 0027 } 0028 0029 void start() override; 0030 0031 private: 0032 SolidDeviceEngine *m_engine; 0033 QString m_dest; 0034 };