The nsIMsgFolder
interface is used to interact with threads in Thunderbird.
Inherits from: nsISupports
void addChild(in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer); |
nsIMsgDBHdr getChildAt(in long index); |
nsMsgKey getChildKeyAt(in long index); |
nsIMsgDBHdr getChild(in nsMsgKey msgKey); |
nsIMsgDBHdr getChildHdrAt(in long index); |
nsIMsgDBHdr getRootHdr(out long index); |
void removeChildAt(in long index); |
void removeChildHdr(in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer); |
void markChildRead(in boolean bRead); |
nsIMsgDBHdr getFirstUnreadChild(); |
nsISimpleEnumerator enumerateMessages(in nsMsgKey parent); |
Attribute | Type | Description |
threadKey |
nsMsgKey |
unsigned long key designating this thread. |
flags |
unsigned long |
Flags attached to the thread. |
subject |
ACString |
Subject of the thread |
newestMsgDate |
unsigned long |
|
numChildren |
unsigned long |
Readonly: Number of messages in the thread. |
numUnreadChildren |
unsigned long |
Readonly: Number of unread messages in the thread. |
Add a message to the thread.
void addChild(in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer);
nsIDBChangeAnnouncer
to receive notification when the change is made.Returns the message at an index.
nsIMsgDBHdr getChildAt(in long index);
nsMsgKey getChildKeyAt(in long index);
nsIMsgDBHdr getChild(in nsMsgKey msgKey);
nsIMsgDBHdr getChildHdrAt(in long index);
nsIMsgDBHdr getRootHdr(out long index);
void removeChildAt(in long index);
void removeChildHdr(in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer);
nsIDBChangeAnnouncer
to receive notification when the change is made.void markChildRead(in boolean bRead);
true
if the messages should be marked read. false
if unread.nsIMsgDBHdr getFirstUnreadChild();
nsISimpleEnumerator enumerateMessages(in nsMsgKey parent);
parent