mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
/* -*- 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.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/
|
|
*
|
|
* 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.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
#include "nsISupports.idl"
|
|
#include "nsIEnumerator.idl"
|
|
#include "MailNewsTypes2.idl"
|
|
|
|
interface nsIMsgDBHdr;
|
|
interface nsIMsgHdr;
|
|
|
|
interface nsIDBChangeAnnouncer;
|
|
|
|
[scriptable, uuid(df64af90-e2da-11d2-8d6c-00805f8a6617)]
|
|
interface nsIMsgThread : nsISupports {
|
|
attribute nsMsgKey threadKey;
|
|
attribute unsigned long flags;
|
|
attribute string subject;
|
|
readonly attribute unsigned long numChildren;
|
|
readonly attribute unsigned long numUnreadChildren;
|
|
|
|
void AddChild(in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer);
|
|
nsIMsgDBHdr GetChildAt(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);
|
|
|
|
nsISimpleEnumerator EnumerateMessages(in nsMsgKey parent);
|
|
|
|
};
|