removing const-ness, in prep for turning on new idl files.

This commit is contained in:
sspitzer%netscape.com 1999-07-23 07:32:20 +00:00
Родитель a8d60ca130
Коммит fd962769fb
3 изменённых файлов: 10 добавлений и 95 удалений

Просмотреть файл

@ -1,85 +0,0 @@
/* -*- 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) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsINntpUrl_h___
#define nsINntpUrl_h___
#include "nscore.h"
#include "MailNewsTypes.h"
#include "nsIMsgMailNewsUrl.h"
#include "nsISupports.h"
#include "nsFileSpec.h"
/* include all of our event sink interfaces */
#include "nsINNTPNewsgroupList.h"
#include "nsINNTPArticleList.h"
#include "nsINNTPHost.h"
#include "nsINNTPNewsgroup.h"
#include "nsINNTPNewsgroupPost.h"
#include "nsIMsgOfflineNewsState.h"
class nsIMsgDBHdr;
/* BDD12930-A682-11d2-804C-006008128C4E */
#define NS_INNTPURL_IID \
{ 0xbdd12930, 0xa682, 0x11d2, \
{ 0x80, 0x4c, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } }
class nsINntpUrl : public nsISupports
{
public:
static const nsIID& GetIID() {
static nsIID iid = NS_INNTPURL_IID;
return iid;
}
///////////////////////////////////////////////////////////////////////////////
// Getters and Setters for the news specific event sinks to bind to to your url
///////////////////////////////////////////////////////////////////////////////
NS_IMETHOD SetNntpHost (nsINNTPHost * newsHost) = 0;
NS_IMETHOD GetNntpHost (nsINNTPHost ** newsHost) const = 0;
NS_IMETHOD SetNntpArticleList (nsINNTPArticleList * articleList) = 0;
NS_IMETHOD GetNntpArticleList (nsINNTPArticleList ** articleList) const = 0;
NS_IMETHOD SetNewsgroup (nsINNTPNewsgroup * newsgroup) = 0;
NS_IMETHOD GetNewsgroup (nsINNTPNewsgroup ** newsgroup) const = 0;
NS_IMETHOD SetOfflineNewsState (nsIMsgOfflineNewsState * offlineNews) = 0;
NS_IMETHOD GetOfflineNewsState (nsIMsgOfflineNewsState ** offlineNews) const = 0;
NS_IMETHOD SetNewsgroupList (nsINNTPNewsgroupList * xoverParser) = 0;
NS_IMETHOD GetNewsgroupList (nsINNTPNewsgroupList ** xoverParser) const = 0;
NS_IMETHOD SetMessageToPost (nsINNTPNewsgroupPost *post) = 0;
NS_IMETHOD GetMessageToPost (nsINNTPNewsgroupPost **post) = 0;
// return a message db header for that message.
NS_IMETHOD GetMessageHeader(nsIMsgDBHdr ** aMsgHdr) = 0;
// replace this with an IDL attribute.
NS_IMETHOD SetMessageKey(nsMsgKey aKey) = 0;
NS_IMETHOD GetMessageKey(nsMsgKey * aKey) = 0;
NS_IMETHOD SetNewsgroupName(char *aNewsgroupName) = 0;
NS_IMETHOD GetNewsgroupName(char ** aNewsgroupName) = 0;
};
#endif /* nsIHttpURL_h___ */

Просмотреть файл

@ -110,7 +110,7 @@ nsresult nsNntpUrl::SetNntpHost (nsINNTPHost * newsHost)
return NS_OK;
}
nsresult nsNntpUrl::GetNntpHost (nsINNTPHost ** newsHost) const
nsresult nsNntpUrl::GetNntpHost (nsINNTPHost ** newsHost)
{
NS_LOCK_INSTANCE();
if (newsHost)
@ -135,7 +135,7 @@ nsresult nsNntpUrl::SetNntpArticleList (nsINNTPArticleList * articleList)
return NS_OK;
}
nsresult nsNntpUrl::GetNntpArticleList (nsINNTPArticleList ** articleList) const
nsresult nsNntpUrl::GetNntpArticleList (nsINNTPArticleList ** articleList)
{
NS_LOCK_INSTANCE();
if (articleList)
@ -160,7 +160,7 @@ nsresult nsNntpUrl::SetNewsgroup (nsINNTPNewsgroup * newsgroup)
return NS_OK;
}
nsresult nsNntpUrl::GetNewsgroup (nsINNTPNewsgroup ** newsgroup) const
nsresult nsNntpUrl::GetNewsgroup (nsINNTPNewsgroup ** newsgroup)
{
NS_LOCK_INSTANCE();
if (newsgroup)
@ -185,7 +185,7 @@ nsresult nsNntpUrl::SetOfflineNewsState (nsIMsgOfflineNewsState * offlineNews)
return NS_OK;
}
nsresult nsNntpUrl::GetOfflineNewsState (nsIMsgOfflineNewsState ** offlineNews) const
nsresult nsNntpUrl::GetOfflineNewsState (nsIMsgOfflineNewsState ** offlineNews)
{
NS_LOCK_INSTANCE();
if (offlineNews)
@ -210,7 +210,7 @@ nsresult nsNntpUrl::SetNewsgroupList (nsINNTPNewsgroupList * newsgroupList)
return NS_OK;
}
nsresult nsNntpUrl::GetNewsgroupList (nsINNTPNewsgroupList ** newsgroupList) const
nsresult nsNntpUrl::GetNewsgroupList (nsINNTPNewsgroupList ** newsgroupList)
{
NS_LOCK_INSTANCE();
if (newsgroupList)

Просмотреть файл

@ -29,19 +29,19 @@ class nsNntpUrl : public nsINntpUrl, public nsMsgMailNewsUrl, public nsIMsgUriUr
public:
// From nsINntpUrl
NS_IMETHOD SetNntpHost (nsINNTPHost * newsHost);
NS_IMETHOD GetNntpHost (nsINNTPHost ** newsHost) const;
NS_IMETHOD GetNntpHost (nsINNTPHost ** newsHost);
NS_IMETHOD SetNntpArticleList (nsINNTPArticleList * articleList);
NS_IMETHOD GetNntpArticleList (nsINNTPArticleList ** articleList) const;
NS_IMETHOD GetNntpArticleList (nsINNTPArticleList ** articleList);
NS_IMETHOD SetNewsgroup (nsINNTPNewsgroup * newsgroup);
NS_IMETHOD GetNewsgroup (nsINNTPNewsgroup ** newsgroup) const;
NS_IMETHOD GetNewsgroup (nsINNTPNewsgroup ** newsgroup);
NS_IMETHOD SetOfflineNewsState (nsIMsgOfflineNewsState * offlineNews);
NS_IMETHOD GetOfflineNewsState (nsIMsgOfflineNewsState ** offlineNews) const ;
NS_IMETHOD GetOfflineNewsState (nsIMsgOfflineNewsState ** offlineNews);
NS_IMETHOD SetNewsgroupList (nsINNTPNewsgroupList * newsgroupList);
NS_IMETHOD GetNewsgroupList (nsINNTPNewsgroupList ** newsgroupList) const;
NS_IMETHOD GetNewsgroupList (nsINNTPNewsgroupList ** newsgroupList);
NS_IMETHOD SetMessageToPost(nsINNTPNewsgroupPost *post);
NS_IMETHOD GetMessageToPost(nsINNTPNewsgroupPost **post);