From f2251311a8523b6c24839ccd1e6834ef065c679f Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 16 Mar 2026 16:48:34 +0100 Subject: Imaging (m/n) commands: start/stop, masks, image count, n reply --- src/Xpl2Client.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/Xpl2Client.h') 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 (); -- cgit v1.2.3