1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/filepicker/nsIFileView.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIArray; 1.12 +interface nsIFile; 1.13 + 1.14 +[scriptable, uuid(60b320d2-1dd2-11b2-bd73-dc3575f78ddd)] 1.15 +interface nsIFileView : nsISupports 1.16 +{ 1.17 + const short sortName = 0; 1.18 + const short sortSize = 1; 1.19 + const short sortDate = 2; 1.20 + 1.21 + attribute boolean showHiddenFiles; 1.22 + attribute boolean showOnlyDirectories; 1.23 + readonly attribute short sortType; 1.24 + readonly attribute boolean reverseSort; 1.25 + 1.26 + void sort(in short sortType, in boolean reverseSort); 1.27 + void setDirectory(in nsIFile directory); 1.28 + void setFilter(in AString filterString); 1.29 + 1.30 + readonly attribute nsIArray selectedFiles; 1.31 +}; 1.32 + 1.33 +%{C++ 1.34 + 1.35 +#define NS_FILEVIEW_CONTRACTID "@mozilla.org/filepicker/fileview;1" 1.36 + 1.37 +%}