1999-01-15 03:07:52 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
1998-12-22 01:24:51 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* 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/
|
1998-12-22 01:24:51 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* 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.
|
1998-12-22 01:24:51 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1998-12-22 01:24:51 +03:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1998-12-22 01:24:51 +03:00
|
|
|
*/
|
|
|
|
|
1998-12-24 03:55:13 +03:00
|
|
|
/*
|
|
|
|
* network-oriented interface to newsgroups.
|
|
|
|
* This is similar to the old MSG_NewsFolderInfo but is an interface
|
|
|
|
* only NNTP uses for talking to the news server and maintaining state.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
1998-12-22 01:24:51 +03:00
|
|
|
#include "nsISupports.idl"
|
1999-06-03 06:24:08 +04:00
|
|
|
|
|
|
|
%{ C++
|
|
|
|
#include "nsMsgKeySet.h"
|
|
|
|
%}
|
|
|
|
|
|
|
|
interface nsMsgKeySet;
|
|
|
|
interface nsINNTPNewsgroupList;
|
1998-12-22 01:24:51 +03:00
|
|
|
|
1999-05-30 04:12:41 +04:00
|
|
|
[scriptable, uuid(1A39CD90-ACAF-11d2-B7EE-00805F05FFA5)]
|
1999-01-16 02:31:39 +03:00
|
|
|
interface nsINNTPNewsgroup : nsISupports {
|
2000-01-25 07:57:22 +03:00
|
|
|
|
1998-12-22 07:33:37 +03:00
|
|
|
attribute string name;
|
1999-01-26 02:45:29 +03:00
|
|
|
attribute string prettyName;
|
1998-12-22 01:24:51 +03:00
|
|
|
|
|
|
|
attribute boolean needsExtraInfo;
|
|
|
|
|
1998-12-22 07:33:37 +03:00
|
|
|
boolean IsOfflineArticle(in long num);
|
1999-01-16 06:56:56 +03:00
|
|
|
|
|
|
|
attribute boolean category;
|
|
|
|
|
|
|
|
attribute boolean subscribed;
|
1999-01-23 05:41:32 +03:00
|
|
|
attribute boolean wantNewTotals;
|
1999-01-28 04:11:45 +03:00
|
|
|
attribute nsINNTPNewsgroupList newsgroupList;
|
1999-01-26 02:45:29 +03:00
|
|
|
|
1999-01-26 07:12:46 +03:00
|
|
|
void UpdateSummaryFromNNTPInfo(in long oldest,
|
|
|
|
in long youngest,
|
|
|
|
in long total_messages);
|
1999-01-28 04:11:45 +03:00
|
|
|
|
1999-06-25 00:24:35 +04:00
|
|
|
void Initialize(in string name,
|
1999-06-03 06:24:08 +04:00
|
|
|
in nsMsgKeySet set,
|
|
|
|
in boolean subscribed);
|
1998-12-22 01:24:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|