diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-10 13:49:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-10 23:04:34 +0200 |
commit | 40bcf53b5d663010efa8360c0d7dd0fe222bacfb (patch) | |
tree | 0988bb06f27189fad814c46e3679b5377b452171 /include | |
parent | e871b6a31aa5004daa7fb3b8531bd7f43e8fc203 (diff) |
Remove unused INetMessageOStream functionality
Change-Id: I34ee4750f30635809b8e23cbf1bd0e16f269f549
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/inetstrm.hxx | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/include/tools/inetstrm.hxx b/include/tools/inetstrm.hxx index ea6be1f9c0fe..97937322820a 100644 --- a/include/tools/inetstrm.hxx +++ b/include/tools/inetstrm.hxx @@ -29,9 +29,6 @@ class SvStream; enum INetStreamStatus { - INETSTREAM_STATUS_LOADED = -4, - INETSTREAM_STATUS_WOULDBLOCK = -3, - INETSTREAM_STATUS_OK = -2, INETSTREAM_STATUS_ERROR = -1 }; @@ -41,9 +38,7 @@ enum INetMessageStreamState INETMSG_EOL_DONE, INETMSG_EOL_SCR, INETMSG_EOL_FCR, - INETMSG_EOL_FLF, - INETMSG_EOL_FSP, - INETMSG_EOL_FESC + INETMSG_EOL_FSP }; /// Message Generator Interface. @@ -81,35 +76,6 @@ public: bool IsHeaderGenerated() const { return bHeaderGenerated; } }; -/// Message Parser Interface. -class INetMessageOStream -{ - INetMIMEMessage *pTargetMsg; - bool bHeaderParsed; - - INetMessageStreamState eOState; - - SvMemoryStream *pMsgBuffer; - - INetMessageOStream (const INetMessageOStream& rStrm) SAL_DELETED_FUNCTION; - INetMessageOStream& operator= (const INetMessageOStream& rStrm) SAL_DELETED_FUNCTION; - -protected: - virtual int PutMsgLine (const sal_Char *pData, sal_uIntPtr nSize); - -public: - INetMessageOStream(); - virtual ~INetMessageOStream(); - - int Write (const sal_Char *pData, sal_uIntPtr nSize); - - INetMIMEMessage *GetTargetMessage() const { return pTargetMsg; } - void SetTargetMessage (INetMIMEMessage *pMsg) { pTargetMsg = pMsg; } - - void ParseHeader (bool bParse = true) { bHeaderParsed = !bParse; } - bool IsHeaderParsed() const { return bHeaderParsed; } -}; - enum INetMessageEncoding { INETMSG_ENCODING_7BIT, @@ -119,8 +85,7 @@ enum INetMessageEncoding }; class TOOLS_DLLPUBLIC INetMIMEMessageStream - : public INetMessageIStream, - public INetMessageOStream + : public INetMessageIStream { int eState; @@ -129,7 +94,6 @@ class TOOLS_DLLPUBLIC INetMIMEMessageStream INetMessageEncoding eEncoding; INetMessageIStream *pEncodeStrm; - INetMessageOStream *pDecodeStrm; SvMemoryStream *pMsgBuffer; @@ -141,7 +105,6 @@ class TOOLS_DLLPUBLIC INetMIMEMessageStream protected: virtual int GetMsgLine (sal_Char *pData, sal_uIntPtr nSize) SAL_OVERRIDE; - virtual int PutMsgLine (const sal_Char *pData, sal_uIntPtr nSize) SAL_OVERRIDE; public: INetMIMEMessageStream (sal_uIntPtr nBufferSize = 2048); |