зеркало из https://github.com/mozilla/pjs.git
add accessor for parser state, r=jefft, mscott part of 23181
This commit is contained in:
Родитель
b556422f2d
Коммит
e6e7067c38
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче