diff options
author | Vincent Richard <[email protected]> | 2005-01-28 17:50:53 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-28 17:50:53 +0000 |
commit | 4ae97ddb0957c626a01682e24c68710e608bcc43 (patch) | |
tree | b81b4898dbfae5a81a6ca6820c7530bc39acf3e9 /examples | |
parent | Fixed bug with signed/unsigned char. (diff) | |
download | vmime-4ae97ddb0957c626a01682e24c68710e608bcc43.tar.gz vmime-4ae97ddb0957c626a01682e24c68710e608bcc43.zip |
Splitted 'contentHandler' into three classes: 'emptyContentHandler', 'stringContentHandler' and 'streamContentHandler'.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example1.cpp | 2 | ||||
-rw-r--r-- | examples/example2.cpp | 2 | ||||
-rw-r--r-- | examples/example3.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/example1.cpp b/examples/example1.cpp index 52d29a1e..cbe7d032 100644 --- a/examples/example1.cpp +++ b/examples/example1.cpp @@ -60,7 +60,7 @@ int main() mb.setSubject(vmime::text("My first message generated with vmime::messageBuilder")); // Message body - mb.getTextPart()->setText(vmime::contentHandler( + mb.getTextPart()->setText(vmime::stringContentHandler( "I'm writing this short text to test message construction " \ "using the vmime::messageBuilder component.")); diff --git a/examples/example2.cpp b/examples/example2.cpp index ae6a657e..2b309fc4 100644 --- a/examples/example2.cpp +++ b/examples/example2.cpp @@ -60,7 +60,7 @@ int main() mb.setSubject(vmime::text("My first message generated with vmime::messageBuilder")); // Message body - mb.getTextPart()->setText(vmime::contentHandler( + mb.getTextPart()->setText(vmime::stringContentHandler( "I'm writing this short text to test message construction " \ "with attachment, using the vmime::messageBuilder component.")); diff --git a/examples/example3.cpp b/examples/example3.cpp index 29211865..9638356b 100644 --- a/examples/example3.cpp +++ b/examples/example3.cpp @@ -73,8 +73,8 @@ int main() vmime::mediaType(vmime::mediaTypes::IMAGE, vmime::mediaTypes::IMAGE_JPEG)); // -- message text - textPart.setText(vmime::contentHandler(vmime::string("This is the <b>HTML text</b>.<br/><img src=\"") + cid + vmime::string("\"/>"))); - textPart.setPlainText(vmime::contentHandler(vmime::string("This is the plain text (without HTML formatting)."))); + textPart.setText(vmime::stringContentHandler(vmime::string("This is the <b>HTML text</b>.<br/><img src=\"") + cid + vmime::string("\"/>"))); + textPart.setPlainText(vmime::stringContentHandler("This is the plain text (without HTML formatting).")); // Construction vmime::message* msg = mb.construct(); |