add getter for imap required state

git-svn-id: svn://10.0.0.236/trunk@27539 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com 1999-04-15 03:35:28 +00:00
parent 940078061c
commit bd7d037e8a

View File

@ -152,6 +152,22 @@ NS_IMETHODIMP nsImapUrl::QueryInterface(const nsIID &aIID, void** aInstancePtr)
// Begin nsIImapUrl specific support
////////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP nsImapUrl::GetRequiredImapState(nsImapState * aImapUrlState)
{
if (aImapUrlState)
{
// the imap action determines the state we must be in...check the
// the imap action.
if (m_imapAction & 0x1000000)
*aImapUrlState = nsImapSelectedState;
else
*aImapUrlState = nsImapAuthenticatedState;
}
return NS_OK;
}
NS_IMETHODIMP nsImapUrl::SetServer(nsIMsgIncomingServer * aServer)
{
if (aServer)