diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-10 17:08:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-10 23:04:35 +0200 |
commit | 82285ab5c9778cc16a6976f4036ec7188037c6b9 (patch) | |
tree | fcd25e7e97588e2c8075e38d0ce3357de64ffd58 /include/tools/inetstrm.hxx | |
parent | 4464e5dbca7cab6ec91d19914eddd934cb354aa7 (diff) |
Merge INetMessageIStream into INetMIMEMessageStream
Change-Id: Ic3d9cd117b3f911a7cb1317fc9d1d2e9d8f1ff42
Diffstat (limited to 'include/tools/inetstrm.hxx')
-rw-r--r-- | include/tools/inetstrm.hxx | 41 |
1 files changed, 12 insertions, 29 deletions
diff --git a/include/tools/inetstrm.hxx b/include/tools/inetstrm.hxx index 83c5592a0c0a..90d376049725 100644 --- a/include/tools/inetstrm.hxx +++ b/include/tools/inetstrm.hxx @@ -38,8 +38,7 @@ enum INetMessageStreamState INETMSG_EOL_DONE }; -/// Message Generator Interface. -class INetMessageIStream +class TOOLS_DLLPUBLIC INetMIMEMessageStream { INetMIMEMessage *pSourceMsg; bool bHeaderGenerated; @@ -54,44 +53,28 @@ class INetMessageIStream sal_Char *pMsgRead; sal_Char *pMsgWrite; - INetMessageIStream (const INetMessageIStream& rStrm) SAL_DELETED_FUNCTION; - INetMessageIStream& operator= (const INetMessageIStream& rStrm) SAL_DELETED_FUNCTION; - -protected: - virtual int GetMsgLine (sal_Char *pData, sal_uIntPtr nSize); - -public: - INetMessageIStream (sal_uIntPtr nBufferSize = 2048); - virtual ~INetMessageIStream(); - - TOOLS_DLLPUBLIC int Read (sal_Char *pData, sal_uIntPtr nSize); - - INetMIMEMessage *GetSourceMessage() const { return pSourceMsg; } - void SetSourceMessage (INetMIMEMessage *pMsg) { pSourceMsg = pMsg; } - - void SetHeaderGenerated() { bHeaderGenerated = true; } - bool IsHeaderGenerated() const { return bHeaderGenerated; } -}; - -class TOOLS_DLLPUBLIC INetMIMEMessageStream - : public INetMessageIStream -{ int eState; sal_uIntPtr nChildIndex; INetMIMEMessageStream *pChildStrm; - SvMemoryStream *pMsgBuffer; - INetMIMEMessageStream (const INetMIMEMessageStream& rStrm) SAL_DELETED_FUNCTION; INetMIMEMessageStream& operator= (const INetMIMEMessageStream& rStrm) SAL_DELETED_FUNCTION; -protected: - virtual int GetMsgLine (sal_Char *pData, sal_uIntPtr nSize) SAL_OVERRIDE; + int GetInnerMsgLine(sal_Char *pData, sal_uIntPtr nSize); + int GetOuterMsgLine(sal_Char *pData, sal_uIntPtr nSize); public: INetMIMEMessageStream (sal_uIntPtr nBufferSize = 2048); - virtual ~INetMIMEMessageStream(); + ~INetMIMEMessageStream(); + + int Read (sal_Char *pData, sal_uIntPtr nSize); + + INetMIMEMessage *GetSourceMessage() const { return pSourceMsg; } + void SetSourceMessage (INetMIMEMessage *pMsg) { pSourceMsg = pMsg; } + + void SetHeaderGenerated() { bHeaderGenerated = true; } + bool IsHeaderGenerated() const { return bHeaderGenerated; } }; #endif |