refactor: API split (#721)

* refactor: API split

* refactor: cleanup hyperiond
This commit is contained in:
brindosch
2020-03-26 17:59:41 +01:00
committed by GitHub
parent c6c6453267
commit 2739aec1e3
23 changed files with 2044 additions and 1128 deletions

View File

@@ -41,19 +41,17 @@ public:
///
/// @brief Save an effect with EffectFileHandler
/// @param obj The effect args
/// @param[out] resultMsg The feedback message
/// @return True on success else false
/// @param obj The effect args
/// @return If not empty, it contains the error
///
bool saveEffect(const QJsonObject& obj, QString& resultMsg);
QString saveEffect(const QJsonObject& obj);
///
/// @brief Delete an effect by name.
/// @param[in] effectName The effect name to delete
/// @param[out] resultMsg The message on error
/// @return True on success else false
/// @param effectName The effect name to delete
/// @return If not empty, it contains the error
///
bool deleteEffect(const QString& effectName, QString& resultMsg);
QString deleteEffect(const QString& effectName);
///
/// @brief Get all init data of the running effects and stop them

View File

@@ -29,19 +29,17 @@ public:
///
/// @brief Save an effect
/// @param obj The effect args
/// @param[out] resultMsg The feedback message
/// @return True on success else false
/// @param obj The effect args
/// @return If not empty, it contains the error
///
bool saveEffect(const QJsonObject& obj, QString& resultMsg);
QString saveEffect(const QJsonObject& obj);
///
/// @brief Delete an effect by name.
/// @param[in] effectName The effect name to delete
/// @param[out] resultMsg The message on error
/// @return True on success else false
/// @param effectName The effect name to delete
/// @return If not empty, it contains the error
///
bool deleteEffect(const QString& effectName, QString& resultMsg);
QString deleteEffect(const QString& effectName);
public slots:
///