Added non-const versions of getRecipients(), getCopyRecipients() and getBindCopyRecipients() for easy access.

This commit is contained in:
Vincent Richard 2004-10-25 22:02:58 +00:00
parent c433e0213a
commit 5ef45921a4
2 changed files with 36 additions and 0 deletions

View File

@ -207,6 +207,12 @@ const addressList& messageBuilder::getRecipients() const
}
addressList& messageBuilder::getRecipients()
{
return (m_to);
}
void messageBuilder::setRecipients(const addressList& recipients)
{
m_to = recipients;
@ -219,6 +225,12 @@ const addressList& messageBuilder::getCopyRecipients() const
}
addressList& messageBuilder::getCopyRecipients()
{
return (m_cc);
}
void messageBuilder::setCopyRecipients(const addressList& cc)
{
m_cc = cc;
@ -231,6 +243,12 @@ const addressList& messageBuilder::getBlindCopyRecipients() const
}
addressList& messageBuilder::getBlindCopyRecipients()
{
return (m_bcc);
}
void messageBuilder::setBlindCopyRecipients(const addressList& bcc)
{
m_bcc = bcc;

View File

@ -67,6 +67,12 @@ public:
*/
const addressList& getRecipients() const;
/** Return the recipients of the message (To:).
*
* return recipients of the message
*/
addressList& getRecipients();
/** Set the recipients of the message (To:).
*
* @param recipients list of recipients
@ -79,6 +85,12 @@ public:
*/
const addressList& getCopyRecipients() const;
/** Return the copy recipients of the message (Cc:).
*
* @return copy recipients of the message
*/
addressList& getCopyRecipients();
/** Set the copy recipients of the message (Cc:).
*
* @param cc list of copy recipients
@ -91,6 +103,12 @@ public:
*/
const addressList& getBlindCopyRecipients() const;
/** Return the blind-copy recipients of the message (Bcc:).
*
* @return blind-copy recipients of the message
*/
addressList& getBlindCopyRecipients();
/** Set the blind-copy recipients of the message (Bcc:).
*
* @param bcc list of blind-copy recipients