From f0cd69968e5667b5ab1d00a3a78a54c6f8cffd5d Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 3 Mar 2002 23:49:27 +0000 Subject: - Added bitmap conversion functions. - Updated printer class according to Protocol doc 1.15 --- lib/wprt.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'lib/wprt.h') diff --git a/lib/wprt.h b/lib/wprt.h index 54ca84b..755c2b9 100644 --- a/lib/wprt.h +++ b/lib/wprt.h @@ -75,13 +75,25 @@ public: */ Enum initPrinter(); + /** + * Cancels a running job. + */ + Enum cancelJob(); + + /** + * Stops the WPRT server. + */ + bool stop(); + protected: /** * The possible commands. */ enum commands { - WPRT_INIT = 0x0100, - WPRT_GET = 0xf0f0, + WPRT_INIT = 0x00, + WPRT_GET = 0xf0, + WPRT_CANCEL = 0xf1, + WPRT_STOP = 0xff, }; /** @@ -110,6 +122,7 @@ protected: * @returns true on success, false on failure. */ bool sendCommand(enum commands cc, bufferStore &data); + Enum getResponse(bufferStore &data); const char *getConnectName(); -- cgit v1.2.3