3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-23 15:45:53 +00:00

23 lines
601 B
C++
Raw Normal View History

2022-03-05 22:41:29 +05:00
/*
SPDX-FileCopyrightText: 2011 Viranch Mehta <viranch.mehta@gmail.com>
SPDX-License-Identifier: LGPL-2.0-only
*/
#include "hotplugservice.h"
#include "hotplugengine.h"
#include "hotplugjob.h"
HotplugService::HotplugService(HotplugEngine *parent, const QString &source)
: Plasma::Service(parent)
, m_engine(parent)
{
setName(QStringLiteral("hotplug"));
setDestination(source);
}
Plasma::ServiceJob *HotplugService::createJob(const QString &operation, QMap<QString, QVariant> &parameters)
{
return new HotplugJob(m_engine, destination(), operation, parameters, this);
}