/usr/include/thunderbird/nsISupportsArray.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISupportsArray.idl
*/
#ifndef __gen_nsISupportsArray_h__
#define __gen_nsISupportsArray_h__
#ifndef __gen_nsICollection_h__
#include "nsICollection.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIBidirectionalEnumerator;
class nsISupportsArray;
#define NS_SUPPORTSARRAY_CID \
{ /* bda17d50-0d6b-11d3-9331-00104ba0fd40 */ \
0xbda17d50, \
0x0d6b, \
0x11d3, \
{0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
#define NS_SUPPORTSARRAY_CONTRACTID "@mozilla.org/supports-array;1"
/* starting interface: nsISupportsArray */
#define NS_ISUPPORTSARRAY_IID_STR "241addc8-3608-4e73-8083-2fd6fa09eba2"
#define NS_ISUPPORTSARRAY_IID \
{0x241addc8, 0x3608, 0x4e73, \
{ 0x80, 0x83, 0x2f, 0xd6, 0xfa, 0x09, 0xeb, 0xa2 }}
class NS_NO_VTABLE nsISupportsArray : public nsICollection {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSARRAY_IID)
/* [notxpcom] boolean Equals ([const] in nsISupportsArray other); */
NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) = 0;
/* [notxpcom] long IndexOf ([const] in nsISupports aPossibleElement); */
NS_IMETHOD_(int32_t) IndexOf(const nsISupports *aPossibleElement) = 0;
/* [notxpcom] long IndexOfStartingAt ([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); */
NS_IMETHOD_(int32_t) IndexOfStartingAt(const nsISupports *aPossibleElement, uint32_t aStartIndex) = 0;
/* [notxpcom] long LastIndexOf ([const] in nsISupports aPossibleElement); */
NS_IMETHOD_(int32_t) LastIndexOf(const nsISupports *aPossibleElement) = 0;
/* long GetIndexOf (in nsISupports aPossibleElement); */
NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, int32_t *_retval) = 0;
/* long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex); */
NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, uint32_t aStartIndex, int32_t *_retval) = 0;
/* long GetLastIndexOf (in nsISupports aPossibleElement); */
NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, int32_t *_retval) = 0;
/* [notxpcom] boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex); */
NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, uint32_t aIndex) = 0;
/* [notxpcom] boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex); */
NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, uint32_t aIndex) = 0;
/* [notxpcom] boolean RemoveElementAt (in unsigned long aIndex); */
NS_IMETHOD_(bool) RemoveElementAt(uint32_t aIndex) = 0;
/* [notxpcom] boolean RemoveLastElement ([const] in nsISupports aElement); */
NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) = 0;
/* void DeleteLastElement (in nsISupports aElement); */
NS_IMETHOD DeleteLastElement(nsISupports *aElement) = 0;
/* void DeleteElementAt (in unsigned long aIndex); */
NS_IMETHOD DeleteElementAt(uint32_t aIndex) = 0;
/* [notxpcom] boolean AppendElements (in nsISupportsArray aElements); */
NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) = 0;
/* void Compact (); */
NS_IMETHOD Compact(void) = 0;
/* nsISupportsArray clone (); */
NS_IMETHOD Clone(nsISupportsArray * *_retval) = 0;
/* [notxpcom] boolean MoveElement (in long aFrom, in long aTo); */
NS_IMETHOD_(bool) MoveElement(int32_t aFrom, int32_t aTo) = 0;
/* [notxpcom] boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex); */
NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, uint32_t aIndex) = 0;
/* [notxpcom] boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount); */
NS_IMETHOD_(bool) RemoveElementsAt(uint32_t aIndex, uint32_t aCount) = 0;
/* [notxpcom] boolean SizeTo (in long aSize); */
NS_IMETHOD_(bool) SizeTo(int32_t aSize) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsArray, NS_ISUPPORTSARRAY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISUPPORTSARRAY \
NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) override; \
NS_IMETHOD_(int32_t) IndexOf(const nsISupports *aPossibleElement) override; \
NS_IMETHOD_(int32_t) IndexOfStartingAt(const nsISupports *aPossibleElement, uint32_t aStartIndex) override; \
NS_IMETHOD_(int32_t) LastIndexOf(const nsISupports *aPossibleElement) override; \
NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, int32_t *_retval) override; \
NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, uint32_t aStartIndex, int32_t *_retval) override; \
NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, int32_t *_retval) override; \
NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, uint32_t aIndex) override; \
NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, uint32_t aIndex) override; \
NS_IMETHOD_(bool) RemoveElementAt(uint32_t aIndex) override; \
NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) override; \
NS_IMETHOD DeleteLastElement(nsISupports *aElement) override; \
NS_IMETHOD DeleteElementAt(uint32_t aIndex) override; \
NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) override; \
NS_IMETHOD Compact(void) override; \
NS_IMETHOD Clone(nsISupportsArray * *_retval) override; \
NS_IMETHOD_(bool) MoveElement(int32_t aFrom, int32_t aTo) override; \
NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, uint32_t aIndex) override; \
NS_IMETHOD_(bool) RemoveElementsAt(uint32_t aIndex, uint32_t aCount) override; \
NS_IMETHOD_(bool) SizeTo(int32_t aSize) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISUPPORTSARRAY(_to) \
NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) override { return _to Equals(other); } \
NS_IMETHOD_(int32_t) IndexOf(const nsISupports *aPossibleElement) override { return _to IndexOf(aPossibleElement); } \
NS_IMETHOD_(int32_t) IndexOfStartingAt(const nsISupports *aPossibleElement, uint32_t aStartIndex) override { return _to IndexOfStartingAt(aPossibleElement, aStartIndex); } \
NS_IMETHOD_(int32_t) LastIndexOf(const nsISupports *aPossibleElement) override { return _to LastIndexOf(aPossibleElement); } \
NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, int32_t *_retval) override { return _to GetIndexOf(aPossibleElement, _retval); } \
NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, uint32_t aStartIndex, int32_t *_retval) override { return _to GetIndexOfStartingAt(aPossibleElement, aStartIndex, _retval); } \
NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, int32_t *_retval) override { return _to GetLastIndexOf(aPossibleElement, _retval); } \
NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, uint32_t aIndex) override { return _to InsertElementAt(aElement, aIndex); } \
NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, uint32_t aIndex) override { return _to ReplaceElementAt(aElement, aIndex); } \
NS_IMETHOD_(bool) RemoveElementAt(uint32_t aIndex) override { return _to RemoveElementAt(aIndex); } \
NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) override { return _to RemoveLastElement(aElement); } \
NS_IMETHOD DeleteLastElement(nsISupports *aElement) override { return _to DeleteLastElement(aElement); } \
NS_IMETHOD DeleteElementAt(uint32_t aIndex) override { return _to DeleteElementAt(aIndex); } \
NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) override { return _to AppendElements(aElements); } \
NS_IMETHOD Compact(void) override { return _to Compact(); } \
NS_IMETHOD Clone(nsISupportsArray * *_retval) override { return _to Clone(_retval); } \
NS_IMETHOD_(bool) MoveElement(int32_t aFrom, int32_t aTo) override { return _to MoveElement(aFrom, aTo); } \
NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, uint32_t aIndex) override { return _to InsertElementsAt(aOther, aIndex); } \
NS_IMETHOD_(bool) RemoveElementsAt(uint32_t aIndex, uint32_t aCount) override { return _to RemoveElementsAt(aIndex, aCount); } \
NS_IMETHOD_(bool) SizeTo(int32_t aSize) override { return _to SizeTo(aSize); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISUPPORTSARRAY(_to) \
NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) override; \
NS_IMETHOD_(int32_t) IndexOf(const nsISupports *aPossibleElement) override; \
NS_IMETHOD_(int32_t) IndexOfStartingAt(const nsISupports *aPossibleElement, uint32_t aStartIndex) override; \
NS_IMETHOD_(int32_t) LastIndexOf(const nsISupports *aPossibleElement) override; \
NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOf(aPossibleElement, _retval); } \
NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, uint32_t aStartIndex, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfStartingAt(aPossibleElement, aStartIndex, _retval); } \
NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastIndexOf(aPossibleElement, _retval); } \
NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, uint32_t aIndex) override; \
NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, uint32_t aIndex) override; \
NS_IMETHOD_(bool) RemoveElementAt(uint32_t aIndex) override; \
NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) override; \
NS_IMETHOD DeleteLastElement(nsISupports *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteLastElement(aElement); } \
NS_IMETHOD DeleteElementAt(uint32_t aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteElementAt(aIndex); } \
NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) override; \
NS_IMETHOD Compact(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Compact(); } \
NS_IMETHOD Clone(nsISupportsArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
NS_IMETHOD_(bool) MoveElement(int32_t aFrom, int32_t aTo) override; \
NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, uint32_t aIndex) override; \
NS_IMETHOD_(bool) RemoveElementsAt(uint32_t aIndex, uint32_t aCount) override; \
NS_IMETHOD_(bool) SizeTo(int32_t aSize) override;
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSupportsArray : public nsISupportsArray
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISUPPORTSARRAY
nsSupportsArray();
private:
~nsSupportsArray();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsSupportsArray, nsISupportsArray)
nsSupportsArray::nsSupportsArray()
{
/* member initializers and constructor code */
}
nsSupportsArray::~nsSupportsArray()
{
/* destructor code */
}
/* [notxpcom] boolean Equals ([const] in nsISupportsArray other); */
NS_IMETHODIMP_(bool) nsSupportsArray::Equals(const nsISupportsArray *other)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] long IndexOf ([const] in nsISupports aPossibleElement); */
NS_IMETHODIMP_(int32_t) nsSupportsArray::IndexOf(const nsISupports *aPossibleElement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] long IndexOfStartingAt ([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); */
NS_IMETHODIMP_(int32_t) nsSupportsArray::IndexOfStartingAt(const nsISupports *aPossibleElement, uint32_t aStartIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] long LastIndexOf ([const] in nsISupports aPossibleElement); */
NS_IMETHODIMP_(int32_t) nsSupportsArray::LastIndexOf(const nsISupports *aPossibleElement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long GetIndexOf (in nsISupports aPossibleElement); */
NS_IMETHODIMP nsSupportsArray::GetIndexOf(nsISupports *aPossibleElement, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex); */
NS_IMETHODIMP nsSupportsArray::GetIndexOfStartingAt(nsISupports *aPossibleElement, uint32_t aStartIndex, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long GetLastIndexOf (in nsISupports aPossibleElement); */
NS_IMETHODIMP nsSupportsArray::GetLastIndexOf(nsISupports *aPossibleElement, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex); */
NS_IMETHODIMP_(bool) nsSupportsArray::InsertElementAt(nsISupports *aElement, uint32_t aIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex); */
NS_IMETHODIMP_(bool) nsSupportsArray::ReplaceElementAt(nsISupports *aElement, uint32_t aIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean RemoveElementAt (in unsigned long aIndex); */
NS_IMETHODIMP_(bool) nsSupportsArray::RemoveElementAt(uint32_t aIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean RemoveLastElement ([const] in nsISupports aElement); */
NS_IMETHODIMP_(bool) nsSupportsArray::RemoveLastElement(const nsISupports *aElement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void DeleteLastElement (in nsISupports aElement); */
NS_IMETHODIMP nsSupportsArray::DeleteLastElement(nsISupports *aElement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void DeleteElementAt (in unsigned long aIndex); */
NS_IMETHODIMP nsSupportsArray::DeleteElementAt(uint32_t aIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean AppendElements (in nsISupportsArray aElements); */
NS_IMETHODIMP_(bool) nsSupportsArray::AppendElements(nsISupportsArray *aElements)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void Compact (); */
NS_IMETHODIMP nsSupportsArray::Compact()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupportsArray clone (); */
NS_IMETHODIMP nsSupportsArray::Clone(nsISupportsArray * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean MoveElement (in long aFrom, in long aTo); */
NS_IMETHODIMP_(bool) nsSupportsArray::MoveElement(int32_t aFrom, int32_t aTo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex); */
NS_IMETHODIMP_(bool) nsSupportsArray::InsertElementsAt(nsISupportsArray *aOther, uint32_t aIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount); */
NS_IMETHODIMP_(bool) nsSupportsArray::RemoveElementsAt(uint32_t aIndex, uint32_t aCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] boolean SizeTo (in long aSize); */
NS_IMETHODIMP_(bool) nsSupportsArray::SizeTo(int32_t aSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
// Construct and return a default implementation of nsISupportsArray:
extern nsresult
NS_NewISupportsArray(nsISupportsArray** aInstancePtrResult);
#endif /* __gen_nsISupportsArray_h__ */
|