/////////////////////////////////////////////////////////////////////////////
// Name: zipstrm.h
-// Purpose: documentation for wxZipNotifier class
+// Purpose: interface of wxZipNotifier
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
@library{wxbase}
@category{FIXME}
- @seealso
- @ref overview_wxarcnoseek "Archives on non-seekable streams", wxZipEntry,
+ @see @ref overview_wxarcnoseek "Archives on non-seekable streams", wxZipEntry,
wxZipInputStream, wxZipOutputStream
*/
class wxZipNotifier
};
+
/**
@class wxZipEntry
@wxheader{zipstrm.h}
@library{wxbase}
@category{FIXME}
- @seealso
- @ref overview_wxarc "Archive formats such as zip", wxZipInputStream,
+ @see @ref overview_wxarc "Archive formats such as zip", wxZipInputStream,
wxZipOutputStream, wxZipNotifier
*/
class wxZipEntry : public wxArchiveEntry
/**
Make a copy of this entry.
*/
- wxZipEntry* Clone();
+ wxZipEntry* Clone() const;
//@{
/**
A short comment for this entry.
*/
wxString GetComment();
- void SetComment(const wxString& comment);
+ const void SetComment(const wxString& comment);
//@}
//@{
high 16 bits are unix mode bits.
The following other accessors access these bits:
@ref wxArchiveEntry::isreadonly IsReadOnly/SetIsReadOnly
-
+
@ref wxArchiveEntry::isdir IsDir/SetIsDir
-
+
@ref mode() Get/SetMode
*/
wxUint32 GetExternalAttributes();
- void SetExternalAttributes(wxUint32 attr);
+ const void SetExternalAttributes(wxUint32 attr);
//@}
//@{
data. See Pkware's document 'appnote.txt' for information on its format.
*/
const char* GetExtra();
- size_t GetExtraLen();
- void SetExtra(const char* extra, size_t len);
+ const size_t GetExtraLen();
+ const void SetExtra(const char* extra, size_t len);
//@}
//@{
data. See Pkware's document 'appnote.txt' for information on its format.
*/
const char* GetLocalExtra();
- size_t GetLocalExtraLen();
- void SetLocalExtra(const char* extra, size_t len);
+ const size_t GetLocalExtraLen();
+ const void SetLocalExtra(const char* extra, size_t len);
//@}
//@{
choose the method when writing the entry.
*/
int GetMethod();
- void SetMethod(int method);
+ const void SetMethod(int method);
//@}
//@{
permissions when creating zips, call SetSystemMadeBy(wxZIP_SYSTEM_UNIX).
*/
int GetMode();
- void SetMode(int mode);
+ const void SetMode(int mode);
//@}
//@{
able to store unix permissions using @ref mode() SetMode.
*/
int GetSystemMadeBy();
- void SetSystemMadeBy(int system);
+ const void SetSystemMadeBy(int system);
//@}
/**
The compressed size of this entry in bytes.
*/
- off_t GetCompressedSize();
+ off_t GetCompressedSize() const;
/**
CRC32 for this entry's data.
*/
- wxUint32 GetCrc();
+ wxUint32 GetCrc() const;
/**
Returns a combination of the bits flags in the enumeration @c wxZipFlags.
*/
- int GetFlags();
+ int GetFlags() const;
//@{
/**
within the archive. If the third parameter is provided, the bool pointed
to is set to indicate whether the name looks like a directory name
(i.e. has a trailing path separator).
-
+
@see @ref overview_wxarcbyname "Looking up an archive entry by name"
*/
wxString GetInternalName();
- wxString GetInternalName(const wxString& name,
- wxPathFormat format = wxPATH_NATIVE,
- bool* pIsDir = NULL);
+ const wxString GetInternalName(const wxString& name,
+ wxPathFormat format = wxPATH_NATIVE,
+ bool* pIsDir = NULL);
//@}
/**
Returns @true if @ref systemmadeby() GetSystemMadeBy
is a flavour of unix.
*/
- bool IsMadeByUnix();
+ bool IsMadeByUnix() const;
//@{
/**
Indicates that this entry's data is text in an 8-bit encoding.
*/
bool IsText();
- void SetIsText(bool isText = true);
+ const void SetIsText(bool isText = true);
//@}
//@{
/**
- Sets the notifier for this entry.
+ Sets the notifier() for this entry.
Whenever the wxZipInputStream updates
this entry, it will then invoke the associated
notifier's wxZipNotifier::OnEntryUpdated
Setting a notifier is not usually necessary. It is used to handle
certain cases when modifying an zip in a pipeline (i.e. between
non-seekable streams).
-
+
@see @ref overview_wxarcnoseek "Archives on non-seekable streams", wxZipNotifier
*/
void SetNotifier(wxZipNotifier& notifier);
};
+
/**
@class wxZipInputStream
@wxheader{zipstrm.h}
@library{wxbase}
@category{streams}
- @seealso
- @ref overview_wxarc "Archive formats such as zip", wxZipEntry, wxZipOutputStream
+ @see @ref overview_wxarc "Archive formats such as zip", wxZipEntry,
+ wxZipOutputStream
*/
class wxZipInputStream : public wxArchiveInputStream
{
};
+
/**
@class wxZipClassFactory
@wxheader{zipstrm.h}
@library{wxbase}
@category{FIXME}
- @seealso
- @ref overview_wxarc "Archive formats such as zip", @ref overview_wxarcgeneric
- "Generic archive programming", wxZipEntry, wxZipInputStream, wxZipOutputStream
+ @see @ref overview_wxarc "Archive formats such as zip", @ref
+ overview_wxarcgeneric "Generic archive programming", wxZipEntry, wxZipInputStream, wxZipOutputStream
*/
class wxZipClassFactory : public wxArchiveClassFactory
{
};
+
/**
@class wxZipOutputStream
@wxheader{zipstrm.h}
@library{wxbase}
@category{streams}
- @seealso
- @ref overview_wxarc "Archive formats such as zip", wxZipEntry, wxZipInputStream
+ @see @ref overview_wxarc "Archive formats such as zip", wxZipEntry,
+ wxZipInputStream
*/
class wxZipOutputStream : public wxArchiveOutputStream
{
which currently is equivalent to 6.
*/
int GetLevel();
- void SetLevel(int level);
+ const void SetLevel(int level);
//@}
/**
*/
void SetComment(const wxString& comment);
};
+