aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmime/message.hpp')
-rw-r--r--vmime/message.hpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/vmime/message.hpp b/vmime/message.hpp
index f3be2294..9767564d 100644
--- a/vmime/message.hpp
+++ b/vmime/message.hpp
@@ -43,12 +43,25 @@ public:
message();
- // Component parsing & assembling
- void generate(utility::outputStream& os, const string::size_type maxLineLength = options::getInstance()->message.maxLineLength(), const string::size_type curLinePos = 0, string::size_type* newLinePos = NULL) const;
-
- const string generate(const string::size_type maxLineLength = options::getInstance()->message.maxLineLength(), const string::size_type curLinePos = 0) const;
+public:
- void parse(const string& buffer);
+ // Override default generate() functions so that we can change
+ // the default 'maxLineLength' value
+ void generate
+ (utility::outputStream& os,
+ const string::size_type maxLineLength = options::getInstance()->message.maxLineLength(),
+ const string::size_type curLinePos = 0,
+ string::size_type* newLinePos = NULL) const;
+
+ const string generate
+ (const string::size_type maxLineLength = options::getInstance()->message.maxLineLength(),
+ const string::size_type curLinePos = 0) const;
+
+ void generate
+ (ref <utility::outputStream> os,
+ const string::size_type maxLineLength = lineLengthLimits::infinite,
+ const string::size_type curLinePos = 0,
+ string::size_type* newLinePos = NULL) const;
};