зеркало из https://github.com/mozilla/pjs.git
add accessors for recipients and cc list
This commit is contained in:
Родитель
c25d91ca5a
Коммит
0e09d07bb7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче