diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-11 16:31:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-11 17:09:09 +0100 |
commit | ba2cb77315fa37f6fd911d9f10fc1e74c56272ca (patch) | |
tree | e3022b702c8af4bdb8b476302f70cc99407ddcda /include | |
parent | c27ab70f2664e8728a4aec8cc39d6c89d016c319 (diff) |
Fold INetIStream into INetMessageIStream
Change-Id: I882a8bc2048149307383491cc77c4e10f5e99a52
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/inetstrm.hxx | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/include/tools/inetstrm.hxx b/include/tools/inetstrm.hxx index 30b5e48c22d0..2676315073f3 100644 --- a/include/tools/inetstrm.hxx +++ b/include/tools/inetstrm.hxx @@ -35,21 +35,6 @@ enum INetStreamStatus INETSTREAM_STATUS_ERROR = -1 }; -class TOOLS_DLLPUBLIC INetIStream -{ - INetIStream (const INetIStream& rStrm) SAL_DELETED_FUNCTION; - INetIStream& operator= (const INetIStream& rStrm) SAL_DELETED_FUNCTION; - -protected: - virtual int GetData (sal_Char *pData, sal_uIntPtr nSize) = 0; - -public: - INetIStream (); - virtual ~INetIStream (void); - - int Read (sal_Char *pData, sal_uIntPtr nSize); -}; - class INetOStream { INetOStream (const INetOStream& rStrm) SAL_DELETED_FUNCTION; @@ -78,7 +63,7 @@ enum INetMessageStreamState }; /// Message Generator Interface. -class INetMessageIStream : public INetIStream +class INetMessageIStream { INetMIMEMessage *pSourceMsg; bool bHeaderGenerated; @@ -93,8 +78,6 @@ class INetMessageIStream : public INetIStream sal_Char *pMsgRead; sal_Char *pMsgWrite; - virtual int GetData (sal_Char *pData, sal_uIntPtr nSize) SAL_OVERRIDE; - INetMessageIStream (const INetMessageIStream& rStrm) SAL_DELETED_FUNCTION; INetMessageIStream& operator= (const INetMessageIStream& rStrm) SAL_DELETED_FUNCTION; @@ -105,6 +88,8 @@ public: INetMessageIStream (sal_uIntPtr nBufferSize = 2048); virtual ~INetMessageIStream (void); + TOOLS_DLLPUBLIC int Read (sal_Char *pData, sal_uIntPtr nSize); + INetMIMEMessage *GetSourceMessage (void) const { return pSourceMsg; } void SetSourceMessage (INetMIMEMessage *pMsg) { pSourceMsg = pMsg; } |