|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #include "nsISupports.idl" |
|
7 |
|
8 interface nsIArray; |
|
9 interface nsIFile; |
|
10 |
|
11 [scriptable, uuid(60b320d2-1dd2-11b2-bd73-dc3575f78ddd)] |
|
12 interface nsIFileView : nsISupports |
|
13 { |
|
14 const short sortName = 0; |
|
15 const short sortSize = 1; |
|
16 const short sortDate = 2; |
|
17 |
|
18 attribute boolean showHiddenFiles; |
|
19 attribute boolean showOnlyDirectories; |
|
20 readonly attribute short sortType; |
|
21 readonly attribute boolean reverseSort; |
|
22 |
|
23 void sort(in short sortType, in boolean reverseSort); |
|
24 void setDirectory(in nsIFile directory); |
|
25 void setFilter(in AString filterString); |
|
26 |
|
27 readonly attribute nsIArray selectedFiles; |
|
28 }; |
|
29 |
|
30 %{C++ |
|
31 |
|
32 #define NS_FILEVIEW_CONTRACTID "@mozilla.org/filepicker/fileview;1" |
|
33 |
|
34 %} |