diff options
author | Vincent Richard <[email protected]> | 2004-10-25 22:10:13 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-10-25 22:10:13 +0000 |
commit | 6ad871b235ebf12a75d60c59b73b4c7085a575f1 (patch) | |
tree | 6ddd173d6ac5c823907580d8011418a4cb42dd9b | |
parent | Added non-const versions of getRecipients(), getCopyRecipients() and getBindC... (diff) | |
download | vmime-6ad871b235ebf12a75d60c59b73b4c7085a575f1.tar.gz vmime-6ad871b235ebf12a75d60c59b73b4c7085a575f1.zip |
Added appendAttachment(), an alias for attach().
-rw-r--r-- | src/messageBuilder.cpp | 6 | ||||
-rw-r--r-- | src/messageBuilder.hpp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/messageBuilder.cpp b/src/messageBuilder.cpp index d4efaa28..c15532e6 100644 --- a/src/messageBuilder.cpp +++ b/src/messageBuilder.cpp @@ -161,6 +161,12 @@ message* messageBuilder::construct() const void messageBuilder::attach(attachment* attach) { + appendAttachment(attach); +} + + +void messageBuilder::appendAttachment(attachment* attach) +{ m_attach.push_back(attach); } diff --git a/src/messageBuilder.hpp b/src/messageBuilder.hpp index e03e78c8..15bd8bc0 100644 --- a/src/messageBuilder.hpp +++ b/src/messageBuilder.hpp @@ -128,11 +128,18 @@ public: void setSubject(const text& subject); /** Attach a new object to the message. + * This is a synonym for messageBuilder::appendAttachment(). * * @param attach new attachment */ void attach(attachment* attach); + /** Attach a new object to the message. + * + * @param attach new attachment + */ + void appendAttachment(attachment* attach); + /** Remove the attachment at the specified position. * * @param pos position of the attachment to remove |