diff options
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; |
