michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsISHEntry; michael@0: michael@0: /** michael@0: * The nsISHEntryContainer. The interface to access child entries michael@0: * of an nsISHEntry. michael@0: * michael@0: */ michael@0: michael@0: [scriptable, uuid(65281BA2-988A-11d3-BDC7-0050040A9B44)] michael@0: interface nsISHContainer : nsISupports michael@0: { michael@0: /** michael@0: * The current number of nsISHEntries which are immediate children of the michael@0: * current SHEntry michael@0: */ michael@0: readonly attribute long childCount; michael@0: michael@0: /** michael@0: * Add a new child SHEntry. If offset is -1 adds to the end of the list. michael@0: */ michael@0: void AddChild(in nsISHEntry child, in long offset); michael@0: michael@0: /** michael@0: * Removes a child SHEntry michael@0: */ michael@0: void RemoveChild(in nsISHEntry child); michael@0: michael@0: /** michael@0: * Get child at an index michael@0: */ michael@0: nsISHEntry GetChildAt(in long index); michael@0: michael@0: }; michael@0: