Added appendAttachment(), an alias for attach().
This commit is contained in:
parent
5ef45921a4
commit
6ad871b235
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user