1999-04-10 20:23:54 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1999-04-10 20:23:54 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-04-10 20:23:54 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-04-10 20:23:54 +00:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-04-10 20:23:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIEnumerator.idl"
|
1999-06-11 22:07:08 +00:00
|
|
|
#include "MailNewsTypes2.idl"
|
1999-04-10 20:23:54 +00:00
|
|
|
|
1999-05-12 21:21:54 +00:00
|
|
|
interface nsIMsgDBHdr;
|
1999-08-07 02:30:11 +00:00
|
|
|
interface nsIMsgHdr;
|
1999-05-12 21:21:54 +00:00
|
|
|
|
1999-07-21 21:49:46 +00:00
|
|
|
interface nsIDBChangeAnnouncer;
|
1999-04-24 20:33:39 +00:00
|
|
|
|
1999-05-27 05:19:55 +00:00
|
|
|
[scriptable, uuid(df64af90-e2da-11d2-8d6c-00805f8a6617)]
|
1999-04-10 20:23:54 +00:00
|
|
|
interface nsIMsgThread : nsISupports {
|
|
|
|
attribute nsMsgKey threadKey;
|
|
|
|
attribute unsigned long flags;
|
1999-06-30 19:45:03 +00:00
|
|
|
attribute string subject;
|
1999-04-10 20:23:54 +00:00
|
|
|
readonly attribute unsigned long numChildren;
|
|
|
|
readonly attribute unsigned long numUnreadChildren;
|
|
|
|
|
1999-07-21 21:49:46 +00:00
|
|
|
void AddChild(in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer);
|
1999-04-24 20:33:39 +00:00
|
|
|
nsIMsgDBHdr GetChildAt(in long index);
|
|
|
|
nsIMsgDBHdr GetChild(in nsMsgKey msgKey);
|
|
|
|
nsIMsgDBHdr GetChildHdrAt(in long index);
|
1999-07-13 18:48:25 +00:00
|
|
|
nsIMsgDBHdr GetRootHdr(out long index);
|
1999-04-10 20:23:54 +00:00
|
|
|
void RemoveChildAt(in long index);
|
1999-07-21 21:49:46 +00:00
|
|
|
void RemoveChildHdr(in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer);
|
1999-04-10 20:23:54 +00:00
|
|
|
|
|
|
|
void MarkChildRead(in boolean bRead);
|
|
|
|
|
1999-08-26 04:41:07 +00:00
|
|
|
nsISimpleEnumerator EnumerateMessages(in nsMsgKey parent);
|
1999-04-10 20:23:54 +00:00
|
|
|
|
|
|
|
};
|