Streamline Callbacks

This commit is contained in:
Lord-Grey
2024-11-28 22:11:12 +01:00
parent 5d5c2bfdcb
commit 2e4942adc6
8 changed files with 79 additions and 40 deletions

View File

@@ -50,6 +50,8 @@ public:
///
void initialize();
QSharedPointer<JsonCallbacks> JsonAPI::getCallBack() const;
public slots:
private slots:
@@ -82,7 +84,7 @@ signals:
///
/// Signal emits with the reply message provided with handleMessage()
///
void callbackMessage(QJsonObject);
void callbackReady(QJsonObject);
///
/// Signal emits whenever a JSON-message should be forwarded

View File

@@ -93,7 +93,7 @@ signals:
/// @brief Emits whenever a new json mesage callback is ready to send
/// @param The JsonObject message
///
void newCallback(QJsonObject);
void callbackReady(QJsonObject);
private slots:
///
@@ -182,6 +182,8 @@ private:
/// construct callback msg
void doCallback(Subscription::Type cmd, const QVariant& data);
void doCallback(Subscription::Type cmd, const QJsonArray& data);
void doCallback(Subscription::Type cmd, const QJsonObject& data);
Logger *_log;
Hyperion* _hyperion;