add accessor for parser state, r=jefft, mscott part of 23181

This commit is contained in:
bienvenu%netscape.com 2000-03-18 16:04:24 +00:00
Родитель b556422f2d
Коммит e6e7067c38
2 изменённых файлов: 10 добавлений и 1 удалений

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

@ -37,7 +37,6 @@ interface nsIMsgParseMailMsgState : nsISupports {
void SetMailDB(in nsIMsgDatabase aDatabase);
void Clear();
void SetState(in nsMailboxParseState aState);
void SetEnvelopePos(in unsigned long aEnvelopePos);
void ParseAFolderLine(in string line, in unsigned long lineLength);
@ -46,6 +45,7 @@ interface nsIMsgParseMailMsgState : nsISupports {
long GetAllHeaders(out string headers);
attribute nsMailboxParseState state;
/* these are nsMailboxParseState */
const long ParseEnvelopeState=0;
const long ParseHeadersState=1;

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

@ -486,6 +486,15 @@ NS_IMETHODIMP nsParseMailMessageState::SetState(nsMailboxParseState aState)
return NS_OK;
}
NS_IMETHODIMP nsParseMailMessageState::GetState(nsMailboxParseState *aState)
{
if (!aState)
return NS_ERROR_NULL_POINTER;
*aState = m_state;
return NS_OK;
}
NS_IMETHODIMP nsParseMailMessageState::SetEnvelopePos(PRUint32 aEnvelopePos)
{
m_envelope_pos = aEnvelopePos;