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:
parent
940078061c
commit
bd7d037e8a
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user