rename nsIMsgNewsHost -> nsINNTPHost in all files that use it

This commit is contained in:
alecf%netscape.com 1999-01-12 20:44:13 +00:00
Родитель 14e5c7d8ed
Коммит 798235269c
7 изменённых файлов: 33 добавлений и 33 удалений

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

@ -18,7 +18,7 @@
#include "msgCore.h"
#include "nsNNTPNewsgroupList.h"
#include "nsIMsgNewsHost.h"
#include "nsINNTPHost.h"
/* XXX - temporary hack so this will compile */
@ -30,7 +30,7 @@ class nsNNTPArticleList
#endif
{
public:
nsNNTPArticleList(const nsIMsgNewsHost * newshost,
nsNNTPArticleList(const nsINNTPHost * newshost,
const nsIMsgNewsgroup* newsgroup);
/* , MSG_Pane *pane); */
virtual ~nsNNTPArticleList();
@ -38,7 +38,7 @@ public:
NS_DECL_ISUPPORTS
// nsINNTPArticleKeysState
NS_METHOD Initialize(const nsIMsgNewsHost *newsHost,
NS_METHOD Initialize(const nsINNTPHost *newsHost,
const nsIMsgNewsgroup *newsgroup);
NS_IMETHOD AddArticleKey(PRInt32 key);
NS_IMETHOD FinishAddingArticleKeys();
@ -51,7 +51,7 @@ protected:
#endif
/* formerly m_groupName */
nsIMsgNewsgroup *m_newsgroup;
nsIMsgNewsHost *m_host;
nsINNTPHost *m_host;
#ifdef HAVE_NEWSDB
NewsGroupDB *m_newsDB;
#endif
@ -65,7 +65,7 @@ protected:
MessageKey m_highwater;
};
nsNNTPArticleList::nsNNTPArticleList(const nsIMsgNewsHost* newsHost,
nsNNTPArticleList::nsNNTPArticleList(const nsINNTPHost* newsHost,
const nsIMsgNewsgroup* newsgroup)
{
NS_INIT_REFCNT();
@ -73,7 +73,7 @@ nsNNTPArticleList::nsNNTPArticleList(const nsIMsgNewsHost* newsHost,
}
nsresult
nsNNTPArticleList::Initialize(const nsIMsgNewsHost * newsHost,
nsNNTPArticleList::Initialize(const nsINNTPHost * newsHost,
const nsIMsgNewsgroup* newsgroup)
{
m_host = newsHost;

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

@ -17,7 +17,7 @@
*/
#include "nsNNTPArticleSet.h"
#include "nsIMsgNewsHost.h"
#include "nsINNTPHost.h"
#include "mkutils.h"
@ -79,7 +79,7 @@ extern "C" {
nsNNTPArticleSet::nsNNTPArticleSet(nsIMsgNewsHost* host)
nsNNTPArticleSet::nsNNTPArticleSet(nsINNTPHost* host)
{
m_cached_value = -1;
m_cached_value_index = 0;
@ -110,7 +110,7 @@ PRBool nsNNTPArticleSet::Grow()
}
nsNNTPArticleSet::nsNNTPArticleSet(const char* numbers, nsIMsgNewsHost* host)
nsNNTPArticleSet::nsNNTPArticleSet(const char* numbers, nsINNTPHost* host)
{
PRInt32 *head, *tail, *end;
@ -198,7 +198,7 @@ nsNNTPArticleSet::nsNNTPArticleSet(const char* numbers, nsIMsgNewsHost* host)
nsNNTPArticleSet*
nsNNTPArticleSet::Create(nsIMsgNewsHost* host)
nsNNTPArticleSet::Create(nsINNTPHost* host)
{
nsNNTPArticleSet* set = new nsNNTPArticleSet(host);
if (set && set->m_data == NULL) {
@ -210,7 +210,7 @@ nsNNTPArticleSet::Create(nsIMsgNewsHost* host)
nsNNTPArticleSet*
nsNNTPArticleSet::Create(const char* value, nsIMsgNewsHost* host)
nsNNTPArticleSet::Create(const char* value, nsINNTPHost* host)
{
nsNNTPArticleSet* set = new nsNNTPArticleSet(value, host);
if (set && set->m_data == NULL) {
@ -456,7 +456,7 @@ nsNNTPArticleSet::GetFirstMember()
#### This should be changed to modify the buffer in place.
Also note that we never call Optimize() unless we actually changed
something, so it's a great place to tell the nsIMsgNewsHost* that something
something, so it's a great place to tell the nsINNTPHost* that something
changed.
*/
PRBool

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

@ -23,19 +23,19 @@
// read articles from a .newsrc file, but it can be used for other purposes
// too.
// If a nsIMsgNewsHost* is supplied to the creation routine, then that
// nsIMsgNewsHost will be notified whwnever a change is made to set.
// If a nsINNTPHost* is supplied to the creation routine, then that
// nsINNTPHost will be notified whwnever a change is made to set.
#include "nsIMsgNewsHost.h"
#include "nsINNTPHost.h"
class nsNNTPArticleSet {
public:
// Creates an empty set.
static nsNNTPArticleSet* Create(nsIMsgNewsHost* host = NULL);
static nsNNTPArticleSet* Create(nsINNTPHost* host = NULL);
// Creates a set from the list of numbers, as might be found in a
// newsrc file.
static nsNNTPArticleSet* Create(const char* str, nsIMsgNewsHost* host = NULL);
static nsNNTPArticleSet* Create(const char* str, nsINNTPHost* host = NULL);
~nsNNTPArticleSet();
// FirstNonMember() returns the lowest non-member of the set that is
@ -83,8 +83,8 @@ public:
#endif
protected:
nsNNTPArticleSet(nsIMsgNewsHost* host);
nsNNTPArticleSet(const char*, nsIMsgNewsHost* host);
nsNNTPArticleSet(nsINNTPHost* host);
nsNNTPArticleSet(const char*, nsINNTPHost* host);
PRBool Grow();
PRBool Optimize();
@ -103,7 +103,7 @@ protected:
PRInt32 m_cached_value_index; /* the index into `data' at which a search
to determine whether `cached_value' was
a member of the set ended. */
nsIMsgNewsHost* m_host;
nsINNTPHost* m_host;
};

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

@ -89,14 +89,14 @@ public:
NS_METHOD InitNewsgroupList(const char *url, const char *groupName);
// nsIMsgNewsArticleList
NS_IMETHOD GetRangeOfArtsToDownload(nsIMsgNewsHost* host,
NS_IMETHOD GetRangeOfArtsToDownload(nsINNTPHost* host,
const char* group_name,
PRInt32 first_possible,
PRInt32 last_possible,
PRInt32 maxextra,
PRInt32* first,
PRInt32* lastprotected);
NS_IMETHOD AddToKnownArticles(nsIMsgNewsHost* host,
NS_IMETHOD AddToKnownArticles(nsINNTPHost* host,
const char* group_name,
PRInt32 first, PRInt32 last);
@ -119,7 +119,7 @@ public:
void SetPane(MSG_Pane *pane) {m_pane = pane;}
#endif
PRBool m_finishingXover;
nsIMsgNewsHost* GetHost() {return m_host;}
nsINNTPHost* GetHost() {return m_host;}
const char * GetGroupName() {return m_groupName;}
const char * GetURL() {return m_url;}
@ -145,7 +145,7 @@ protected:
PRBool m_downloadAll;
PRInt32 m_maxArticles;
char *m_groupName;
nsIMsgNewsHost *m_host;
nsINNTPHost *m_host;
char *m_url; // url we're retrieving
#ifdef HAVE_MASTER
MSG_Master *m_master;
@ -265,7 +265,7 @@ void nsNNTPNewsgroupList::OnAnnouncerGoingAway (ChangeAnnouncer *instigator)
#endif
nsresult
nsNNTPNewsgroupList::GetRangeOfArtsToDownload(nsIMsgNewsHost* host,
nsNNTPNewsgroupList::GetRangeOfArtsToDownload(nsINNTPHost* host,
const char* group_name,
PRInt32 first_possible,
PRInt32 last_possible,
@ -434,7 +434,7 @@ nsNNTPNewsgroupList::GetRangeOfArtsToDownload(nsIMsgNewsHost* host,
}
nsresult
nsNNTPNewsgroupList::AddToKnownArticles(nsIMsgNewsHost* host,
nsNNTPNewsgroupList::AddToKnownArticles(nsINNTPHost* host,
const char* group_name,
PRInt32 first, PRInt32 last)
{

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

@ -25,7 +25,7 @@
#ifndef nsNNTPNewsgroupListState_h___
#define nsNNTPNewsgroupListState_h___
#include "nsIMsgNewsHost.h"
#include "nsINNTPHost.h"
#include "nsINNTPNewsgroupList.h"
#include "nsNNTPArticleSet.h"
@ -34,7 +34,7 @@
articles we've already seen in the current newsgroup. */
typedef struct MSG_NewsKnown {
nsIMsgNewsHost* host;
nsINNTPHost* host;
char* group_name;
nsNNTPArticleSet* set; /* Set of articles we've already gotten
from the newsserver (if it's marked
@ -55,7 +55,7 @@ typedef struct MSG_NewsKnown {
extern NS_COM nsresult
NS_NewNewsgroupList(nsINNTPNewsgroupList **aInstancePtrResult,
nsIMsgNewsHost *newsHost,
nsINNTPHost *newsHost,
nsIMsgNewsgroup *newsgroup);
#endif

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

@ -518,7 +518,7 @@ PRInt32 nsNNTPProtocol::SendListExtensionsResponse(nsIInputStream * inputStream,
if (MK_NNTP_RESPONSE_TYPE(m_responseCode) == MK_NNTP_RESPONSE_TYPE_OK)
{
char *line = NULL;
nsIMsgNewsHost *news_host = m_newsHost;
nsINNTPHost *news_host = m_newsHost;
status = ReadLine(inputStream, length, &line);
@ -648,7 +648,7 @@ PRInt32 nsNNTPProtocol::SendListSearchHeaders()
PRInt32 nsNNTPProtocol::SendListSearchHeadersResponse(nsIInputStream * inputStream, PRUint32 length)
{
nsIMsgNewsHost* news_host = m_newsHost;
nsINNTPHost* news_host = m_newsHost;
char *line = NULL;
PRInt32 status = 0;

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

@ -27,7 +27,7 @@
#include "nsINNTPNewsgroupList.h"
#include "nsINNTPArticleList.h"
#include "nsIMsgNewsHost.h"
#include "nsINNTPHost.h"
#include "nsIMsgNewsgroup.h"
#include "nsIMsgOfflineNewsState.h"
@ -176,7 +176,7 @@ private:
nsINNTPNewsgroupList * m_newsgroupList;
nsINNTPArticleList * m_articleList;
nsIMsgNewsHost * m_newsHost;
nsINNTPHost * m_newsHost;
nsIMsgNewsgroup * m_newsgroup;
nsIMsgOfflineNewsState * m_offlineNewsState;