/* -*- Mode: IDL; 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.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is mozilla.org code. * * The Initial Developer of the Original Code is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): */ /* 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) */ #include "nsISupports.idl" interface nsIMsgNewsFolder; interface nsINntpUrl; interface nsIMsgWindow; [scriptable, uuid(E628ED19-9452-11d2-B7EA-00805F05FFA5)] interface nsINNTPNewsgroupList : nsISupports { void initialize(in nsINntpUrl runningURL, in nsIMsgNewsFolder newsFolder); long getRangeOfArtsToDownload(in nsIMsgWindow aMsgWindow, in long first_message, in long last_message, in long maxextra, out long real_first_message, out long real_last_message); void addToKnownArticles(in long first_message, in long last_message); /* 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 initXOVER(in long first_message, in long last_message); void processXOVERLINE(in string line, out unsigned long status); void processNonXOVER(in string line); void resetXOVER(); void finishXOVERLINE(in long status, out long newstatus); void clearXOVERState(); attribute boolean getOldMessages; };