зеркало из https://github.com/mozilla/pjs.git
needed MarkDirty so that nsNNTPArticleSet could compile
This commit is contained in:
Родитель
2f0bfc831b
Коммит
ab6e0576ee
|
@ -1,100 +0,0 @@
|
|||
/*
|
||||
* DO NOT EDIT. THIS FILE IS GENERATED FROM nsIMsgNewsHost.idl
|
||||
*/
|
||||
|
||||
#ifndef __gen_nsIMsgNewsHost_h__
|
||||
#define __gen_nsIMsgNewsHost_h__
|
||||
|
||||
#include "nsISupports.h" /* interface nsISupports */
|
||||
#include "nsIMsgNewsgroup.h" /* interface nsIMsgNewsgroup */
|
||||
#include "nsINNTPNewsgroupList.h" /* interface nsINNTPNewsgroupList */
|
||||
|
||||
|
||||
/* starting interface nsIMsgNewsHost */
|
||||
|
||||
/* {2F5041B0-939E-11d2-B7EA-00805F05FFA5} */
|
||||
#define NS_IMSGNEWSHOST_IID_STR "2F5041B0-939E-11d2-B7EA-00805F05FFA5"
|
||||
#define NS_IMSGNEWSHOST_IID \
|
||||
{0x2F5041B0, 0x939E, 0x11d2, \
|
||||
{ 0xB7, 0xEA, 0x00, 0x80, 0x5F, 0x05, 0xFF, 0xA5 }}
|
||||
|
||||
class nsIMsgNewsHost : public nsISupports {
|
||||
private:
|
||||
void operator delete(void *); // NOT TO BE IMPLEMENTED
|
||||
|
||||
public:
|
||||
static const nsIID& IID() {
|
||||
static nsIID iid = NS_IMSGNEWSHOST_IID;
|
||||
return iid;
|
||||
}
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD IsSupportsExtensions(PRBool *aIsSupportsExtensions) = 0;
|
||||
NS_IMETHOD SetSupportsExtensions(PRBool aSupportsExtensions) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddExtension(const char *extension) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD QueryExtension(const char *extension, PRBool *_retval) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD IsPostingAllowed(PRBool *aIsPostingAllowed) = 0;
|
||||
NS_IMETHOD SetPostingAllowed(PRBool aPostingAllowed) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD IsPushAuth(PRBool *aIsPushAuth) = 0;
|
||||
NS_IMETHOD SetPushAuth(PRBool aPushAuth) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetLastUpdatedTime(PRInt64 *aLastUpdatedTime) = 0;
|
||||
NS_IMETHOD SetLastUpdatedTime(PRInt64 aLastUpdatedTime) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddPropertyForGet(const char *name, const char *value) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddSearchableGroup(const char *groupname) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddProfileGroup(const char *responseText) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddSearchableHeader(const char *headerName) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddSubscribedNewsgroup(const char *url) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GroupNotFound(const char *group, PRBool opening) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddNewNewsgroup(const char *groupname, PRInt32 first, PRInt32 last, const char *flags, PRBool xactiveFlags) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetNumGroupsNeedingCounts(PRInt32 *_retval) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetFirstGroupNeedingCounts(char **_retval) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
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;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD SetGroupNeedsExtraInfo(const char *groupname, PRBool needsExtraInfo) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetNewsGroupAndNumberOfID(const char *message_id, nsIMsgNewsgroup **group, PRUint32 *message_number) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD AddPrettyName(const char *groupName, const char *prettyName) = 0;
|
||||
|
||||
/* <IDL> */
|
||||
NS_IMETHOD GetNewsgroupList(nsINNTPNewsgroupList * *aNewsgroupList) = 0;
|
||||
NS_IMETHOD SetNewsgroupList(nsINNTPNewsgroupList * aNewsgroupList) = 0;
|
||||
};
|
||||
|
||||
#endif /* __gen_nsIMsgNewsHost_h__ */
|
|
@ -1,107 +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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* An NNTP view of a newshost. Contains everything needed to maintain state
|
||||
* information about an NNTP host. Similar to the old MSG_NewsHost but
|
||||
* is only for protocol-state maintenance.
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIMsgNewsgroup.idl"
|
||||
#include "nsINNTPNewsgroupList.idl"
|
||||
|
||||
[object, uuid(2F5041B0-939E-11d2-B7EA-00805F05FFA5)]
|
||||
interface nsIMsgNewsHost : nsISupports {
|
||||
|
||||
attribute boolean supportsExtensions;
|
||||
void AddExtension(in string extension);
|
||||
boolean QueryExtension(in string extension);
|
||||
|
||||
|
||||
attribute boolean postingAllowed;
|
||||
attribute boolean pushAuth;
|
||||
attribute long 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);
|
||||
void AddSearchableHeader(in string headerName);
|
||||
/* 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);
|
||||
|
||||
nsIMsgNewsgroup GetFirstGroupNeedingExtraInfo();
|
||||
void SetGroupNeedsExtraInfo(in string groupname, in boolean needsExtraInfo);
|
||||
|
||||
|
||||
/* 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 nsIMsgNewsgroup group,
|
||||
out unsigned long message_number);
|
||||
|
||||
|
||||
void AddPrettyName(in string groupName, in string prettyName);
|
||||
|
||||
attribute nsINNTPNewsgroupList newsgroupList;
|
||||
};
|
||||
|
Загрузка…
Ссылка в новой задаче