diff options
-rw-r--r-- | common/unzip.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/unzip.h b/common/unzip.h index 309310ade1..358bf6cbba 100644 --- a/common/unzip.h +++ b/common/unzip.h @@ -38,9 +38,23 @@ class ZipArchive : public Archive { void *_zipFile; public: + /** + * Open the .zip archive with the given file name. + */ ZipArchive(const String &name); + + /** + * Open the .zip archive to which the given FSNode refers to. + */ ZipArchive(const FSNode &node); + + /** + * Open a .zip file from a stream. This takes ownership of the stream, + * in particular, it is closed when the ZipArchive is deleted. + */ ZipArchive(SeekableReadStream *stream); + + ~ZipArchive(); bool isOpen() const; |