Denon: added reboot action
This commit is contained in:
parent
de90a140a9
commit
117994d0a1
@ -309,6 +309,14 @@ void IntegrationPluginDenon::executeAction(ThingActionInfo *info)
|
|||||||
return info->finish(Thing::ThingErrorNoError);
|
return info->finish(Thing::ThingErrorNoError);
|
||||||
}
|
}
|
||||||
return info->finish(Thing::ThingErrorActionTypeNotFound);
|
return info->finish(Thing::ThingErrorActionTypeNotFound);
|
||||||
|
} else if (thing->thingClassId() == heosThingClassId) {
|
||||||
|
|
||||||
|
Thing *heosThing = myThings().findById(thing->parentId());
|
||||||
|
Heos *heos = m_heosConnections.value(heosThing->id());
|
||||||
|
if (action.actionTypeId() == heosPlayerAlertActionTypeId) {
|
||||||
|
heos->rebootSpeaker();
|
||||||
|
return info->finish(Thing::ThingErrorNoError);
|
||||||
|
}
|
||||||
} else if (thing->thingClassId() == heosPlayerThingClassId) {
|
} else if (thing->thingClassId() == heosPlayerThingClassId) {
|
||||||
|
|
||||||
Thing *heosThing = myThings().findById(thing->parentId());
|
Thing *heosThing = myThings().findById(thing->parentId());
|
||||||
@ -1039,8 +1047,10 @@ void IntegrationPluginDenon::browserItem(BrowserItemResult *result)
|
|||||||
result->finish(Thing::ThingErrorHardwareNotAvailable);
|
result->finish(Thing::ThingErrorHardwareNotAvailable);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qDebug(dcDenon()) << "Browse item called";
|
qDebug(dcDenon()) << "Browse item called" << result->itemId();
|
||||||
return;
|
|
||||||
|
BrowserItem item(result->itemId());
|
||||||
|
return result->finish(Thing::ThingErrorNoError);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntegrationPluginDenon::executeBrowserItem(BrowserActionInfo *info)
|
void IntegrationPluginDenon::executeBrowserItem(BrowserActionInfo *info)
|
||||||
|
|||||||
@ -222,6 +222,13 @@
|
|||||||
"type": "QString",
|
"type": "QString",
|
||||||
"defaultValue": ""
|
"defaultValue": ""
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"actionTypes": [
|
||||||
|
{
|
||||||
|
"id": "4f8b7fe8-7a18-483a-859d-ed5acb0b9a20",
|
||||||
|
"name": "reboot",
|
||||||
|
"displayName": "Reboot"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user