Add HasMessage and GetNewMessages

This commit is contained in:
putterman%netscape.com 1999-05-07 00:29:56 +00:00
Родитель 77ba08a492
Коммит 596ceb9c57
4 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -7,16 +7,12 @@
#include "nsISupports.h" /* interface nsISupports */
#include "nsIDOMWindow.h" /* interface nsIDOMWindow */
#include "nsISupportsArray.h" /* interface nsISupportsArray */
#include "nsIDOMXULElement.h" /* interface nsIDOMXULElement */
#include "nsICollection.h" /* interface nsICollection */
#include "nsRDFInterfaces.h" /* interface nsRDFInterfaces */
#include "nsrootidl.h" /* interface nsrootidl */
#include "nsIEnumerator.h" /* interface nsIEnumerator */
#include "nsIDOMXULTreeElement.h" /* interface nsIDOMXULTreeElement */
#include "nsIDOMBaseAppCore.h" /* interface nsIDOMBaseAppCore */
#include "nsIDOMNodeList.h" /* interface nsIDOMNodeList */
#include "nsISimpleEnumerator.h" /* interface nsISimpleEnumerator */
#include "nsrootidl.h"
#ifdef XPIDL_JS_STUBS
#include "jsapi.h"
@ -34,8 +30,8 @@ class nsIDOMMsgAppCore : public nsIDOMBaseAppCore {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMSGAPPCORE_IID)
/* void GetNewMail (); */
NS_IMETHOD GetNewMail() = 0;
/* void GetNewMessages (in nsIRDFCompositeDataSource database, in nsIDOMXULElement folder); */
NS_IMETHOD GetNewMessages(nsIRDFCompositeDataSource *database, nsIDOMXULElement *folder) = 0;
/* void Open3PaneWindow (); */
NS_IMETHOD Open3PaneWindow() = 0;

Просмотреть файл

@ -27,7 +27,7 @@
[object, uuid(4f7966d0-c14f-11d2-b7f2-00805f05ffa5)]
interface nsIDOMMsgAppCore : nsIDOMBaseAppCore {
void GetNewMail();
void GetNewMessages(in nsIRDFCompositeDataSource database, in nsIDOMXULElement folder);
void Open3PaneWindow();
void SetWindow(in nsIDOMWindow ptr);
void OpenURL(in string str);

Просмотреть файл

@ -11,7 +11,6 @@
#include "MailNewsTypes.h" /* interface MailNewsTypes */
#include "nsICollection.h" /* interface nsICollection */
#include "nsIFolderListener.h" /* interface nsIFolderListener */
#include "nsrootidl.h" /* interface nsrootidl */
#include "nsIEnumerator.h" /* interface nsIEnumerator */
#include "nsIMsgHdr.h" /* interface nsIMsgHdr */
#include "nsIFolder.h" /* interface nsIFolder */
@ -51,6 +50,9 @@ class nsIMsgFolder : public nsIFolder {
/* nsIMsgThread GetThreadForMessage (in nsIMessage message); */
NS_IMETHOD GetThreadForMessage(nsIMessage *message, nsIMsgThread **_retval) = 0;
/* boolean HasMessage (in nsIMessage message); */
NS_IMETHOD HasMessage(nsIMessage *message, PRBool *_retval) = 0;
/* nsIEnumerator GetVisibleSubFolders (); */
NS_IMETHOD GetVisibleSubFolders(nsIEnumerator **_retval) = 0;
@ -212,6 +214,9 @@ class nsIMsgFolder : public nsIFolder {
/* nsIMessage CreateMessageFromMsgDBHdr (in nsIMsgDBHdr msgDBHdr); */
NS_IMETHOD CreateMessageFromMsgDBHdr(nsIMsgDBHdr *msgDBHdr, nsIMessage **_retval) = 0;
/* void GetNewMessages (); */
NS_IMETHOD GetNewMessages() = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIMsgFolder *priv);

Просмотреть файл

@ -27,7 +27,6 @@
%}
interface nsIMessage;
native nsNativeFileSpec(nsNativeFileSpec*);
interface nsIMessage;
[uuid(85e39ff0-b248-11d2-b7ef-00805f05ffa5)]
interface nsIMsgFolder : nsIFolder {
@ -44,6 +43,7 @@ interface nsIMsgFolder : nsIFolder {
nsIEnumerator GetMessages();
nsIEnumerator GetThreads();
nsIMsgThread GetThreadForMessage(in nsIMessage message);
boolean HasMessage(in nsIMessage message);
nsIEnumerator GetVisibleSubFolders();
attribute string prettyName;
readonly attribute string prettiestName;
@ -122,6 +122,7 @@ interface nsIMsgFolder : nsIFolder {
boolean IsLocked();
nsIMessage CreateMessageFromMsgDBHdr(in nsIMsgDBHdr msgDBHdr);
void GetNewMessages();
};