mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
pass in urlListener as argument to parsing a mailbox.
This commit is contained in:
parent
f81fb8eafa
commit
0fd9236d8c
@ -38,7 +38,8 @@ nsMailboxService::~nsMailboxService()
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS(nsMailboxService, nsIMailboxService::IID());
|
||||
|
||||
nsresult nsMailboxService::ParseMailbox(const nsFilePath& aMailboxPath, nsIStreamListener *aMailboxParser, nsIURL ** aURL)
|
||||
nsresult nsMailboxService::ParseMailbox(const nsFilePath& aMailboxPath, nsIStreamListener *aMailboxParser,
|
||||
nsIUrlListener * aUrlListener, nsIURL ** aURL)
|
||||
{
|
||||
nsMailboxUrl * mailboxUrl = nsnull;
|
||||
nsIMailboxUrl * url = nsnull;
|
||||
@ -56,6 +57,8 @@ nsresult nsMailboxService::ParseMailbox(const nsFilePath& aMailboxPath, nsIStrea
|
||||
url->SetSpec(urlSpec);
|
||||
PR_FREEIF(urlSpec);
|
||||
url->SetMailboxParser(aMailboxParser);
|
||||
if (aUrlListener)
|
||||
url->RegisterListener(aUrlListener);
|
||||
|
||||
nsMailboxProtocol * protocol = new nsMailboxProtocol(url);
|
||||
if (protocol)
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "nsIMailboxService.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIUrlListener.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsFileSpec.h"
|
||||
|
||||
@ -47,7 +48,8 @@ public:
|
||||
// we suppport the nsIMailboxService Interface
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
NS_IMETHOD ParseMailbox(const nsFilePath& aMailboxPath, nsIStreamListener * aMailboxParser, nsIURL ** aURL);
|
||||
NS_IMETHOD ParseMailbox(const nsFilePath& aMailboxPath, nsIStreamListener * aMailboxParser,
|
||||
nsIUrlListener * aUrlListener, nsIURL ** aURL);
|
||||
|
||||
NS_IMETHOD DisplayMessage(const nsFilePath& aMailboxPath, PRUint32 aStartByte, PRUint32 aEndByte,
|
||||
nsISupports * aDisplayConsumer, nsIURL ** aURL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user