Update wakeonlan plugin
This commit is contained in:
parent
9c3b4b4bf5
commit
bd4d3000e1
@ -33,13 +33,11 @@ DevicePluginWakeOnLan::DevicePluginWakeOnLan()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Device::DeviceError DevicePluginWakeOnLan::executeAction(Device *device, const Action &action)
|
void DevicePluginWakeOnLan::executeAction(DeviceActionInfo *info)
|
||||||
{
|
{
|
||||||
if(action.actionTypeId() == wolTriggerActionTypeId){
|
qCDebug(dcWakeOnLan) << "Wake up" << info->device()->name();
|
||||||
qCDebug(dcWakeOnLan) << "Wake up" << device->name();
|
wakeup(info->device()->paramValue(wolDeviceMacParamTypeId).toString());
|
||||||
wakeup(device->paramValue(wolDeviceMacParamTypeId).toString());
|
return info->finish(Device::DeviceErrorNoError);
|
||||||
}
|
|
||||||
return Device::DeviceErrorNoError;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DevicePluginWakeOnLan::wakeup(QString mac)
|
void DevicePluginWakeOnLan::wakeup(QString mac)
|
||||||
|
|||||||
@ -37,7 +37,7 @@ class DevicePluginWakeOnLan : public DevicePlugin
|
|||||||
public:
|
public:
|
||||||
explicit DevicePluginWakeOnLan();
|
explicit DevicePluginWakeOnLan();
|
||||||
|
|
||||||
Device::DeviceError executeAction(Device *device, const Action &action) override;
|
void executeAction(DeviceActionInfo *info) override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void wakeup(QString mac);
|
void wakeup(QString mac);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user