Added appendAttachment(), an alias for attach().

This commit is contained in:
Vincent Richard 2004-10-25 22:10:13 +00:00
parent 5ef45921a4
commit 6ad871b235
2 changed files with 13 additions and 0 deletions

View File

@ -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);
}

View File

@ -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