Deprecated and obsolete parts marked up for backward compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -388,8 +388,10 @@ public:
|
||||
wxInputStream *GetInputStream() const;
|
||||
wxOutputStream *GetOutputStream() const;
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// deprecated, for compatibility only
|
||||
wxStreamBase *Stream() { return m_stream; }
|
||||
wxDEPRECATED( wxStreamBase *Stream() );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
// this constructs a dummy wxStreamBuffer, used by (and exists for)
|
||||
// wxMemoryStreams only, don't use!
|
||||
@@ -465,8 +467,10 @@ public:
|
||||
void SetInputStreamBuffer(wxStreamBuffer *buffer);
|
||||
wxStreamBuffer *GetInputStreamBuffer() const { return m_i_streambuf; }
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// deprecated, for compatibility only
|
||||
wxStreamBuffer *InputStreamBuffer() const { return m_i_streambuf; }
|
||||
wxDEPRECATED( wxStreamBuffer *InputStreamBuffer() const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
protected:
|
||||
virtual size_t OnSysRead(void *buffer, size_t bufsize);
|
||||
@@ -506,8 +510,10 @@ public:
|
||||
void SetOutputStreamBuffer(wxStreamBuffer *buffer);
|
||||
wxStreamBuffer *GetOutputStreamBuffer() const { return m_o_streambuf; }
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// deprecated, for compatibility only
|
||||
wxStreamBuffer *OutputStreamBuffer() const { return m_o_streambuf; }
|
||||
wxDEPRECATED( wxStreamBuffer *OutputStreamBuffer() const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
protected:
|
||||
virtual size_t OnSysWrite(const void *buffer, size_t bufsize);
|
||||
@@ -519,7 +525,12 @@ protected:
|
||||
DECLARE_NO_COPY_CLASS(wxBufferedOutputStream)
|
||||
};
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
inline wxStreamBase *wxStreamBuffer::Stream() { return m_stream; }
|
||||
inline wxStreamBuffer *wxBufferedInputStream::InputStreamBuffer() const { return m_i_streambuf; }
|
||||
inline wxStreamBuffer *wxBufferedOutputStream::OutputStreamBuffer() const { return m_o_streambuf; }
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
#endif // wxUSE_STREAMS
|
||||
|
||||
#endif // _WX_WXSTREAM_H__
|
||||
|
||||
|
Reference in New Issue
Block a user