diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 17:03:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 17:03:41 +0200 |
commit | 1c92fbf4fd73a8b0ad6b79b84fa67b7e24c948a1 (patch) | |
tree | 2983b67e4338aaa8c768a7846a7b8637ea18a914 /include | |
parent | d4af55670fa1f2653e4a64031cc09d51b5ccc8f6 (diff) |
Replace ZCodec::mbInit with sane enum
...and document how the member functions are supposed to be called from client
code.
Change-Id: Ia4847945e4a361c43a0ed001e3e78e901c9abcad
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/zcodec.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx index 5dc67239cb1b..fe1397039b51 100644 --- a/include/tools/zcodec.hxx +++ b/include/tools/zcodec.hxx @@ -27,10 +27,16 @@ class SvStream; +// The overall client call protocol is one of: +// * BeginCompression, Compress, EndCompression +// * BeginCompression, Decompress, EndCompression +// * BeginCompression, Write*, EndCompression +// * BeginCompression, Read*, EndCompression +// * BeginCompression, ReadAsynchron*, EndCompression class TOOLS_DLLPUBLIC ZCodec { -private: - sal_uIntPtr mbInit; + enum State { STATE_INIT, STATE_DECOMPRESS, STATE_COMPRESS }; + State meState; bool mbStatus; bool mbFinish; SvStream* mpIStm; |