aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-10-25 22:10:13 +0000
committerVincent Richard <[email protected]>2004-10-25 22:10:13 +0000
commit6ad871b235ebf12a75d60c59b73b4c7085a575f1 (patch)
tree6ddd173d6ac5c823907580d8011418a4cb42dd9b
parentAdded non-const versions of getRecipients(), getCopyRecipients() and getBindC... (diff)
downloadvmime-6ad871b235ebf12a75d60c59b73b4c7085a575f1.tar.gz
vmime-6ad871b235ebf12a75d60c59b73b4c7085a575f1.zip
Added appendAttachment(), an alias for attach().
-rw-r--r--src/messageBuilder.cpp6
-rw-r--r--src/messageBuilder.hpp7
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