/usr/include/thunderbird/nsIFileView.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFileView.idl
*/
#ifndef __gen_nsIFileView_h__
#define __gen_nsIFileView_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIArray; /* forward declaration */
class nsIFile; /* forward declaration */
/* starting interface: nsIFileView */
#define NS_IFILEVIEW_IID_STR "60b320d2-1dd2-11b2-bd73-dc3575f78ddd"
#define NS_IFILEVIEW_IID \
{0x60b320d2, 0x1dd2, 0x11b2, \
{ 0xbd, 0x73, 0xdc, 0x35, 0x75, 0xf7, 0x8d, 0xdd }}
class NS_NO_VTABLE nsIFileView : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILEVIEW_IID)
enum {
sortName = 0,
sortSize = 1,
sortDate = 2
};
/* attribute boolean showHiddenFiles; */
NS_IMETHOD GetShowHiddenFiles(bool *aShowHiddenFiles) = 0;
NS_IMETHOD SetShowHiddenFiles(bool aShowHiddenFiles) = 0;
/* attribute boolean showOnlyDirectories; */
NS_IMETHOD GetShowOnlyDirectories(bool *aShowOnlyDirectories) = 0;
NS_IMETHOD SetShowOnlyDirectories(bool aShowOnlyDirectories) = 0;
/* readonly attribute short sortType; */
NS_IMETHOD GetSortType(int16_t *aSortType) = 0;
/* readonly attribute boolean reverseSort; */
NS_IMETHOD GetReverseSort(bool *aReverseSort) = 0;
/* void sort (in short sortType, in boolean reverseSort); */
NS_IMETHOD Sort(int16_t sortType, bool reverseSort) = 0;
/* void setDirectory (in nsIFile directory); */
NS_IMETHOD SetDirectory(nsIFile *directory) = 0;
/* void setFilter (in AString filterString); */
NS_IMETHOD SetFilter(const nsAString & filterString) = 0;
/* readonly attribute nsIArray selectedFiles; */
NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileView, NS_IFILEVIEW_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFILEVIEW \
NS_IMETHOD GetShowHiddenFiles(bool *aShowHiddenFiles) override; \
NS_IMETHOD SetShowHiddenFiles(bool aShowHiddenFiles) override; \
NS_IMETHOD GetShowOnlyDirectories(bool *aShowOnlyDirectories) override; \
NS_IMETHOD SetShowOnlyDirectories(bool aShowOnlyDirectories) override; \
NS_IMETHOD GetSortType(int16_t *aSortType) override; \
NS_IMETHOD GetReverseSort(bool *aReverseSort) override; \
NS_IMETHOD Sort(int16_t sortType, bool reverseSort) override; \
NS_IMETHOD SetDirectory(nsIFile *directory) override; \
NS_IMETHOD SetFilter(const nsAString & filterString) override; \
NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIFILEVIEW \
NS_METHOD GetShowHiddenFiles(bool *aShowHiddenFiles); \
NS_METHOD SetShowHiddenFiles(bool aShowHiddenFiles); \
NS_METHOD GetShowOnlyDirectories(bool *aShowOnlyDirectories); \
NS_METHOD SetShowOnlyDirectories(bool aShowOnlyDirectories); \
NS_METHOD GetSortType(int16_t *aSortType); \
NS_METHOD GetReverseSort(bool *aReverseSort); \
NS_METHOD Sort(int16_t sortType, bool reverseSort); \
NS_METHOD SetDirectory(nsIFile *directory); \
NS_METHOD SetFilter(const nsAString & filterString); \
NS_METHOD GetSelectedFiles(nsIArray * *aSelectedFiles);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFILEVIEW(_to) \
NS_IMETHOD GetShowHiddenFiles(bool *aShowHiddenFiles) override { return _to GetShowHiddenFiles(aShowHiddenFiles); } \
NS_IMETHOD SetShowHiddenFiles(bool aShowHiddenFiles) override { return _to SetShowHiddenFiles(aShowHiddenFiles); } \
NS_IMETHOD GetShowOnlyDirectories(bool *aShowOnlyDirectories) override { return _to GetShowOnlyDirectories(aShowOnlyDirectories); } \
NS_IMETHOD SetShowOnlyDirectories(bool aShowOnlyDirectories) override { return _to SetShowOnlyDirectories(aShowOnlyDirectories); } \
NS_IMETHOD GetSortType(int16_t *aSortType) override { return _to GetSortType(aSortType); } \
NS_IMETHOD GetReverseSort(bool *aReverseSort) override { return _to GetReverseSort(aReverseSort); } \
NS_IMETHOD Sort(int16_t sortType, bool reverseSort) override { return _to Sort(sortType, reverseSort); } \
NS_IMETHOD SetDirectory(nsIFile *directory) override { return _to SetDirectory(directory); } \
NS_IMETHOD SetFilter(const nsAString & filterString) override { return _to SetFilter(filterString); } \
NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) override { return _to GetSelectedFiles(aSelectedFiles); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFILEVIEW(_to) \
NS_IMETHOD GetShowHiddenFiles(bool *aShowHiddenFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowHiddenFiles(aShowHiddenFiles); } \
NS_IMETHOD SetShowHiddenFiles(bool aShowHiddenFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowHiddenFiles(aShowHiddenFiles); } \
NS_IMETHOD GetShowOnlyDirectories(bool *aShowOnlyDirectories) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowOnlyDirectories(aShowOnlyDirectories); } \
NS_IMETHOD SetShowOnlyDirectories(bool aShowOnlyDirectories) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowOnlyDirectories(aShowOnlyDirectories); } \
NS_IMETHOD GetSortType(int16_t *aSortType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortType(aSortType); } \
NS_IMETHOD GetReverseSort(bool *aReverseSort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReverseSort(aReverseSort); } \
NS_IMETHOD Sort(int16_t sortType, bool reverseSort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Sort(sortType, reverseSort); } \
NS_IMETHOD SetDirectory(nsIFile *directory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirectory(directory); } \
NS_IMETHOD SetFilter(const nsAString & filterString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilter(filterString); } \
NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedFiles(aSelectedFiles); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsFileView : public nsIFileView
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIFILEVIEW
nsFileView();
private:
~nsFileView();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsFileView, nsIFileView)
nsFileView::nsFileView()
{
/* member initializers and constructor code */
}
nsFileView::~nsFileView()
{
/* destructor code */
}
/* attribute boolean showHiddenFiles; */
NS_IMETHODIMP nsFileView::GetShowHiddenFiles(bool *aShowHiddenFiles)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsFileView::SetShowHiddenFiles(bool aShowHiddenFiles)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean showOnlyDirectories; */
NS_IMETHODIMP nsFileView::GetShowOnlyDirectories(bool *aShowOnlyDirectories)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsFileView::SetShowOnlyDirectories(bool aShowOnlyDirectories)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute short sortType; */
NS_IMETHODIMP nsFileView::GetSortType(int16_t *aSortType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean reverseSort; */
NS_IMETHODIMP nsFileView::GetReverseSort(bool *aReverseSort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sort (in short sortType, in boolean reverseSort); */
NS_IMETHODIMP nsFileView::Sort(int16_t sortType, bool reverseSort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setDirectory (in nsIFile directory); */
NS_IMETHODIMP nsFileView::SetDirectory(nsIFile *directory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setFilter (in AString filterString); */
NS_IMETHODIMP nsFileView::SetFilter(const nsAString & filterString)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray selectedFiles; */
NS_IMETHODIMP nsFileView::GetSelectedFiles(nsIArray * *aSelectedFiles)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_FILEVIEW_CONTRACTID "@mozilla.org/filepicker/fileview;1"
#endif /* __gen_nsIFileView_h__ */
|