aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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