diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 16:19:49 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 16:19:49 +0100 |
| commit | fa095de6cc8ec5a5b5c14091f2b3179ad7071876 (patch) | |
| tree | aa094011263a83a4c91eb8722c2095344656c838 /src/Xpl2Client.h | |
| parent | 7830f0ae98d742467b948ed93c85e122be38fb83 (diff) | |
| download | QtXpl2-fa095de6cc8ec5a5b5c14091f2b3179ad7071876.tar.gz QtXpl2-fa095de6cc8ec5a5b5c14091f2b3179ad7071876.zip | |
EV_ events with Q_GADGET status types, mock periodic emission, tabbed demo UI
Diffstat (limited to 'src/Xpl2Client.h')
| -rw-r--r-- | src/Xpl2Client.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Xpl2Client.h b/src/Xpl2Client.h index 78eca0a..724f926 100644 --- a/src/Xpl2Client.h +++ b/src/Xpl2Client.h @@ -4,6 +4,8 @@ */ #pragma once +#include "Xpl2JcStatus.h" +#include "Xpl2PhStatus.h" #include "Xpl2Protocol.h" #include <QHash> @@ -248,6 +250,20 @@ signals: void jcSaveAllPrintheadSettingsResult (int controllerId, bool success); void phSaveSettingsResult (int controllerId, int printheadId, bool success); + /* EV_ event signals */ + void shuttingDown (); + void phConnectionChanged (int controllerId, int printheadId, bool connected); + void jcErrorCode (int controllerId, int errorCode, + const QStringList ¶ms); + void phErrorCode (int controllerId, int printheadId, int errorCode, + const QStringList ¶ms); + void imgErrorCode (int controllerId, int errorCode, + const QStringList ¶ms); + void statusErrorCode (int controllerId, int errorCode, + const QStringList ¶ms); + void jcStatusReceived (const Xpl2JcStatus &status); + void phStatusReceived (const Xpl2PhStatus &status); + private slots: void onSocketConnected (); void onSocketDisconnected (); @@ -276,7 +292,10 @@ private: JcSetter, PhSetter, JcGetter, - PhGetter + PhGetter, + PhConnectionChanged, + ErrorCode, + PhErrorCode }; struct ResponseEntry @@ -290,6 +309,8 @@ private: bool dispatchResponse (const QByteArray &command, const QVariantList ¶ms, const QTcpSocket *socket); + void handleEvStatusMsgJc (const QVariantList ¶ms); + void handleEvStatusMsgPh (const QVariantList ¶ms); void updateConnectedState (); QString logTag (const QTcpSocket *socket) const; |
