Added toAddressList().

This commit is contained in:
Vincent Richard 2006-02-05 20:24:15 +00:00
parent 5280d12555
commit 64ba82c100
2 changed files with 13 additions and 0 deletions

View File

@ -210,4 +210,11 @@ void mailboxList::generate(utility::outputStream& os, const string::size_type ma
}
ref <addressList> mailboxList::toAddressList() const
{
return m_list.clone().dynamicCast <addressList>();
}
} // vmime

View File

@ -145,6 +145,12 @@ public:
*/
const std::vector <ref <mailbox> > getMailboxList();
/** Return a list of addresses.
*
* @return list of addresses
*/
ref <addressList> toAddressList() const;
private:
addressList m_list;