mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-23 15:45:53 +00:00
23 lines
601 B
C++
23 lines
601 B
C++
|
/*
|
||
|
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> ¶meters)
|
||
|
{
|
||
|
return new HotplugJob(m_engine, destination(), operation, parameters, this);
|
||
|
}
|