X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f77e766a3d9d90d2295612532a28fce7dbd2542..23c06cde5df85dbfd94e92e90de225618191153f:/include/wx/tarstrm.h diff --git a/include/wx/tarstrm.h b/include/wx/tarstrm.h index 714156d976..58c6d9a48b 100644 --- a/include/wx/tarstrm.h +++ b/include/wx/tarstrm.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: tarstrm.h +// Name: wx/tarstrm.h // Purpose: Streams for Tar files // Author: Mike Wetherell // RCS-ID: $Id$ @@ -118,11 +118,11 @@ public: void SetNotifier(wxTarNotifier& WXUNUSED(notifier)) { } -private: +protected: void SetOffset(wxFileOffset offset) { m_Offset = offset; } - virtual wxArchiveEntry* DoClone() const { return Clone(); } +private: wxString m_Name; int m_Mode; bool m_IsModeSet; @@ -161,6 +161,7 @@ public: virtual ~wxTarInputStream(); bool OpenEntry(wxTarEntry& entry); + bool OpenEntry(wxArchiveEntry& entry); bool CloseEntry(); wxTarEntry *GetNextEntry(); @@ -173,11 +174,11 @@ protected: wxFileOffset OnSysTell() const { return m_pos; } wxFileOffset OnSysSeek(wxFileOffset seek, wxSeekMode mode); + wxArchiveEntry *DoGetNextEntry() { return GetNextEntry(); } + private: void Init(); - wxArchiveEntry *DoGetNextEntry() { return GetNextEntry(); } - bool OpenEntry(wxArchiveEntry& entry); bool IsOpened() const { return m_pos != wxInvalidOffset; } wxStreamError ReadHeaders(); @@ -218,6 +219,7 @@ public: virtual ~wxTarOutputStream(); bool PutNextEntry(wxTarEntry *entry); + bool PutNextEntry(wxArchiveEntry *entry); bool PutNextEntry(const wxString& name, const wxDateTime& dt = wxDateTime::Now(), @@ -227,7 +229,9 @@ public: const wxDateTime& dt = wxDateTime::Now()); bool CopyEntry(wxTarEntry *entry, wxTarInputStream& inputStream); + bool CopyEntry(wxArchiveEntry *entry, wxArchiveInputStream& stream); bool CopyArchiveMetaData(wxTarInputStream& WXUNUSED(s)) { return true; } + bool CopyArchiveMetaData(wxArchiveInputStream& WXUNUSED(s)) { return true; } void Sync(); bool CloseEntry(); @@ -246,9 +250,6 @@ protected: private: void Init(wxTarFormat format); - bool PutNextEntry(wxArchiveEntry *entry); - bool CopyEntry(wxArchiveEntry *entry, wxArchiveInputStream& stream); - bool CopyArchiveMetaData(wxArchiveInputStream& WXUNUSED(s)) { return true; } bool IsOpened() const { return m_pos != wxInvalidOffset; } bool WriteHeaders(wxTarEntry& entry);