Delete custom created effect configurations with JSON RPC (#289)

* Add ability to delete custom created Effects

* Add deleteEffect function to Hyperion-Remote

* Add deleteEffect function to Hyperion-Remote

* Update schema.json

* Update JsonSchemas.qrc

* Add schema-delete-effect.json

* Add deleteEffect function to JSON RPC

* Add deleteEffect function to JSON RPC

* Add Effect configuration file (.json) to Effect Definition

* Update EffectDefinition.h
This commit is contained in:
Paulchen Panther
2016-11-18 18:39:21 +01:00
committed by brindosch
parent 4972bc086a
commit c2faf07574
10 changed files with 112 additions and 5 deletions

View File

@@ -209,6 +209,22 @@ void JsonConnection::createEffect(const QString &effectName, const QString &effe
parseReply(reply);
}
void JsonConnection::deleteEffect(const QString &effectName)
{
qDebug() << "Delete effect configuration" << effectName;
// create command
QJsonObject effect;
effect["command"] = QString("delete-effect");
effect["name"] = effectName;
// send command message
QJsonObject reply = sendMessage(effect);
// parse reply message
parseReply(reply);
}
QString JsonConnection::getServerInfo()
{
qDebug() << "Get server info";