X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6001e347baf63a91be525f3b9beeefde4bc16f19..ee0f553126e492cd610e836adfc86a72b45b831f:/include/wx/zipstrm.h?ds=sidebyside

diff --git a/include/wx/zipstrm.h b/include/wx/zipstrm.h
index ad1e680b32..57323eeaf0 100644
--- a/include/wx/zipstrm.h
+++ b/include/wx/zipstrm.h
@@ -3,14 +3,14 @@
 // Purpose:     wxZipInputStream for reading files from ZIP archive
 // Author:      Vaclav Slavik
 // Copyright:   (c) 1999 Vaclav Slavik
-// Licence:     wxWindows Licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __ZIPSTREAM_H__
 #define __ZIPSTREAM_H__
 
-#ifdef __GNUG__
-#pragma interface
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+#pragma interface "zipstrm.h"
 #endif
 
 #include "wx/defs.h"
@@ -26,49 +26,36 @@
 //--------------------------------------------------------------------------------
 
 
-class WXDLLEXPORT wxZipInputStream : public wxInputStream
+class WXDLLIMPEXP_BASE wxZipInputStream : public wxInputStream
 {
-    private:
-        size_t m_Size;
-        off_t m_Pos;
-        void *m_Archive;
-                // this void* is handle of archive .
-                // I'm sorry it is void and not proper type but I don't want
-                // to make unzip.h header public.
-
-    public:
-        wxZipInputStream(const wxString& archive, const wxString& file);
-                // archive is name of .zip archive, file is name of file to be extracted.
-                // Remember that archive must be local file accesible via fopen, fread functions!
-        ~wxZipInputStream();
-
-    protected:
-        virtual size_t GetSize() const {return m_Size;}
-        virtual size_t OnSysRead(void *buffer, size_t bufsize);
-        virtual off_t OnSysSeek(off_t seek, wxSeekMode mode);
-        virtual off_t OnSysTell() const {return m_Pos;}
-};
-
-
-#endif 
-   // wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
-
-#endif 
-   // __ZIPSTREAM_H__
-
-
-
-
-
-
-
-
-
+public:
+    wxZipInputStream(const wxString& archive, const wxString& file);
+            // archive is name of .zip archive, file is name of file to be extracted.
+            // Remember that archive must be local file accesible via fopen, fread functions!
+    ~wxZipInputStream();
 
+    virtual size_t GetSize() const {return m_Size;}
+    virtual bool Eof() const;
 
+protected:
+    virtual size_t OnSysRead(void *buffer, size_t bufsize);
+    virtual off_t OnSysSeek(off_t seek, wxSeekMode mode);
+    virtual off_t OnSysTell() const {return m_Pos;}
 
+private:
+    size_t m_Size;
+    off_t m_Pos;
 
+    // this void* is handle of archive . I'm sorry it is void and not proper
+    // type but I don't want to make unzip.h header public.
+    void *m_Archive;
 
+    DECLARE_NO_COPY_CLASS(wxZipInputStream)
+};
 
 
+#endif 
+   // wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
 
+#endif 
+   // __ZIPSTREAM_H__