X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7d0a28b01dc602e3b51dcc7d9046fad2da894f9..c29c95fe24973b94fd724db767193171ca7c513d:/interface/wx/zipstrm.h diff --git a/interface/wx/zipstrm.h b/interface/wx/zipstrm.h index 357b113320..18bb864c27 100644 --- a/interface/wx/zipstrm.h +++ b/interface/wx/zipstrm.h @@ -3,7 +3,7 @@ // Purpose: interface of wxZipNotifier // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -98,7 +98,7 @@ enum wxZipFlags See @ref overview_archive_noseek. @library{wxbase} - @category{archive} + @category{archive,streams} @see @ref overview_archive_noseek, wxZipEntry, wxZipInputStream, wxZipOutputStream */ @@ -108,7 +108,7 @@ public: /** Override this to receive notifications when an wxZipEntry object changes. */ - void OnEntryUpdated(wxZipEntry& entry); + virtual void OnEntryUpdated(wxZipEntry& entry) = 0; }; @@ -160,14 +160,16 @@ public: - wxZipEntry::IsText @library{wxbase} - @category{archive} + @category{archive,streams} @see @ref overview_archive, wxZipInputStream, wxZipOutputStream, wxZipNotifier */ class wxZipEntry : public wxArchiveEntry { public: - wxZipEntry(const wxString& name = wxEmptyString); + wxZipEntry(const wxString& name = wxEmptyString, + const wxDateTime& dt = Now(), + wxFileOffset size = wxInvalidOffset); /** Copy constructor. @@ -212,7 +214,7 @@ public: The extra field is used to store platform or application specific data. See Pkware's document 'appnote.txt' for information on its format. */ - char* GetExtra() const; + const char* GetExtra() const; size_t GetExtraLen() const; void SetExtra(const char* extra, size_t len); //@} @@ -224,7 +226,7 @@ public: The extra field is used to store platform or application specific data. See Pkware's document 'appnote.txt' for information on its format. */ - char* GetLocalExtra() const; + const char* GetLocalExtra() const; size_t GetLocalExtraLen() const; void SetLocalExtra(const char* extra, size_t len); //@} @@ -275,7 +277,7 @@ public: /** The compressed size of this entry in bytes. */ - off_t GetCompressedSize() const; + wxFileOffset GetCompressedSize() const; /** CRC32 for this entry's data. @@ -361,7 +363,7 @@ public: wxZipInputStream::SeekI() always returns ::wxInvalidOffset. @library{wxbase} - @category{streams} + @category{archive,streams} @see @ref overview_archive, wxZipEntry, wxZipOutputStream */ @@ -443,7 +445,7 @@ public: See the base class for details. @library{wxbase} - @category{archive} + @category{archive,streams} @see @ref overview_archive, @ref overview_archive_generic, @@ -468,7 +470,7 @@ public: entry and begins the next. @library{wxbase} - @category{streams} + @category{archive,streams} @see @ref overview_archive, wxZipEntry, wxZipInputStream */ @@ -499,7 +501,7 @@ public: The destructor calls Close() to finish writing the zip if it has not been called already. */ - ~wxZipOutputStream(); + virtual ~wxZipOutputStream(); /** Finishes writing the zip, returning @true if successful. @@ -568,7 +570,7 @@ public: */ bool PutNextEntry(const wxString& name, const wxDateTime& dt = wxDateTime::Now(), - off_t size = wxInvalidOffset); + wxFileOffset size = wxInvalidOffset); //@} /**