diff options
Diffstat (limited to 'src/vmime/streamContentHandler.hpp')
| -rw-r--r-- | src/vmime/streamContentHandler.hpp | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/src/vmime/streamContentHandler.hpp b/src/vmime/streamContentHandler.hpp index 9b72c073..6964a1c1 100644 --- a/src/vmime/streamContentHandler.hpp +++ b/src/vmime/streamContentHandler.hpp @@ -1,6 +1,6 @@ // // VMime library (http://www.vmime.org) -// Copyright (C) 2002-2013 Vincent Richard <[email protected]> +// Copyright (C) 2002 Vincent Richard <[email protected]> // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -28,15 +28,13 @@ #include "vmime/contentHandler.hpp" -namespace vmime -{ +namespace vmime { /** A content handler which obtains its data from a stream. */ +class VMIME_EXPORT streamContentHandler : public contentHandler { -class VMIME_EXPORT streamContentHandler : public contentHandler -{ public: /** Creates a new empty content handler. No data can be extracted until @@ -57,10 +55,11 @@ public: * * @return a reference to a new content handler */ - streamContentHandler - (shared_ptr <utility::inputStream> is, - const size_t length, - const vmime::encoding& enc = NO_ENCODING); + streamContentHandler( + const shared_ptr <utility::inputStream>& is, + const size_t length, + const vmime::encoding& enc = NO_ENCODING + ); ~streamContentHandler(); @@ -78,13 +77,18 @@ public: * @param enc set to anything other than NO_ENCODING if the data obtained * from the stream is already encoded with the specified encoding */ - void setData - (shared_ptr <utility::inputStream> is, - const size_t length, - const vmime::encoding& enc = NO_ENCODING); + void setData( + const shared_ptr <utility::inputStream>& is, + const size_t length, + const vmime::encoding& enc = NO_ENCODING + ); - void generate(utility::outputStream& os, const vmime::encoding& enc, const size_t maxLineLength = lineLengthLimits::infinite) const; + void generate( + utility::outputStream& os, + const vmime::encoding& enc, + const size_t maxLineLength = lineLengthLimits::infinite + ) const; void extract(utility::outputStream& os, utility::progressListener* progress = NULL) const; void extractRaw(utility::outputStream& os, utility::progressListener* progress = NULL) const; |
