From 6ad871b235ebf12a75d60c59b73b4c7085a575f1 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 25 Oct 2004 22:10:13 +0000 Subject: [PATCH] Added appendAttachment(), an alias for attach(). --- src/messageBuilder.cpp | 6 ++++++ src/messageBuilder.hpp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/messageBuilder.cpp b/src/messageBuilder.cpp index d4efaa28..c15532e6 100644 --- a/src/messageBuilder.cpp +++ b/src/messageBuilder.cpp @@ -160,6 +160,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