update idl and header files to reflect nsIMsgNewsgroup->nsINNTPNewsgroup change

This commit is contained in:
alecf%netscape.com 1999-01-15 23:34:20 +00:00
Родитель 9c28a6e321
Коммит 7bbcd72fbf
8 изменённых файлов: 26 добавлений и 28 удалений

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

@ -25,7 +25,7 @@ include $(DEPTH)/config/autoconf.mk
EXPORTS= \
nsINNTPNewsgroupList.h \
nsINNTPHost.h \
nsIMsgNewsgroup.h \
nsINNTPNewsgroup.h \
nsIMsgOfflineNewsState.h \
nsINNTPArticleList.h \
$(NULL)

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

@ -21,7 +21,7 @@ IGNORE_MANIFEST=1
EXPORTS = \
nsINNTPNewsgroupList.h \
nsINNTPNewsHost.h \
nsIMsgNewsgroup.h \
nsINNTPNewsgroup.h \
nsIMsgOfflineNewsState.h \
nsINNTPArticleList.h \
$(NULL)

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

@ -6,7 +6,7 @@
#define __gen_nsIMsgOfflineNewsState_h__
#include "nsISupports.h" /* interface nsISupports */
#include "nsIMsgNewsgroup.h" /* interface nsIMsgNewsgroup */
#include "nsINNTPNewsgroup.h" /* interface nsINNTPNewsgroup */
/* starting interface nsIMsgOfflineNewsState */
@ -28,8 +28,8 @@ class nsIMsgOfflineNewsState : public nsISupports {
}
/* <IDL> */
NS_IMETHOD GetNewsgroup(nsIMsgNewsgroup * *aNewsgroup) = 0;
NS_IMETHOD SetNewsgroup(nsIMsgNewsgroup * aNewsgroup) = 0;
NS_IMETHOD GetNewsgroup(nsINNTPNewsgroup * *aNewsgroup) = 0;
NS_IMETHOD SetNewsgroup(nsINNTPNewsgroup * aNewsgroup) = 0;
/* <IDL> */
NS_IMETHOD Process(char **outputBuffer, PRInt32 bufferSize, PRInt32 *_retval) = 0;

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

@ -21,12 +21,12 @@
*/
#include "nsISupports.idl"
#include "nsIMsgNewsgroup.idl"
#include "nsINNTPNewsgroup.idl"
[object, uuid(921AC210-96B5-11d2-B7EB-00805F05FFA5)]
interface nsIMsgOfflineNewsState : nsISupports {
attribute nsIMsgNewsgroup newsgroup;
attribute nsINNTPNewsgroup newsgroup;
/* outputBuffer is actually
* a buffer to dump data into, but we normally pass it NET_Socket_Buffer,
* which is constant. The implementation should only allocate a new

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

@ -6,7 +6,7 @@
#define __gen_nsINNTPArticleList_h__
#include "nsISupports.h" /* interface nsISupports */
#include "nsIMsgNewsgroup.h" /* interface nsIMsgNewsgroup */
#include "nsINNTPNewsgroup.h" /* interface nsINNTPNewsgroup */
#include "nsIMsgHost.h" /* interface nsIMsgHost */
#include "nsINNTPNewsgroupList.h" /* interface nsINNTPNewsgroupList */
#include "nsINNTPHost.h" /* interface nsINNTPHost */
@ -31,7 +31,7 @@ class nsINNTPArticleList : public nsISupports {
}
/* <IDL> */
NS_IMETHOD Init(const char *newsHost, const nsIMsgNewsgroup *newsgroup) = 0;
NS_IMETHOD Init(const char *newsHost, const nsINNTPNewsgroup *newsgroup) = 0;
/* <IDL> */
NS_IMETHOD AddArticleKey(PRInt32 key) = 0;

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

@ -17,7 +17,7 @@
*/
#include "nsISupports.idl"
#include "nsIMsgNewsgroup.idl"
#include "nsINNTPNewsgroup.idl"
/* the XPIDL compiler doesn't like including this file?
* I think it's because this file include another file
* I had to change the type below to a string temporarily */
@ -27,7 +27,7 @@
interface nsINNTPArticleList : nsISupports {
void Init(in /* nsINNTPHost */ string newsHost,
in nsIMsgNewsgroup newsgroup);
in nsINNTPNewsgroup newsgroup);
void AddArticleKey(in long key);
void FinishAddingArticleKeys();

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

@ -6,8 +6,7 @@
#define __gen_nsINNTPHost_h__
#include "nsISupports.h" /* interface nsISupports */
#include "nsIMsgNewsgroup.h" /* interface nsIMsgNewsgroup */
#include "nsIMsgHost.h" /* interface nsIMsgHost */
#include "nsINNTPNewsgroup.h" /* interface nsINNTPNewsgroup */
#include "nsINNTPNewsgroupList.h" /* interface nsINNTPNewsgroupList */
@ -19,7 +18,7 @@
{0xADFB3740, 0xAA57, 0x11d2, \
{ 0xB7, 0xED, 0x00, 0x80, 0x5F, 0x05, 0xFF, 0xA5 }}
class nsINNTPHost : public nsIMsgHost {
class nsINNTPHost {
private:
void operator delete(void *); // NOT TO BE IMPLEMENTED
@ -55,7 +54,7 @@ class nsINNTPHost : public nsIMsgHost {
NS_IMETHOD GetNewsgroupList(const char *groupname, nsINNTPNewsgroupList **_retval) = 0;
/* <IDL> */
NS_IMETHOD FindNewsgroup(const char *groupname, PRBool create, nsIMsgNewsgroup **_retval) = 0;
NS_IMETHOD FindNewsgroup(const char *groupname, PRBool create, nsINNTPNewsgroup **_retval) = 0;
/* <IDL> */
NS_IMETHOD AddPropertyForGet(const char *name, const char *value) = 0;
@ -103,13 +102,13 @@ class nsINNTPHost : public nsIMsgHost {
NS_IMETHOD DisplaySubscribedGroup(const char *groupname, PRInt32 first_message, PRInt32 last_message, PRInt32 total_messages, PRBool visit_now) = 0;
/* <IDL> */
NS_IMETHOD GetFirstGroupNeedingExtraInfo(nsIMsgNewsgroup **_retval) = 0;
NS_IMETHOD GetFirstGroupNeedingExtraInfo(nsINNTPNewsgroup **_retval) = 0;
/* <IDL> */
NS_IMETHOD SetGroupNeedsExtraInfo(const char *groupname, PRBool needsExtraInfo) = 0;
/* <IDL> */
NS_IMETHOD GetNewsGroupAndNumberOfID(const char *message_id, nsIMsgNewsgroup **group, PRUint32 *message_number) = 0;
NS_IMETHOD GetNewsGroupAndNumberOfID(const char *message_id, nsINNTPNewsgroup **group, PRUint32 *message_number) = 0;
/* <IDL> */
NS_IMETHOD SetPrettyName(const char *groupName, const char *prettyName) = 0;
@ -131,10 +130,10 @@ class nsINNTPHost : public nsIMsgHost {
NS_IMETHOD SetNewsRCFilename(char * aNewsRCFilename) = 0;
/* <IDL> */
NS_IMETHOD FindGroup(const char *name, nsIMsgNewsgroup **_retval) = 0;
NS_IMETHOD FindGroup(const char *name, nsINNTPNewsgroup **_retval) = 0;
/* <IDL> */
NS_IMETHOD AddGroup(const char *groupname, nsIMsgNewsgroup **_retval) = 0;
NS_IMETHOD AddGroup(const char *groupname, nsINNTPNewsgroup **_retval) = 0;
/* <IDL> */
NS_IMETHOD RemoveGroup(const char *groupName) = 0;

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

@ -16,12 +16,11 @@
* Reserved.
*/
#include "nsIMsgHost.idl"
#include "nsINNTPNewsgroupList.idl"
#include "nsIMsgNewsgroup.idl"
#include "nsINNTPNewsgroup.idl"
[object, uuid(ADFB3740-AA57-11d2-B7ED-00805F05FFA5)]
interface nsINNTPHost : nsIMsgHost {
interface nsINNTPHost {
attribute boolean supportsExtensions;
void AddExtension(in string extension);
@ -35,7 +34,7 @@ interface nsINNTPHost : nsIMsgHost {
nsINNTPNewsgroupList GetNewsgroupList(in string groupname);
/* given a newsgroup name, find or create the given groupname */
nsIMsgNewsgroup FindNewsgroup(in string groupname, in boolean create);
nsINNTPNewsgroup FindNewsgroup(in string groupname, in boolean create);
/* libnet callbacks for Dredd NNTP extensions
* please document if you know how these work
@ -95,7 +94,7 @@ interface nsINNTPHost : nsIMsgHost {
in long total_messages,
in boolean visit_now);
nsIMsgNewsgroup GetFirstGroupNeedingExtraInfo();
nsINNTPNewsgroup GetFirstGroupNeedingExtraInfo();
void SetGroupNeedsExtraInfo(in string groupname, in boolean needsExtraInfo);
@ -105,7 +104,7 @@ interface nsINNTPHost : nsIMsgHost {
thead or message pane, this routine will fail.
*/
void GetNewsGroupAndNumberOfID(in string message_id,
out nsIMsgNewsgroup group,
out nsINNTPNewsgroup group,
out unsigned long message_number);
@ -128,12 +127,12 @@ interface nsINNTPHost : nsIMsgHost {
attribute string newsRCFilename;
nsIMsgNewsgroup FindGroup(in string name);
nsIMsgNewsgroup AddGroup(in string groupname
nsINNTPNewsgroup FindGroup(in string name);
nsINNTPNewsgroup AddGroup(in string groupname
/* , msg_GroupRecord *inGroupRecord */ );
void RemoveGroup(in string groupName);
/* I thought COM allowed us to override methods.. */
/* void RemoveGroup(in nsIMsgNewsgroup group); */
/* void RemoveGroup(in nsINNTPNewsgroup group); */
/* Name of directory to store newsgroup
databases in. This needs to have