зеркало из https://github.com/mozilla/gecko-dev.git
add cancel method to mailbox and pop protocol r=mscott
This commit is contained in:
Родитель
e29f314bcf
Коммит
5622335cd1
|
@ -178,6 +178,13 @@ NS_IMETHODIMP nsMailboxProtocol::OnStopRequest(nsIChannel * aChannel, nsISupport
|
|||
// End of nsIStreamListenerSupport
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
NS_IMETHODIMP nsMailboxProtocol::Cancel() // handle stop button
|
||||
{
|
||||
return nsMsgProtocol::Cancel();
|
||||
}
|
||||
|
||||
|
||||
|
||||
PRInt32 nsMailboxProtocol::DoneReadingMessage()
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
|
|
@ -83,6 +83,7 @@ public:
|
|||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// End of nsIStreamListenerSupport
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
NS_IMETHOD Cancel(); // handle stop button
|
||||
|
||||
private:
|
||||
nsCOMPtr<nsIMailboxUrl> m_runningUrl; // the nsIMailboxURL that is currently running
|
||||
|
|
|
@ -510,6 +510,12 @@ nsresult nsPop3Protocol::GetPassword(char ** aPassword)
|
|||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsPop3Protocol::Cancel() // handle stop button
|
||||
{
|
||||
return nsMsgProtocol::Cancel();
|
||||
}
|
||||
|
||||
|
||||
nsresult nsPop3Protocol::LoadUrl(nsIURI* aURL, nsISupports * /* aConsumer */)
|
||||
{
|
||||
nsresult rv = 0;
|
||||
|
|
|
@ -242,6 +242,8 @@ public:
|
|||
|
||||
nsresult GetPassword(char ** aPassword);
|
||||
|
||||
NS_IMETHOD Cancel(); // handle stop button
|
||||
|
||||
private:
|
||||
|
||||
nsCString m_username;
|
||||
|
|
Загрузка…
Ссылка в новой задаче