add accessors for recipients and cc list

This commit is contained in:
bienvenu%netscape.com 1999-03-14 17:46:14 +00:00
Родитель c25d91ca5a
Коммит 0e09d07bb7
3 изменённых файлов: 17 добавлений и 2 удалений

Просмотреть файл

@ -50,9 +50,12 @@ public:
NS_IMETHOD SetCCListArray(const char *names, const char *addresses, PRUint32 numAddresses) = 0;
NS_IMETHOD SetAuthor(const char *author) = 0;
NS_IMETHOD SetSubject(const char *subject) = 0;
NS_IMETHOD SetStatusOffset(PRUint32 statusOffset) = 0;
NS_IMETHOD GetAuthor(nsString &resultAuthor) = 0;
NS_IMETHOD GetSubject(nsString &resultSubject) = 0;
NS_IMETHOD SetStatusOffset(PRUint32 statusOffset) = 0;
NS_IMETHOD GetRecipients(nsString &resultRecipients) = 0;
NS_IMETHOD GetCCList(nsString &ccList) =0;
// flag handling routines
NS_IMETHOD GetFlags(PRUint32 *result) = 0;

Просмотреть файл

@ -57,7 +57,8 @@ public:
NS_IMETHOD GetAuthor(nsString &resultAuthor);
NS_IMETHOD GetSubject(nsString &resultSubject);
NS_IMETHOD GetRecipients(nsString &resultRecipients);
NS_IMETHOD GetCCList(nsString &ccList);
// flag handling routines
NS_IMETHOD GetFlags(PRUint32 *result);
NS_IMETHOD SetFlags(PRUint32 flags);

Просмотреть файл

@ -355,6 +355,17 @@ NS_IMETHODIMP nsMsgHdr::GetSubject(nsString &resultSubject)
return m_mdb->RowCellColumnTonsString(GetMDBRow(), m_mdb->m_subjectColumnToken, resultSubject);
}
NS_IMETHODIMP nsMsgHdr::GetRecipients(nsString &resultRecipients)
{
return m_mdb->RowCellColumnTonsString(GetMDBRow(), m_mdb->m_recipientsColumnToken, resultRecipients);
}
NS_IMETHODIMP nsMsgHdr::GetCCList(nsString &resultCCList)
{
return m_mdb->RowCellColumnTonsString(GetMDBRow(), m_mdb->m_ccListColumnToken, resultCCList);
}
nsresult nsMsgHdr::SetStringColumn(const char *str, mdb_token token)
{
struct mdbYarn yarn;