diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 16:48:34 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 16:48:34 +0100 |
| commit | f2251311a8523b6c24839ccd1e6834ef065c679f (patch) | |
| tree | 56d89508f564281c6a8ae09f3e7c05d214c87170 /src/Xpl2Client.h | |
| parent | fa095de6cc8ec5a5b5c14091f2b3179ad7071876 (diff) | |
| download | QtXpl2-f2251311a8523b6c24839ccd1e6834ef065c679f.tar.gz QtXpl2-f2251311a8523b6c24839ccd1e6834ef065c679f.zip | |
Imaging (m/n) commands: start/stop, masks, image count, n reply
Diffstat (limited to 'src/Xpl2Client.h')
| -rw-r--r-- | src/Xpl2Client.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Xpl2Client.h b/src/Xpl2Client.h index 724f926..838c344 100644 --- a/src/Xpl2Client.h +++ b/src/Xpl2Client.h @@ -159,6 +159,23 @@ public: /** Save settings for one printhead. */ Q_INVOKABLE void phSaveSettings (int printheadId); + /* -- Imaging (m/n) commands --------------------------------------- */ + + /** Start imaging at the given speed. */ + Q_INVOKABLE void imagingStart (double speed); + /** Stop imaging. */ + Q_INVOKABLE void imagingStop (); + /** Send image mask start (front of formatted message, 180 chars). */ + Q_INVOKABLE void imageMaskStart (const QString &mask); + /** Send image mask end (triggers transmission to JC). */ + Q_INVOKABLE void imageMaskEnd (const QString &tail); + /** Send duty cycle mask start (hex, 2 chars per PH). */ + Q_INVOKABLE void dutyCycleMaskStart (const QString &mask); + /** Send duty cycle mask end (triggers transmission to JC). */ + Q_INVOKABLE void dutyCycleMaskEnd (const QString &tail); + /** Check remaining image line count. */ + Q_INVOKABLE void imageCount (); + signals: void hostChanged (); void connectedChanged (); @@ -264,6 +281,10 @@ signals: void jcStatusReceived (const Xpl2JcStatus &status); void phStatusReceived (const Xpl2PhStatus &status); + /* Imaging response signals */ + void imagingReply (int imageLines); + void imagingStopResult (bool success); + private slots: void onSocketConnected (); void onSocketDisconnected (); |
