update nsIMsgNewsHost to deal with newsgroups directly rather than as group names

This commit is contained in:
alecf%netscape.com 1998-12-22 04:34:11 +00:00
parent 56f3e646ec
commit 20dae8317b
2 changed files with 9 additions and 7 deletions

View File

@ -6,6 +6,7 @@
#define __nsIMsgNewsHost_h__
#include "nsISupports.h" /* interface nsISupports */
#include "nsIMsgNewsgroup.h" /* interface nsIMsgNewsgroup */
/* starting interface nsIMsgNewsHost */
@ -77,14 +78,14 @@ class nsIMsgNewsHost : public nsISupports {
/* void DisplaySubscribedGroup(in string groupname, in first_message, in last_message, in total_messages, in boolean visit_now); */
NS_IMETHOD DisplaySubscribedGroup(const char *groupname, PRInt32 first_message, PRInt32 last_message, PRInt32 total_messages, PRBool visit_now) = 0;
/* string GetFirstGroupNeedingExtraInfo(); */
NS_IMETHOD GetFirstGroupNeedingExtraInfo(char **_retval) = 0;
/* nsIMsgNewsgroup GetFirstGroupNeedingExtraInfo(); */
NS_IMETHOD GetFirstGroupNeedingExtraInfo(nsIMsgNewsgroup **_retval) = 0;
/* void SetGroupNeedsExtraInfo(in string groupname, in boolean needsExtraInfo); */
NS_IMETHOD SetGroupNeedsExtraInfo(const char *groupname, PRBool needsExtraInfo) = 0;
/* void GetNewsGroupAndNumberOfID(in string message_id, out string groupname, out message_number); */
NS_IMETHOD GetNewsGroupAndNumberOfID(const char *message_id, char **groupname, PRInt32 *message_number) = 0;
/* void GetNewsGroupAndNumberOfID(in string message_id, out nsIMsgNewsgroup group, out unsigned message_number); */
NS_IMETHOD GetNewsGroupAndNumberOfID(const char *message_id, nsIMsgNewsgroup **group, PRUint32 *message_number) = 0;
/* void AddPrettyName(in string groupName, in string prettyName); */
NS_IMETHOD AddPrettyName(const char *groupName, const char *prettyName) = 0;

View File

@ -16,6 +16,7 @@
* Reserved.
*/
#include "nsISupports.idl"
#include "nsIMsgNewsgroup.idl"
[object, uuid(2F5041B0-939E-11d2-B7EA-00805F05FFA5)]
interface nsIMsgNewsHost : nsISupports {
@ -77,7 +78,7 @@ interface nsIMsgNewsHost : nsISupports {
in long total_messages,
in boolean visit_now);
string GetFirstGroupNeedingExtraInfo();
nsIMsgNewsgroup GetFirstGroupNeedingExtraInfo();
void SetGroupNeedsExtraInfo(in string groupname, in boolean needsExtraInfo);
@ -87,8 +88,8 @@ interface nsIMsgNewsHost : nsISupports {
thead or message pane, this routine will fail.
*/
void GetNewsGroupAndNumberOfID(in string message_id,
out string groupname,
out long message_number);
out nsIMsgNewsgroup group,
out unsigned long message_number);
void AddPrettyName(in string groupName, in string prettyName);