From a6d300099808a94bf2d2d7813ce6f831917d80cd Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Mon, 21 Dec 1998 22:32:34 +0000 Subject: [PATCH] libmsg interfaces moved to mailnews/news/public git-svn-id: svn://10.0.0.236/trunk@16778 18797224-902f-48f8-a5cc-f745e15eee43 --- .../network/protocol/nntp/public/Makefile.in | 11 --- .../nntp/public/nsIMsgNewsArticleList.idl | 49 ---------- .../protocol/nntp/public/nsIMsgNewsHost.idl | 90 ------------------- .../protocol/nntp/public/nsIMsgNewsgroup.idl | 34 ------- .../nntp/public/nsIMsgXOVERParser.idl | 46 ---------- 5 files changed, 230 deletions(-) delete mode 100644 mozilla/network/protocol/nntp/public/nsIMsgNewsArticleList.idl delete mode 100644 mozilla/network/protocol/nntp/public/nsIMsgNewsHost.idl delete mode 100644 mozilla/network/protocol/nntp/public/nsIMsgNewsgroup.idl delete mode 100644 mozilla/network/protocol/nntp/public/nsIMsgXOVERParser.idl diff --git a/mozilla/network/protocol/nntp/public/Makefile.in b/mozilla/network/protocol/nntp/public/Makefile.in index cd454b36f1f..458e47b556c 100644 --- a/mozilla/network/protocol/nntp/public/Makefile.in +++ b/mozilla/network/protocol/nntp/public/Makefile.in @@ -23,17 +23,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk EXPORTS= \ - nsIMsgNewsHost.h \ - nsIMsgXOVERParser.h \ - nsIMsgNewsArticleList.h \ - nsIMsgNewsgroup.h \ - $(NULL) - -IDLSRCS= \ - nsIMsgNewsHost.idl \ - nsIMsgXOVERParser.idl \ - nsIMsgNewsArticleList.idl \ - nsIMsgNewsgroup.idl \ $(NULL) include $(topsrcdir)/config/rules.mk diff --git a/mozilla/network/protocol/nntp/public/nsIMsgNewsArticleList.idl b/mozilla/network/protocol/nntp/public/nsIMsgNewsArticleList.idl deleted file mode 100644 index b112957e660..00000000000 --- a/mozilla/network/protocol/nntp/public/nsIMsgNewsArticleList.idl +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * - * 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. - */ - -#include "nsISupports.idl" - -/* this interface is basically for the old ListNewsGroupState class - * (the implementation of this class probably wants to also implement - * or contain ChangeListener so that it can react to OnAnnouncerGoingAway() - * to destroy the DBView) - */ -[object, uuid(E628ED19-9452-11d2-B7EA-00805F05FFA5)] -interface nsIMsgNewsArticleList : nsISupports { - -/* These calls are used by libnet to determine which articles it ought to - get in a big newsgroup. */ - /* the nsIUnknown will probably hold a ListNewsGroupState - * this stuff might really belong on the XOVER stuff, but I'm not sure - * -alecf */ - - - void InitAddArticleKeyToGroup(); - void AddArticleKeyToGroup(in long found_id); - void FinishAddArticleKeyToGroup(); - void GetRangeOfArtsToDownload(in long first_message, - in long last_message, - in long total_messages, - out long real_first_message, - out long real_last_message, - out long real_total_messages); - - void AddToKnownArticles(in long first_message, in long last_message); - -}; - diff --git a/mozilla/network/protocol/nntp/public/nsIMsgNewsHost.idl b/mozilla/network/protocol/nntp/public/nsIMsgNewsHost.idl deleted file mode 100644 index 756cc8b5df0..00000000000 --- a/mozilla/network/protocol/nntp/public/nsIMsgNewsHost.idl +++ /dev/null @@ -1,90 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * - * 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. - */ -#include "nsISupports.idl" - -[object, uuid(2F5041B0-939E-11d2-B7EA-00805F05FFA5)] -interface nsIMsgHostNews : nsISupports { - - attribute boolean supportsExtensions; - void AddExtension(in string extension); - boolean QueryExtension(in string extension); - - attribute boolean postingAllowed; - attribute boolean pushAuth; - attribute long lastUpdatedTime; - - /* libnet callbacks for Dredd NNTP extensions - * please document if you know how these work - */ - void AddPropertyForGet(in string name, in string value); - void AddSearchableGroup(in string groupname); - void AddProfileGroup(in string responseText); - /* going away */ - void AddSubscribedNewsgroup(in string url); - - /* In response to an NNTP GROUP command, the server said - * the group doesn't exist - */ - void GroupNotFound(in string group, in boolean opening); - - /* Tell the subscribe pane about a new newsgroup we noticed. */ - /* XXX should xactive flags be a long? */ - void AddNewNewsgroup(in string groupname, - in long first, in long last, - in string flags, in boolean xactiveFlags); - - /* formerly GetNewsRCCount() */ - /* After displaying a list of newsgroups, we need the NNTP module to go and - run "GROUP" commands for the ones for which we don't know the unread - article count. This function returns a count of how many groups we think - we're going to need this for (so we can display progress in a reasonable - way). - */ - long GetNumGroupsNeedingCounts(); - - /* formerly GetNewsRCGroup() */ - /* Gets the name of the next group that we want to get article counts for. - MSG_DisplaySubscribedGroup() should get called with this group before - this call happens again. */ - string GetFirstGroupNeedingCounts(); - - /* In response to a "news://host/" URL; this is called once for each group - that was returned by MSG_GetNewsRCGroup(), after the NNTP GROUP - command has been run. It's also called whenever we actually visit the - group (the user clicks on the newsgroup line), in case the data has - changed since the initial passthrough. The "nowvisiting" parameter - is TRUE in the latter case, FALSE otherwise. */ - void DisplaySubscribedGroup(in string groupname, - in long first_message, in long last_message, - in long total_messages, - in boolean visit_now); - - string GetFirstGroupNeedingExtraInfo(); - - - /* News servers work better if you ask for message numbers instead of IDs. - So, the NNTP module asks us what the group and number of an ID is with - this. If we don't know, we return 0 for both. If the pane is not a - thead or message pane, this routine will fail. - */ - void GetNewsGroupAndNumberOfID(in string message_id, - out string groupname, - out long message_number); - -}; - diff --git a/mozilla/network/protocol/nntp/public/nsIMsgNewsgroup.idl b/mozilla/network/protocol/nntp/public/nsIMsgNewsgroup.idl deleted file mode 100644 index 1110c733dda..00000000000 --- a/mozilla/network/protocol/nntp/public/nsIMsgNewsgroup.idl +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * - * 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. - */ - -#include "nsISupports.idl" - -[object, uuid(E628ED10-9452-11d2-B7EA-00805F05FFA5)] -interface nsINetNewsgroup : nsISupports { - - attribute string prettyName; - - attribute string password; - attribute string username; - - attribute boolean needsExtraInfo; - - -}; - - diff --git a/mozilla/network/protocol/nntp/public/nsIMsgXOVERParser.idl b/mozilla/network/protocol/nntp/public/nsIMsgXOVERParser.idl deleted file mode 100644 index 8e99cfd0304..00000000000 --- a/mozilla/network/protocol/nntp/public/nsIMsgXOVERParser.idl +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * - * 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. - */ - -#include "nsISupports.idl" - - -[object, uuid(E628ED19-9452-11d2-B7EA-00805F05FFA5)] -interface nsIMsgXOVERParser : nsISupports { - - /* The NNTP module of netlib calls these to feed XOVER data to the message - library, in response to a news:group.name URL having been opened. - If MSG_FinishXOVER() returns a message ID, that message will be loaded - next (used for selecting the first unread message in a group after - listing that group.) - - depricated: - The "out" arguments are (if non-NULL) a file descriptor to write the XOVER - line to, followed by a "\n". This is used by the XOVER-caching code. - */ - /* the XOVER Sink should maintain the ListNewsGroupState */ - void Init(in string hostname, in string groupname, - in long first_message, in long last_message, - in long oldest_message, in long newest_message); - - void Process(in string line, out long status); - void ProcessNonXOVER(in string line); - void Reset(); - void Finish(in long status, out long newstatus); - void ClearState(); - -};