File indexing completed on 2024-05-19 05:37:50
0001 /* 0002 SPDX-FileCopyrightText: 2011 Viranch Mehta <viranch.mehta@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #include "hotplugservice.h" 0008 #include "hotplugengine.h" 0009 #include "hotplugjob.h" 0010 0011 HotplugService::HotplugService(HotplugEngine *parent, const QString &source) 0012 : Plasma5Support::Service(parent) 0013 , m_engine(parent) 0014 { 0015 setName(QStringLiteral("hotplug")); 0016 setDestination(source); 0017 } 0018 0019 Plasma5Support::ServiceJob *HotplugService::createJob(const QString &operation, QMap<QString, QVariant> ¶meters) 0020 { 0021 return new HotplugJob(m_engine, destination(), operation, parameters, this); 0022 }