michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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 nsIArray; michael@0: interface nsIFile; michael@0: michael@0: [scriptable, uuid(60b320d2-1dd2-11b2-bd73-dc3575f78ddd)] michael@0: interface nsIFileView : nsISupports michael@0: { michael@0: const short sortName = 0; michael@0: const short sortSize = 1; michael@0: const short sortDate = 2; michael@0: michael@0: attribute boolean showHiddenFiles; michael@0: attribute boolean showOnlyDirectories; michael@0: readonly attribute short sortType; michael@0: readonly attribute boolean reverseSort; michael@0: michael@0: void sort(in short sortType, in boolean reverseSort); michael@0: void setDirectory(in nsIFile directory); michael@0: void setFilter(in AString filterString); michael@0: michael@0: readonly attribute nsIArray selectedFiles; michael@0: }; michael@0: michael@0: %{C++ michael@0: michael@0: #define NS_FILEVIEW_CONTRACTID "@mozilla.org/filepicker/fileview;1" michael@0: michael@0: %}