зеркало из https://github.com/mozilla/gecko-dev.git
move nsIMsgThread to base/public, and create IDL source
nsIMsgThread.idl has to be in base/public because nsIMessage needs it during IDL compilation
This commit is contained in:
Родитель
ea8ad51175
Коммит
4823daa071
|
@ -44,3 +44,4 @@ nsIMsgAccount.h
|
||||||
nsIMsgAccountManager.h
|
nsIMsgAccountManager.h
|
||||||
nsIMsgIdentity.h
|
nsIMsgIdentity.h
|
||||||
nsIMsgIncomingServer.h
|
nsIMsgIncomingServer.h
|
||||||
|
nsIMsgThread.h
|
||||||
|
|
|
@ -28,6 +28,8 @@ IDLSRCS = \
|
||||||
nsIDOMMsgAppCore.idl \
|
nsIDOMMsgAppCore.idl \
|
||||||
nsIMsgGroupRecord.idl \
|
nsIMsgGroupRecord.idl \
|
||||||
nsIMsgIncomingServer.idl \
|
nsIMsgIncomingServer.idl \
|
||||||
|
nsIMessage.idl \
|
||||||
|
nsIMsgThread.idl \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
EXPORTS = \
|
EXPORTS = \
|
||||||
|
@ -60,6 +62,7 @@ EXPORTS = \
|
||||||
nsIMsgIncomingServer.h \
|
nsIMsgIncomingServer.h \
|
||||||
nsICopyMessageListener.h \
|
nsICopyMessageListener.h \
|
||||||
nsIMessageView.h \
|
nsIMessageView.h \
|
||||||
|
nsIMsgThread.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
include $(topsrcdir)/config/config.mk
|
include $(topsrcdir)/config/config.mk
|
||||||
|
|
|
@ -27,6 +27,7 @@ IDLSRCS = \
|
||||||
nsIMsgGroupRecord.idl \
|
nsIMsgGroupRecord.idl \
|
||||||
nsICopyMessageListener.idl \
|
nsICopyMessageListener.idl \
|
||||||
nsIMsgIncomingServer.idl \
|
nsIMsgIncomingServer.idl \
|
||||||
|
nsIMsgThread.idl \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
EXPORTS = \
|
EXPORTS = \
|
||||||
|
@ -58,6 +59,7 @@ EXPORTS = \
|
||||||
nsIMsgAccountManager.h \
|
nsIMsgAccountManager.h \
|
||||||
nsIMsgIdentity.h \
|
nsIMsgIdentity.h \
|
||||||
nsIMsgIncomingServer.h \
|
nsIMsgIncomingServer.h \
|
||||||
|
nsIMsgThread.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
MODULE=mailnews
|
MODULE=mailnews
|
||||||
|
|
|
@ -0,0 +1,77 @@
|
||||||
|
/*
|
||||||
|
* DO NOT EDIT. THIS FILE IS GENERATED FROM nsIMsgThread.idl
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __gen_nsIMsgThread_h__
|
||||||
|
#define __gen_nsIMsgThread_h__
|
||||||
|
|
||||||
|
#include "nsISupports.h" /* interface nsISupports */
|
||||||
|
#include "MailNewsTypes.h" /* interface MailNewsTypes */
|
||||||
|
#include "nsIEnumerator.h" /* interface nsIEnumerator */
|
||||||
|
#include "nsID.h" /* interface nsID */
|
||||||
|
#include "nsIMessage.h" /* interface nsIMessage */
|
||||||
|
|
||||||
|
#ifdef XPIDL_JS_STUBS
|
||||||
|
#include "jsapi.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* starting interface: nsIMsgThread */
|
||||||
|
|
||||||
|
/* {df64af90-e2da-11d2-8d6c-00805f8a6617} */
|
||||||
|
#define NS_IMSGTHREAD_IID_STR "df64af90-e2da-11d2-8d6c-00805f8a6617"
|
||||||
|
#define NS_IMSGTHREAD_IID \
|
||||||
|
{0xdf64af90, 0xe2da, 0x11d2, \
|
||||||
|
{ 0x8d, 0x6c, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0x17 }}
|
||||||
|
|
||||||
|
class nsIMsgThread : public nsISupports {
|
||||||
|
public:
|
||||||
|
static const nsIID& GetIID() {
|
||||||
|
static nsIID iid = NS_IMSGTHREAD_IID;
|
||||||
|
return iid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* attribute nsMsgKey threadKey; */
|
||||||
|
NS_IMETHOD GetThreadKey(nsMsgKey *aThreadKey) = 0;
|
||||||
|
NS_IMETHOD SetThreadKey(nsMsgKey aThreadKey) = 0;
|
||||||
|
|
||||||
|
/* attribute unsigned long flags; */
|
||||||
|
NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
|
||||||
|
NS_IMETHOD SetFlags(PRUint32 aFlags) = 0;
|
||||||
|
|
||||||
|
/* readonly attribute unsigned long numChildren; */
|
||||||
|
NS_IMETHOD GetNumChildren(PRUint32 *aNumChildren) = 0;
|
||||||
|
|
||||||
|
/* readonly attribute unsigned long numUnreadChildren; */
|
||||||
|
NS_IMETHOD GetNumUnreadChildren(PRUint32 *aNumUnreadChildren) = 0;
|
||||||
|
|
||||||
|
/* void AddChild (in nsIMessage child, in boolean threadInThread); */
|
||||||
|
NS_IMETHOD AddChild(nsIMessage *child, PRBool threadInThread) = 0;
|
||||||
|
|
||||||
|
/* nsIMessage GetChildAt (in long index); */
|
||||||
|
NS_IMETHOD GetChildAt(PRInt32 index, nsIMessage **_retval) = 0;
|
||||||
|
|
||||||
|
/* nsIMessage GetChild (in nsMsgKey msgKey); */
|
||||||
|
NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMessage **_retval) = 0;
|
||||||
|
|
||||||
|
/* nsIMessage GetChildHdrAt (in long index); */
|
||||||
|
NS_IMETHOD GetChildHdrAt(PRInt32 index, nsIMessage **_retval) = 0;
|
||||||
|
|
||||||
|
/* void RemoveChildAt (in long index); */
|
||||||
|
NS_IMETHOD RemoveChildAt(PRInt32 index) = 0;
|
||||||
|
|
||||||
|
/* void RemoveChild (in nsMsgKey msgKey); */
|
||||||
|
NS_IMETHOD RemoveChild(nsMsgKey msgKey) = 0;
|
||||||
|
|
||||||
|
/* void MarkChildRead (in boolean bRead); */
|
||||||
|
NS_IMETHOD MarkChildRead(PRBool bRead) = 0;
|
||||||
|
|
||||||
|
/* nsIEnumerator EnumerateMessages (in nsMsgKey parent); */
|
||||||
|
NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsIEnumerator **_retval) = 0;
|
||||||
|
|
||||||
|
#ifdef XPIDL_JS_STUBS
|
||||||
|
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
|
||||||
|
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIMsgThread *priv);
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* __gen_nsIMsgThread_h__ */
|
|
@ -0,0 +1,43 @@
|
||||||
|
/* -*- 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.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"
|
||||||
|
#include "nsIMessage.idl"
|
||||||
|
#include "nsIEnumerator.idl"
|
||||||
|
#include "MailNewsTypes.idl"
|
||||||
|
|
||||||
|
[object, uuid(df64af90-e2da-11d2-8d6c-00805f8a6617)]
|
||||||
|
interface nsIMsgThread : nsISupports {
|
||||||
|
attribute nsMsgKey threadKey;
|
||||||
|
attribute unsigned long flags;
|
||||||
|
readonly attribute unsigned long numChildren;
|
||||||
|
readonly attribute unsigned long numUnreadChildren;
|
||||||
|
|
||||||
|
void AddChild(in nsIMessage child, in boolean threadInThread);
|
||||||
|
nsIMessage GetChildAt(in long index);
|
||||||
|
nsIMessage GetChild(in nsMsgKey msgKey);
|
||||||
|
nsIMessage GetChildHdrAt(in long index);
|
||||||
|
|
||||||
|
void RemoveChildAt(in long index);
|
||||||
|
void RemoveChild(in nsMsgKey msgKey);
|
||||||
|
|
||||||
|
void MarkChildRead(in boolean bRead);
|
||||||
|
|
||||||
|
nsIEnumerator EnumerateMessages(in nsMsgKey parent);
|
||||||
|
|
||||||
|
};
|
|
@ -26,5 +26,4 @@ nsMsgHdr.h
|
||||||
nsIDBChangeListener.h
|
nsIDBChangeListener.h
|
||||||
nsIDBFolderInfo.h
|
nsIDBFolderInfo.h
|
||||||
nsIMessage.h
|
nsIMessage.h
|
||||||
nsIMsgThread.h
|
|
||||||
nsMsgThread.h
|
nsMsgThread.h
|
||||||
|
|
|
@ -33,10 +33,11 @@ EXPORTS= \
|
||||||
nsIDBChangeListener.h \
|
nsIDBChangeListener.h \
|
||||||
nsIDBFolderInfo.h \
|
nsIDBFolderInfo.h \
|
||||||
nsIMessage.h \
|
nsIMessage.h \
|
||||||
nsIMsgThread.h \
|
|
||||||
nsMsgThread.h \
|
nsMsgThread.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
IDLSRCS = \
|
||||||
|
$(NULL)
|
||||||
include $(topsrcdir)/config/config.mk
|
include $(topsrcdir)/config/config.mk
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
|
@ -33,7 +33,6 @@ EXPORTS = \
|
||||||
nsIDBChangeListener.h \
|
nsIDBChangeListener.h \
|
||||||
nsIDBFolderInfo.h \
|
nsIDBFolderInfo.h \
|
||||||
nsIMessage.h \
|
nsIMessage.h \
|
||||||
nsIMsgThread.h \
|
|
||||||
nsMsgThread.h \
|
nsMsgThread.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
|
|
@ -1,58 +0,0 @@
|
||||||
/* -*- Mode: C++; 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.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) 1999 Netscape Communications Corporation. All Rights
|
|
||||||
* Reserved.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _nsIMsgThread_H
|
|
||||||
#define _nsIMsgThread_H
|
|
||||||
|
|
||||||
#include "nsISupports.h"
|
|
||||||
#include "nsString.h"
|
|
||||||
#include "MailNewsTypes.h"
|
|
||||||
#include "mdb.h"
|
|
||||||
|
|
||||||
class nsIMessage;
|
|
||||||
class nsIEnumerator;
|
|
||||||
|
|
||||||
#define NS_IMSGTHREAD_IID \
|
|
||||||
{/* df64af90-e2da-11d2-8d6c-00805f8a6617 */ \
|
|
||||||
0xdf64af90, \
|
|
||||||
0xe2da, \
|
|
||||||
0x11d2, \
|
|
||||||
0x8d, 0x6c, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0x17 \
|
|
||||||
}
|
|
||||||
|
|
||||||
class nsIMsgThread : public nsISupports {
|
|
||||||
public:
|
|
||||||
|
|
||||||
static const nsIID& GetIID() { static nsIID iid = NS_IMSGTHREAD_IID; return iid; }
|
|
||||||
NS_IMETHOD SetThreadKey(nsMsgKey threadKey) = 0;
|
|
||||||
NS_IMETHOD GetThreadKey(nsMsgKey *result) = 0;
|
|
||||||
NS_IMETHOD GetFlags(PRUint32 *result) = 0;
|
|
||||||
NS_IMETHOD SetFlags(PRUint32 flags) = 0;
|
|
||||||
NS_IMETHOD GetNumChildren(PRUint32 *result) = 0;
|
|
||||||
NS_IMETHOD GetNumUnreadChildren (PRUint32 *result) = 0;
|
|
||||||
NS_IMETHOD AddChild(nsIMessage *child, PRBool threadInThread) = 0;
|
|
||||||
NS_IMETHOD GetChildAt(PRInt32 index, nsIMessage **result) = 0;
|
|
||||||
NS_IMETHOD GetChild(nsMsgKey msgKey, nsIMessage **result) = 0;
|
|
||||||
NS_IMETHOD GetChildHdrAt(PRInt32 index, nsIMessage **result) = 0;
|
|
||||||
NS_IMETHOD RemoveChildAt(PRInt32 index) = 0;
|
|
||||||
NS_IMETHOD RemoveChild(nsMsgKey msgKey) = 0;
|
|
||||||
NS_IMETHOD MarkChildRead(PRBool bRead) = 0;
|
|
||||||
NS_IMETHOD EnumerateMessages(nsMsgKey parent, nsIEnumerator* *result) = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
Загрузка…
Ссылка в новой задаче