aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wprt.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-03-03 23:49:27 +0000
committerFritz Elfert <felfert@to.com>2002-03-03 23:49:27 +0000
commitf0cd69968e5667b5ab1d00a3a78a54c6f8cffd5d (patch)
treeda5437540933e0acdde0dcecc9643b82c537314f /lib/wprt.h
parenta4dcb0ecf632832258ebb523c6bc39b7b94f8775 (diff)
downloadplptools-f0cd69968e5667b5ab1d00a3a78a54c6f8cffd5d.tar.gz
plptools-f0cd69968e5667b5ab1d00a3a78a54c6f8cffd5d.tar.bz2
plptools-f0cd69968e5667b5ab1d00a3a78a54c6f8cffd5d.zip
- Added bitmap conversion functions.
- Updated printer class according to Protocol doc 1.15
Diffstat (limited to 'lib/wprt.h')
-rw-r--r--lib/wprt.h17
1 files changed, 15 insertions, 2 deletions
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<rfsv::errs> initPrinter();
+ /**
+ * Cancels a running job.
+ */
+ Enum<rfsv::errs> 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<rfsv::errs> getResponse(bufferStore &data);
const char *getConnectName();