|
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #include "nsISupports.idl" |
|
8 |
|
9 interface nsISHEntry; |
|
10 |
|
11 /** |
|
12 * The nsISHEntryContainer. The interface to access child entries |
|
13 * of an nsISHEntry. |
|
14 * |
|
15 */ |
|
16 |
|
17 [scriptable, uuid(65281BA2-988A-11d3-BDC7-0050040A9B44)] |
|
18 interface nsISHContainer : nsISupports |
|
19 { |
|
20 /** |
|
21 * The current number of nsISHEntries which are immediate children of the |
|
22 * current SHEntry |
|
23 */ |
|
24 readonly attribute long childCount; |
|
25 |
|
26 /** |
|
27 * Add a new child SHEntry. If offset is -1 adds to the end of the list. |
|
28 */ |
|
29 void AddChild(in nsISHEntry child, in long offset); |
|
30 |
|
31 /** |
|
32 * Removes a child SHEntry |
|
33 */ |
|
34 void RemoveChild(in nsISHEntry child); |
|
35 |
|
36 /** |
|
37 * Get child at an index |
|
38 */ |
|
39 nsISHEntry GetChildAt(in long index); |
|
40 |
|
41 }; |
|
42 |