diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-03 23:49:27 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-03 23:49:27 +0000 |
commit | f0cd69968e5667b5ab1d00a3a78a54c6f8cffd5d (patch) | |
tree | da5437540933e0acdde0dcecc9643b82c537314f /lib/wprt.h | |
parent | a4dcb0ecf632832258ebb523c6bc39b7b94f8775 (diff) | |
download | plptools-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.h | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -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(); |