1999-06-21 20:36:03 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "msgCore.h"
|
|
|
|
#include "nsMsgMailNewsUrl.h"
|
1999-06-27 04:09:41 +00:00
|
|
|
#include "nsMsgBaseCID.h"
|
1999-08-07 02:30:11 +00:00
|
|
|
#include "nsIMsgMailSession.h"
|
1999-08-10 18:17:25 +00:00
|
|
|
#include "nsXPIDLString.h"
|
1999-06-21 20:36:03 +00:00
|
|
|
|
|
|
|
static NS_DEFINE_CID(kUrlListenerManagerCID, NS_URLLISTENERMANAGER_CID);
|
1999-07-29 00:42:25 +00:00
|
|
|
static NS_DEFINE_CID(kStandardUrlCID, NS_STANDARDURL_CID);
|
1999-08-07 02:30:11 +00:00
|
|
|
static NS_DEFINE_CID(kMsgMailSessionCID, NS_MSGMAILSESSION_CID);
|
1999-06-21 20:36:03 +00:00
|
|
|
|
|
|
|
nsMsgMailNewsUrl::nsMsgMailNewsUrl()
|
|
|
|
{
|
|
|
|
NS_INIT_REFCNT();
|
|
|
|
|
1999-06-23 03:29:44 +00:00
|
|
|
// nsIURI specific state
|
1999-06-21 20:36:03 +00:00
|
|
|
m_errorMessage = nsnull;
|
|
|
|
m_runningUrl = PR_FALSE;
|
1999-09-15 00:59:03 +00:00
|
|
|
m_updatingFolder = PR_FALSE;
|
1999-07-29 00:42:25 +00:00
|
|
|
|
1999-07-01 00:16:39 +00:00
|
|
|
nsComponentManager::CreateInstance(kUrlListenerManagerCID, nsnull, nsCOMTypeInfo<nsIUrlListenerManager>::GetIID(), (void **) getter_AddRefs(m_urlListeners));
|
1999-07-29 00:42:25 +00:00
|
|
|
nsComponentManager::CreateInstance(kStandardUrlCID, nsnull, nsCOMTypeInfo<nsIURL>::GetIID(), (void **) getter_AddRefs(m_baseURL));
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nsMsgMailNewsUrl::~nsMsgMailNewsUrl()
|
|
|
|
{
|
|
|
|
PR_FREEIF(m_errorMessage);
|
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMPL_ADDREF(nsMsgMailNewsUrl);
|
|
|
|
NS_IMPL_RELEASE(nsMsgMailNewsUrl);
|
1999-06-21 20:36:03 +00:00
|
|
|
|
|
|
|
nsresult nsMsgMailNewsUrl::QueryInterface(const nsIID &aIID, void** aInstancePtr)
|
|
|
|
{
|
|
|
|
if (NULL == aInstancePtr) {
|
|
|
|
return NS_ERROR_NULL_POINTER;
|
|
|
|
}
|
1999-07-01 00:16:39 +00:00
|
|
|
if (aIID.Equals(nsCOMTypeInfo<nsIURI>::GetIID())) {
|
1999-06-23 03:29:44 +00:00
|
|
|
*aInstancePtr = (void*) ((nsIURI*)this);
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_ADDREF_THIS();
|
1999-06-21 20:36:03 +00:00
|
|
|
return NS_OK;
|
|
|
|
}
|
1999-07-29 00:42:25 +00:00
|
|
|
if (aIID.Equals(nsCOMTypeInfo<nsIURL>::GetIID())) {
|
|
|
|
*aInstancePtr = (void*) ((nsIURL*)this);
|
|
|
|
NS_ADDREF_THIS();
|
1999-06-21 20:36:03 +00:00
|
|
|
return NS_OK;
|
|
|
|
}
|
1999-07-01 00:16:39 +00:00
|
|
|
if (aIID.Equals(nsCOMTypeInfo<nsIMsgMailNewsUrl>::GetIID()))
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
|
|
|
*aInstancePtr = (void *) ((nsIMsgMailNewsUrl*) this);
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_ADDREF_THIS();
|
1999-06-21 20:36:03 +00:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
if (aIID.Equals(nsCOMTypeInfo<nsISupports>::GetIID()))
|
1999-06-30 23:20:34 +00:00
|
|
|
{
|
|
|
|
*aInstancePtr = (void *) ((nsIMsgMailNewsUrl*) this);
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_ADDREF_THIS();
|
1999-06-30 23:20:34 +00:00
|
|
|
return NS_OK;
|
|
|
|
}
|
1999-06-21 21:11:29 +00:00
|
|
|
#if defined(NS_DEBUG)
|
|
|
|
/*
|
|
|
|
* Check for the debug-only interface indicating thread-safety
|
|
|
|
*/
|
|
|
|
static NS_DEFINE_IID(kIsThreadsafeIID, NS_ISTHREADSAFE_IID);
|
|
|
|
if (aIID.Equals(kIsThreadsafeIID)) {
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
#endif
|
1999-06-21 20:36:03 +00:00
|
|
|
return NS_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Begin nsIMsgMailNewsUrl specific support
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
nsresult nsMsgMailNewsUrl::GetUrlState(PRBool * aRunningUrl)
|
|
|
|
{
|
|
|
|
if (aRunningUrl)
|
|
|
|
*aRunningUrl = m_runningUrl;
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult nsMsgMailNewsUrl::SetUrlState(PRBool aRunningUrl, nsresult aExitCode)
|
|
|
|
{
|
|
|
|
m_runningUrl = aRunningUrl;
|
1999-08-10 03:28:30 +00:00
|
|
|
nsCOMPtr <nsIMsgStatusFeedback> statusFeedback;
|
|
|
|
|
|
|
|
if (NS_SUCCEEDED(GetStatusFeedback(getter_AddRefs(statusFeedback))) && statusFeedback)
|
|
|
|
{
|
|
|
|
if (m_runningUrl)
|
|
|
|
statusFeedback->StartMeteors();
|
|
|
|
else
|
1999-08-24 04:24:19 +00:00
|
|
|
{
|
|
|
|
statusFeedback->ShowProgress(0);
|
1999-08-10 03:28:30 +00:00
|
|
|
statusFeedback->StopMeteors();
|
1999-08-24 04:24:19 +00:00
|
|
|
}
|
1999-08-10 03:28:30 +00:00
|
|
|
}
|
1999-06-21 20:36:03 +00:00
|
|
|
if (m_urlListeners)
|
|
|
|
{
|
|
|
|
if (m_runningUrl)
|
1999-08-10 03:28:30 +00:00
|
|
|
{
|
1999-06-21 20:36:03 +00:00
|
|
|
m_urlListeners->OnStartRunningUrl(this);
|
1999-08-10 03:28:30 +00:00
|
|
|
}
|
1999-06-21 20:36:03 +00:00
|
|
|
else
|
1999-08-10 03:28:30 +00:00
|
|
|
{
|
1999-06-21 20:36:03 +00:00
|
|
|
m_urlListeners->OnStopRunningUrl(this, aExitCode);
|
1999-08-10 03:28:30 +00:00
|
|
|
}
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult nsMsgMailNewsUrl::RegisterListener (nsIUrlListener * aUrlListener)
|
|
|
|
{
|
|
|
|
if (m_urlListeners)
|
|
|
|
m_urlListeners->RegisterListener(aUrlListener);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult nsMsgMailNewsUrl::UnRegisterListener (nsIUrlListener * aUrlListener)
|
|
|
|
{
|
|
|
|
if (m_urlListeners)
|
|
|
|
m_urlListeners->UnRegisterListener(aUrlListener);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
1999-08-04 20:29:22 +00:00
|
|
|
nsresult nsMsgMailNewsUrl::SetErrorMessage (const char * errorMessage)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-08-04 20:29:22 +00:00
|
|
|
// functionality has been moved to nsIMsgStatusFeedback
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult nsMsgMailNewsUrl::GetErrorMessage (char ** errorMessage)
|
|
|
|
{
|
|
|
|
// functionality has been moved to nsIMsgStatusFeedback
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
1999-08-10 18:17:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetServer(nsIMsgIncomingServer ** aIncomingServer)
|
|
|
|
{
|
|
|
|
// mscott --> we could cache a copy of the server here....but if we did, we run
|
|
|
|
// the risk of leaking the server if any single url gets leaked....of course that
|
|
|
|
// shouldn't happen...but it could. so i'm going to look it up every time and
|
|
|
|
// we can look at caching it later.
|
|
|
|
|
|
|
|
nsXPIDLCString host;
|
|
|
|
nsXPIDLCString scheme;
|
|
|
|
|
|
|
|
nsresult rv = GetHost(getter_Copies(host));
|
|
|
|
rv = GetScheme(getter_Copies(scheme));
|
|
|
|
if (NS_SUCCEEDED(rv))
|
|
|
|
{
|
|
|
|
NS_WITH_SERVICE(nsIMsgMailSession, session, kMsgMailSessionCID, &rv);
|
|
|
|
if (NS_FAILED(rv)) return rv;
|
|
|
|
|
|
|
|
nsCOMPtr<nsIMsgAccountManager> accountManager;
|
|
|
|
rv = session->GetAccountManager(getter_AddRefs(accountManager));
|
|
|
|
if(NS_FAILED(rv)) return rv;
|
|
|
|
|
|
|
|
nsCOMPtr<nsIMsgIncomingServer> server;
|
|
|
|
rv = accountManager->FindServer(GetUserName(),
|
|
|
|
host,
|
|
|
|
scheme,
|
|
|
|
aIncomingServer);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
1999-08-04 20:29:22 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetStatusFeedback(nsIMsgStatusFeedback *aMsgFeedback)
|
|
|
|
{
|
|
|
|
if (aMsgFeedback)
|
1999-08-07 02:30:11 +00:00
|
|
|
m_statusFeedback = do_QueryInterface(aMsgFeedback);
|
1999-06-21 20:36:03 +00:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
1999-08-04 20:29:22 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetStatusFeedback(nsIMsgStatusFeedback **aMsgFeedback)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-08-07 02:30:11 +00:00
|
|
|
nsresult rv = NS_OK;
|
1999-08-04 20:29:22 +00:00
|
|
|
// note: it is okay to return a null status feedback and not return an error
|
|
|
|
// it's possible the url really doesn't have status feedback
|
1999-08-07 02:30:11 +00:00
|
|
|
if (!m_statusFeedback)
|
|
|
|
{
|
|
|
|
NS_WITH_SERVICE(nsIMsgMailSession, mailSession, kMsgMailSessionCID, &rv);
|
|
|
|
|
|
|
|
if(NS_SUCCEEDED(rv))
|
|
|
|
mailSession->GetTemporaryMsgStatusFeedback(getter_AddRefs(m_statusFeedback));
|
|
|
|
}
|
1999-08-04 20:29:22 +00:00
|
|
|
if (aMsgFeedback)
|
1999-08-05 22:25:03 +00:00
|
|
|
{
|
1999-08-04 20:29:22 +00:00
|
|
|
*aMsgFeedback = m_statusFeedback;
|
1999-08-05 22:25:03 +00:00
|
|
|
NS_IF_ADDREF(*aMsgFeedback);
|
|
|
|
}
|
1999-08-04 20:29:22 +00:00
|
|
|
else
|
|
|
|
rv = NS_ERROR_NULL_POINTER;
|
|
|
|
return rv;
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-15 00:59:03 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetUpdatingFolder(PRBool *aResult)
|
|
|
|
{
|
|
|
|
if (!aResult)
|
|
|
|
return NS_ERROR_NULL_POINTER;
|
|
|
|
*aResult = m_updatingFolder;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetUpdatingFolder(PRBool updatingFolder)
|
|
|
|
{
|
|
|
|
m_updatingFolder = updatingFolder;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-06-21 20:36:03 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// End nsIMsgMailNewsUrl specific support
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
1999-06-23 03:29:44 +00:00
|
|
|
// Begin nsIURI support
|
1999-06-21 20:36:03 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetSpec(char * *aSpec)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetSpec(aSpec);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetSpec(const char * aSpec)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetSpec(aSpec);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetScheme(char * *aScheme)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetScheme(aScheme);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetScheme(const char * aScheme)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetScheme(aScheme);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
|
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetPreHost(char * *aPreHost)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetPreHost(aPreHost);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetPreHost(const char * aPreHost)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetPreHost(aPreHost);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetHost(char * *aHost)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetHost(aHost);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetHost(const char * aHost)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetHost(aHost);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetPort(PRInt32 *aPort)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetPort(aPort);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetPort(PRInt32 aPort)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetPort(aPort);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetPath(char * *aPath)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetPath(aPath);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetPath(const char * aPath)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetPath(aPath);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::Equals(nsIURI *other, PRBool *_retval)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->Equals(other, _retval);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
|
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::Clone(nsIURI **_retval)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->Clone(_retval);
|
|
|
|
}
|
1999-06-21 20:36:03 +00:00
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetRelativePath(const char *i_RelativePath)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetRelativePath(i_RelativePath);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetDirectory(char * *aDirectory)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetDirectory(aDirectory);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetDirectory(const char *aDirectory)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetDirectory(aDirectory);
|
|
|
|
}
|
1999-06-21 20:36:03 +00:00
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetFileName(char * *aFileName)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetFileName(aFileName);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetFileName(const char * aFileName)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetFileName(aFileName);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
1999-07-29 00:42:25 +00:00
|
|
|
|
1999-08-12 10:01:33 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetParam(char * *aParam)
|
|
|
|
{
|
|
|
|
return m_baseURL->GetParam(aParam);
|
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetParam(const char *aParam)
|
1999-08-12 10:01:33 +00:00
|
|
|
{
|
|
|
|
return m_baseURL->SetParam(aParam);
|
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetQuery(char * *aQuery)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetQuery(aQuery);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetQuery(const char *aQuery)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetQuery(aQuery);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
1999-07-29 00:42:25 +00:00
|
|
|
|
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::GetRef(char * *aRef)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->GetRef(aRef);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-09-19 23:46:35 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::SetRef(const char *aRef)
|
1999-06-21 20:36:03 +00:00
|
|
|
{
|
1999-07-29 00:42:25 +00:00
|
|
|
return m_baseURL->SetRef(aRef);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
|
|
|
|
1999-07-29 00:42:25 +00:00
|
|
|
NS_IMETHODIMP nsMsgMailNewsUrl::DirFile(char **o_DirFile)
|
|
|
|
{
|
|
|
|
return m_baseURL->DirFile(o_DirFile);
|
1999-06-21 20:36:03 +00:00
|
|
|
}
|
1999-09-15 00:59:03 +00:00
|
|
|
|