зеркало из https://github.com/mozilla/pjs.git
Add nsIDBMessage interface and remove GetPath from nsIImapFolder.
This commit is contained in:
Родитель
2af5504cb9
Коммит
ce654a0f68
|
@ -36,10 +36,37 @@ class nsIMessage : public nsIMsgHdr {
|
|||
/* nsIMsgFolder GetMsgFolder (); */
|
||||
NS_IMETHOD GetMsgFolder(nsIMsgFolder **_retval) = 0;
|
||||
|
||||
/* void SetMsgFolder (in nsIMsgFolder folder); */
|
||||
NS_IMETHOD SetMsgFolder(nsIMsgFolder *folder) = 0;
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
|
||||
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIMessage *priv);
|
||||
#endif
|
||||
};
|
||||
|
||||
/* starting interface: nsIDBMessage */
|
||||
|
||||
/* {82702556-01A2-11d3-8A69-0060B0FC04D2} */
|
||||
#define NS_IDBMESSAGE_IID_STR "82702556-01A2-11d3-8A69-0060B0FC04D2"
|
||||
#define NS_IDBMESSAGE_IID \
|
||||
{0x82702556, 0x01A2, 0x11d3, \
|
||||
{ 0x8A, 0x69, 0x00, 0x60, 0xB0, 0xFC, 0x04, 0xD2 }}
|
||||
|
||||
class nsIDBMessage : public nsIMessage {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDBMESSAGE_IID)
|
||||
|
||||
/* void SetMsgDBHdr (in nsIMsgDBHdr hdr); */
|
||||
NS_IMETHOD SetMsgDBHdr(nsIMsgDBHdr *hdr) = 0;
|
||||
|
||||
/* nsIMsgDBHdr GetMsgDBHdr (); */
|
||||
NS_IMETHOD GetMsgDBHdr(nsIMsgDBHdr **_retval) = 0;
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
|
||||
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIDBMessage *priv);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* __gen_nsIMessage_h__ */
|
||||
|
|
|
@ -25,5 +25,13 @@ interface nsIMsgFolder;
|
|||
interface nsIMessage : nsIMsgHdr {
|
||||
|
||||
nsIMsgFolder GetMsgFolder();
|
||||
void SetMsgFolder(in nsIMsgFolder folder);
|
||||
};
|
||||
|
||||
[uuid(82702556-01A2-11d3-8A69-0060B0FC04D2)] /* XXX regenerate */
|
||||
interface nsIDBMessage : nsIMessage {
|
||||
|
||||
void SetMsgDBHdr(in nsIMsgDBHdr hdr);
|
||||
nsIMsgDBHdr GetMsgDBHdr();
|
||||
};
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#endif
|
||||
#include "nsFileSpec.h"
|
||||
|
||||
class nsIMessage; /* forward decl */
|
||||
|
||||
/* starting interface: nsIMsgFolder */
|
||||
|
||||
|
@ -207,7 +208,7 @@ class nsIMsgFolder : public nsIFolder {
|
|||
/* boolean IsLocked (); */
|
||||
NS_IMETHOD IsLocked(PRBool *_retval) = 0;
|
||||
|
||||
/* nsIMessage CreateMessageFromMsgDBHdr (in nsIMsgDBHdr msgHdr); */
|
||||
/* nsIMessage CreateMessageFromMsgDBHdr (in nsIMsgDBHdr msgDBHdr); */
|
||||
NS_IMETHOD CreateMessageFromMsgDBHdr(nsIMsgDBHdr *msgDBHdr, nsIMessage **_retval) = 0;
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
|
@ -264,9 +265,6 @@ class nsIMsgImapMailFolder : public nsISupports {
|
|||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IMSGIMAPMAILFOLDER_IID)
|
||||
|
||||
/* readonly attribute nsNativeFileSpec pathName; */
|
||||
NS_IMETHOD GetPathName(nsNativeFileSpec& aPathName) = 0;
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
|
||||
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIMsgImapMailFolder *priv);
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
%}
|
||||
|
||||
native nsNativeFileSpec(nsNativeFileSpec*);
|
||||
interface nsIMessage;
|
||||
|
||||
[uuid(85e39ff0-b248-11d2-b7ef-00805f05ffa5)]
|
||||
interface nsIMsgFolder : nsIFolder {
|
||||
|
@ -136,7 +137,6 @@ interface nsIMsgNewsFolder : nsISupports {
|
|||
|
||||
[uuid(FBFEBE79-C1DD-11d2-8A40-0060B0FC04D2)]
|
||||
interface nsIMsgImapMailFolder : nsISupports {
|
||||
readonly attribute nsNativeFileSpec pathName;
|
||||
};
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче