aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmime/message.hpp')
-rw-r--r--vmime/message.hpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/vmime/message.hpp b/vmime/message.hpp
index 3c70e52d..ebb767e7 100644
--- a/vmime/message.hpp
+++ b/vmime/message.hpp
@@ -26,7 +26,7 @@
#include "vmime/bodyPart.hpp"
-#include "vmime/options.hpp"
+#include "vmime/generationContext.hpp"
namespace vmime
@@ -42,26 +42,16 @@ public:
message();
-
public:
+ using bodyPart::parse;
+ using bodyPart::generate;
+
// 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 maxLineLength = generationContext::getDefaultContext().getMaxLineLength(),
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;
};