LCOV - code coverage report
Current view: directory - objdir/dist/include - nsISupportsArray.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/nsISupportsArray.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsISupportsArray_h__
       6                 : #define __gen_nsISupportsArray_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsICollection_h__
      14                 : #include "nsICollection.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : 
      22                 : class nsIBidirectionalEnumerator;
      23                 : class nsISupportsArray;
      24                 :  
      25                 : #define NS_SUPPORTSARRAY_CID                         \
      26                 : { /* bda17d50-0d6b-11d3-9331-00104ba0fd40 */         \
      27                 :     0xbda17d50,                                      \
      28                 :     0x0d6b,                                          \
      29                 :     0x11d3,                                          \
      30                 :     {0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
      31                 : }
      32                 : #define NS_SUPPORTSARRAY_CONTRACTID "@mozilla.org/supports-array;1"
      33                 : #define NS_SUPPORTSARRAY_CLASSNAME "Supports Array"
      34                 :  
      35                 : // Enumerator callback function. Return PR_FALSE to stop
      36                 : typedef bool (*nsISupportsArrayEnumFunc)(nsISupports* aElement, void *aData);
      37                 :  
      38                 : nsresult
      39                 : NS_NewArrayEnumerator(nsISimpleEnumerator* *result NS_OUTPARAM,
      40                 :                       nsISupportsArray* array);
      41                 : 
      42                 : /* starting interface:    nsISupportsArray */
      43                 : #define NS_ISUPPORTSARRAY_IID_STR "791eafa0-b9e6-11d1-8031-006008159b5a"
      44                 : 
      45                 : #define NS_ISUPPORTSARRAY_IID \
      46                 :   {0x791eafa0, 0xb9e6, 0x11d1, \
      47                 :     { 0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a }}
      48                 : 
      49            1748 : class NS_NO_VTABLE NS_SCRIPTABLE nsISupportsArray : public nsICollection {
      50                 :  public: 
      51                 : 
      52                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSARRAY_IID)
      53                 : 
      54                 :   /* [notxpcom] boolean Equals ([const] in nsISupportsArray other); */
      55                 :   NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) = 0;
      56                 : 
      57                 :   /* [notxpcom] nsISupports ElementAt (in unsigned long aIndex); */
      58                 :   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex) = 0;
      59                 : 
      60                 :   /* [notxpcom] long IndexOf ([const] in nsISupports aPossibleElement); */
      61                 :   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement) = 0;
      62                 : 
      63                 :   /* [notxpcom] long IndexOfStartingAt ([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); */
      64                 :   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex) = 0;
      65                 : 
      66                 :   /* [notxpcom] long LastIndexOf ([const] in nsISupports aPossibleElement); */
      67                 :   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement) = 0;
      68                 : 
      69                 :   /* long GetIndexOf (in nsISupports aPossibleElement); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM) = 0;
      71                 : 
      72                 :   /* long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
      74                 : 
      75                 :   /* long GetLastIndexOf (in nsISupports aPossibleElement); */
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM) = 0;
      77                 : 
      78                 :   /* [notxpcom] boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex); */
      79                 :   NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex) = 0;
      80                 : 
      81                 :   /* [notxpcom] boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex); */
      82                 :   NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex) = 0;
      83                 : 
      84                 :   /* [notxpcom] boolean RemoveElementAt (in unsigned long aIndex); */
      85                 :   NS_IMETHOD_(bool) RemoveElementAt(PRUint32 aIndex) = 0;
      86                 : 
      87                 :   /* [notxpcom] boolean RemoveLastElement ([const] in nsISupports aElement); */
      88                 :   NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) = 0;
      89                 : 
      90                 :   /* void DeleteLastElement (in nsISupports aElement); */
      91                 :   NS_SCRIPTABLE NS_IMETHOD DeleteLastElement(nsISupports *aElement) = 0;
      92                 : 
      93                 :   /* void DeleteElementAt (in unsigned long aIndex); */
      94                 :   NS_SCRIPTABLE NS_IMETHOD DeleteElementAt(PRUint32 aIndex) = 0;
      95                 : 
      96                 :   /* [notxpcom] boolean AppendElements (in nsISupportsArray aElements); */
      97                 :   NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) = 0;
      98                 : 
      99                 :   /* void Compact (); */
     100                 :   NS_SCRIPTABLE NS_IMETHOD Compact(void) = 0;
     101                 : 
     102                 :   /* [noscript,notxpcom] boolean EnumerateForwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
     103                 :   NS_IMETHOD_(bool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void *aData) = 0;
     104                 : 
     105                 :   /* [noscript,notxpcom] boolean EnumerateBackwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
     106                 :   NS_IMETHOD_(bool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void *aData) = 0;
     107                 : 
     108                 :   /* nsISupportsArray clone (); */
     109                 :   NS_SCRIPTABLE NS_IMETHOD Clone(nsISupportsArray * *_retval NS_OUTPARAM) = 0;
     110                 : 
     111                 :   /* [notxpcom] boolean MoveElement (in long aFrom, in long aTo); */
     112                 :   NS_IMETHOD_(bool) MoveElement(PRInt32 aFrom, PRInt32 aTo) = 0;
     113                 : 
     114                 :   /* [notxpcom] boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex); */
     115                 :   NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex) = 0;
     116                 : 
     117                 :   /* [notxpcom] boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount); */
     118                 :   NS_IMETHOD_(bool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount) = 0;
     119                 : 
     120                 :   /* [notxpcom] boolean SizeTo (in long aSize); */
     121                 :   NS_IMETHOD_(bool) SizeTo(PRInt32 aSize) = 0;
     122                 : 
     123                 : };
     124                 : 
     125                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsArray, NS_ISUPPORTSARRAY_IID)
     126                 : 
     127                 : /* Use this macro when declaring classes that implement this interface. */
     128                 : #define NS_DECL_NSISUPPORTSARRAY \
     129                 :   NS_IMETHOD_(bool) Equals(const nsISupportsArray *other); \
     130                 :   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex); \
     131                 :   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement); \
     132                 :   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex); \
     133                 :   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement); \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM); \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval NS_OUTPARAM); \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM); \
     137                 :   NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex); \
     138                 :   NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex); \
     139                 :   NS_IMETHOD_(bool) RemoveElementAt(PRUint32 aIndex); \
     140                 :   NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement); \
     141                 :   NS_SCRIPTABLE NS_IMETHOD DeleteLastElement(nsISupports *aElement); \
     142                 :   NS_SCRIPTABLE NS_IMETHOD DeleteElementAt(PRUint32 aIndex); \
     143                 :   NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements); \
     144                 :   NS_SCRIPTABLE NS_IMETHOD Compact(void); \
     145                 :   NS_IMETHOD_(bool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void *aData); \
     146                 :   NS_IMETHOD_(bool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void *aData); \
     147                 :   NS_SCRIPTABLE NS_IMETHOD Clone(nsISupportsArray * *_retval NS_OUTPARAM); \
     148                 :   NS_IMETHOD_(bool) MoveElement(PRInt32 aFrom, PRInt32 aTo); \
     149                 :   NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex); \
     150                 :   NS_IMETHOD_(bool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount); \
     151                 :   NS_IMETHOD_(bool) SizeTo(PRInt32 aSize); 
     152                 : 
     153                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     154                 : #define NS_FORWARD_NSISUPPORTSARRAY(_to) \
     155                 :   NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) { return _to Equals(other); } \
     156                 :   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex) { return _to ElementAt(aIndex); } \
     157                 :   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement) { return _to IndexOf(aPossibleElement); } \
     158                 :   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex) { return _to IndexOfStartingAt(aPossibleElement, aStartIndex); } \
     159                 :   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement) { return _to LastIndexOf(aPossibleElement); } \
     160                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM) { return _to GetIndexOf(aPossibleElement, _retval); } \
     161                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetIndexOfStartingAt(aPossibleElement, aStartIndex, _retval); } \
     162                 :   NS_SCRIPTABLE NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM) { return _to GetLastIndexOf(aPossibleElement, _retval); } \
     163                 :   NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex) { return _to InsertElementAt(aElement, aIndex); } \
     164                 :   NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex) { return _to ReplaceElementAt(aElement, aIndex); } \
     165                 :   NS_IMETHOD_(bool) RemoveElementAt(PRUint32 aIndex) { return _to RemoveElementAt(aIndex); } \
     166                 :   NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) { return _to RemoveLastElement(aElement); } \
     167                 :   NS_SCRIPTABLE NS_IMETHOD DeleteLastElement(nsISupports *aElement) { return _to DeleteLastElement(aElement); } \
     168                 :   NS_SCRIPTABLE NS_IMETHOD DeleteElementAt(PRUint32 aIndex) { return _to DeleteElementAt(aIndex); } \
     169                 :   NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) { return _to AppendElements(aElements); } \
     170                 :   NS_SCRIPTABLE NS_IMETHOD Compact(void) { return _to Compact(); } \
     171                 :   NS_IMETHOD_(bool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void *aData) { return _to EnumerateForwards(aFunc, aData); } \
     172                 :   NS_IMETHOD_(bool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void *aData) { return _to EnumerateBackwards(aFunc, aData); } \
     173                 :   NS_SCRIPTABLE NS_IMETHOD Clone(nsISupportsArray * *_retval NS_OUTPARAM) { return _to Clone(_retval); } \
     174                 :   NS_IMETHOD_(bool) MoveElement(PRInt32 aFrom, PRInt32 aTo) { return _to MoveElement(aFrom, aTo); } \
     175                 :   NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex) { return _to InsertElementsAt(aOther, aIndex); } \
     176                 :   NS_IMETHOD_(bool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount) { return _to RemoveElementsAt(aIndex, aCount); } \
     177                 :   NS_IMETHOD_(bool) SizeTo(PRInt32 aSize) { return _to SizeTo(aSize); } 
     178                 : 
     179                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     180                 : #define NS_FORWARD_SAFE_NSISUPPORTSARRAY(_to) \
     181                 :   NS_IMETHOD_(bool) Equals(const nsISupportsArray *other) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other); } \
     182                 :   NS_IMETHOD_(nsISupports *) ElementAt(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ElementAt(aIndex); } \
     183                 :   NS_IMETHOD_(PRInt32) IndexOf(const nsISupports *aPossibleElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOf(aPossibleElement); } \
     184                 :   NS_IMETHOD_(PRInt32) IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->IndexOfStartingAt(aPossibleElement, aStartIndex); } \
     185                 :   NS_IMETHOD_(PRInt32) LastIndexOf(const nsISupports *aPossibleElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->LastIndexOf(aPossibleElement); } \
     186                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOf(aPossibleElement, _retval); } \
     187                 :   NS_SCRIPTABLE NS_IMETHOD GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfStartingAt(aPossibleElement, aStartIndex, _retval); } \
     188                 :   NS_SCRIPTABLE NS_IMETHOD GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastIndexOf(aPossibleElement, _retval); } \
     189                 :   NS_IMETHOD_(bool) InsertElementAt(nsISupports *aElement, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAt(aElement, aIndex); } \
     190                 :   NS_IMETHOD_(bool) ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceElementAt(aElement, aIndex); } \
     191                 :   NS_IMETHOD_(bool) RemoveElementAt(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementAt(aIndex); } \
     192                 :   NS_IMETHOD_(bool) RemoveLastElement(const nsISupports *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveLastElement(aElement); } \
     193                 :   NS_SCRIPTABLE NS_IMETHOD DeleteLastElement(nsISupports *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteLastElement(aElement); } \
     194                 :   NS_SCRIPTABLE NS_IMETHOD DeleteElementAt(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteElementAt(aIndex); } \
     195                 :   NS_IMETHOD_(bool) AppendElements(nsISupportsArray *aElements) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendElements(aElements); } \
     196                 :   NS_SCRIPTABLE NS_IMETHOD Compact(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Compact(); } \
     197                 :   NS_IMETHOD_(bool) EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateForwards(aFunc, aData); } \
     198                 :   NS_IMETHOD_(bool) EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateBackwards(aFunc, aData); } \
     199                 :   NS_SCRIPTABLE NS_IMETHOD Clone(nsISupportsArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
     200                 :   NS_IMETHOD_(bool) MoveElement(PRInt32 aFrom, PRInt32 aTo) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveElement(aFrom, aTo); } \
     201                 :   NS_IMETHOD_(bool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementsAt(aOther, aIndex); } \
     202                 :   NS_IMETHOD_(bool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementsAt(aIndex, aCount); } \
     203                 :   NS_IMETHOD_(bool) SizeTo(PRInt32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeTo(aSize); } 
     204                 : 
     205                 : #if 0
     206                 : /* Use the code below as a template for the implementation class for this interface. */
     207                 : 
     208                 : /* Header file */
     209                 : class nsSupportsArray : public nsISupportsArray
     210                 : {
     211                 : public:
     212                 :   NS_DECL_ISUPPORTS
     213                 :   NS_DECL_NSISUPPORTSARRAY
     214                 : 
     215                 :   nsSupportsArray();
     216                 : 
     217                 : private:
     218                 :   ~nsSupportsArray();
     219                 : 
     220                 : protected:
     221                 :   /* additional members */
     222                 : };
     223                 : 
     224                 : /* Implementation file */
     225                 : NS_IMPL_ISUPPORTS1(nsSupportsArray, nsISupportsArray)
     226                 : 
     227                 : nsSupportsArray::nsSupportsArray()
     228                 : {
     229                 :   /* member initializers and constructor code */
     230                 : }
     231                 : 
     232                 : nsSupportsArray::~nsSupportsArray()
     233                 : {
     234                 :   /* destructor code */
     235                 : }
     236                 : 
     237                 : /* [notxpcom] boolean Equals ([const] in nsISupportsArray other); */
     238                 : NS_IMETHODIMP_(bool) nsSupportsArray::Equals(const nsISupportsArray *other)
     239                 : {
     240                 :     return NS_ERROR_NOT_IMPLEMENTED;
     241                 : }
     242                 : 
     243                 : /* [notxpcom] nsISupports ElementAt (in unsigned long aIndex); */
     244                 : NS_IMETHODIMP_(nsISupports *) nsSupportsArray::ElementAt(PRUint32 aIndex)
     245                 : {
     246                 :     return NS_ERROR_NOT_IMPLEMENTED;
     247                 : }
     248                 : 
     249                 : /* [notxpcom] long IndexOf ([const] in nsISupports aPossibleElement); */
     250                 : NS_IMETHODIMP_(PRInt32) nsSupportsArray::IndexOf(const nsISupports *aPossibleElement)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : 
     255                 : /* [notxpcom] long IndexOfStartingAt ([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); */
     256                 : NS_IMETHODIMP_(PRInt32) nsSupportsArray::IndexOfStartingAt(const nsISupports *aPossibleElement, PRUint32 aStartIndex)
     257                 : {
     258                 :     return NS_ERROR_NOT_IMPLEMENTED;
     259                 : }
     260                 : 
     261                 : /* [notxpcom] long LastIndexOf ([const] in nsISupports aPossibleElement); */
     262                 : NS_IMETHODIMP_(PRInt32) nsSupportsArray::LastIndexOf(const nsISupports *aPossibleElement)
     263                 : {
     264                 :     return NS_ERROR_NOT_IMPLEMENTED;
     265                 : }
     266                 : 
     267                 : /* long GetIndexOf (in nsISupports aPossibleElement); */
     268                 : NS_IMETHODIMP nsSupportsArray::GetIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM)
     269                 : {
     270                 :     return NS_ERROR_NOT_IMPLEMENTED;
     271                 : }
     272                 : 
     273                 : /* long GetIndexOfStartingAt (in nsISupports aPossibleElement, in unsigned long aStartIndex); */
     274                 : NS_IMETHODIMP nsSupportsArray::GetIndexOfStartingAt(nsISupports *aPossibleElement, PRUint32 aStartIndex, PRInt32 *_retval NS_OUTPARAM)
     275                 : {
     276                 :     return NS_ERROR_NOT_IMPLEMENTED;
     277                 : }
     278                 : 
     279                 : /* long GetLastIndexOf (in nsISupports aPossibleElement); */
     280                 : NS_IMETHODIMP nsSupportsArray::GetLastIndexOf(nsISupports *aPossibleElement, PRInt32 *_retval NS_OUTPARAM)
     281                 : {
     282                 :     return NS_ERROR_NOT_IMPLEMENTED;
     283                 : }
     284                 : 
     285                 : /* [notxpcom] boolean InsertElementAt (in nsISupports aElement, in unsigned long aIndex); */
     286                 : NS_IMETHODIMP_(bool) nsSupportsArray::InsertElementAt(nsISupports *aElement, PRUint32 aIndex)
     287                 : {
     288                 :     return NS_ERROR_NOT_IMPLEMENTED;
     289                 : }
     290                 : 
     291                 : /* [notxpcom] boolean ReplaceElementAt (in nsISupports aElement, in unsigned long aIndex); */
     292                 : NS_IMETHODIMP_(bool) nsSupportsArray::ReplaceElementAt(nsISupports *aElement, PRUint32 aIndex)
     293                 : {
     294                 :     return NS_ERROR_NOT_IMPLEMENTED;
     295                 : }
     296                 : 
     297                 : /* [notxpcom] boolean RemoveElementAt (in unsigned long aIndex); */
     298                 : NS_IMETHODIMP_(bool) nsSupportsArray::RemoveElementAt(PRUint32 aIndex)
     299                 : {
     300                 :     return NS_ERROR_NOT_IMPLEMENTED;
     301                 : }
     302                 : 
     303                 : /* [notxpcom] boolean RemoveLastElement ([const] in nsISupports aElement); */
     304                 : NS_IMETHODIMP_(bool) nsSupportsArray::RemoveLastElement(const nsISupports *aElement)
     305                 : {
     306                 :     return NS_ERROR_NOT_IMPLEMENTED;
     307                 : }
     308                 : 
     309                 : /* void DeleteLastElement (in nsISupports aElement); */
     310                 : NS_IMETHODIMP nsSupportsArray::DeleteLastElement(nsISupports *aElement)
     311                 : {
     312                 :     return NS_ERROR_NOT_IMPLEMENTED;
     313                 : }
     314                 : 
     315                 : /* void DeleteElementAt (in unsigned long aIndex); */
     316                 : NS_IMETHODIMP nsSupportsArray::DeleteElementAt(PRUint32 aIndex)
     317                 : {
     318                 :     return NS_ERROR_NOT_IMPLEMENTED;
     319                 : }
     320                 : 
     321                 : /* [notxpcom] boolean AppendElements (in nsISupportsArray aElements); */
     322                 : NS_IMETHODIMP_(bool) nsSupportsArray::AppendElements(nsISupportsArray *aElements)
     323                 : {
     324                 :     return NS_ERROR_NOT_IMPLEMENTED;
     325                 : }
     326                 : 
     327                 : /* void Compact (); */
     328                 : NS_IMETHODIMP nsSupportsArray::Compact()
     329                 : {
     330                 :     return NS_ERROR_NOT_IMPLEMENTED;
     331                 : }
     332                 : 
     333                 : /* [noscript,notxpcom] boolean EnumerateForwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
     334                 : NS_IMETHODIMP_(bool) nsSupportsArray::EnumerateForwards(nsISupportsArrayEnumFunc aFunc, void *aData)
     335                 : {
     336                 :     return NS_ERROR_NOT_IMPLEMENTED;
     337                 : }
     338                 : 
     339                 : /* [noscript,notxpcom] boolean EnumerateBackwards (in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); */
     340                 : NS_IMETHODIMP_(bool) nsSupportsArray::EnumerateBackwards(nsISupportsArrayEnumFunc aFunc, void *aData)
     341                 : {
     342                 :     return NS_ERROR_NOT_IMPLEMENTED;
     343                 : }
     344                 : 
     345                 : /* nsISupportsArray clone (); */
     346                 : NS_IMETHODIMP nsSupportsArray::Clone(nsISupportsArray * *_retval NS_OUTPARAM)
     347                 : {
     348                 :     return NS_ERROR_NOT_IMPLEMENTED;
     349                 : }
     350                 : 
     351                 : /* [notxpcom] boolean MoveElement (in long aFrom, in long aTo); */
     352                 : NS_IMETHODIMP_(bool) nsSupportsArray::MoveElement(PRInt32 aFrom, PRInt32 aTo)
     353                 : {
     354                 :     return NS_ERROR_NOT_IMPLEMENTED;
     355                 : }
     356                 : 
     357                 : /* [notxpcom] boolean InsertElementsAt (in nsISupportsArray aOther, in unsigned long aIndex); */
     358                 : NS_IMETHODIMP_(bool) nsSupportsArray::InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex)
     359                 : {
     360                 :     return NS_ERROR_NOT_IMPLEMENTED;
     361                 : }
     362                 : 
     363                 : /* [notxpcom] boolean RemoveElementsAt (in unsigned long aIndex, in unsigned long aCount); */
     364                 : NS_IMETHODIMP_(bool) nsSupportsArray::RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount)
     365                 : {
     366                 :     return NS_ERROR_NOT_IMPLEMENTED;
     367                 : }
     368                 : 
     369                 : /* [notxpcom] boolean SizeTo (in long aSize); */
     370                 : NS_IMETHODIMP_(bool) nsSupportsArray::SizeTo(PRInt32 aSize)
     371                 : {
     372                 :     return NS_ERROR_NOT_IMPLEMENTED;
     373                 : }
     374                 : 
     375                 : /* End of implementation class template. */
     376                 : #endif
     377                 : 
     378                 : 
     379                 : // Construct and return a default implementation of nsISupportsArray:
     380                 : extern nsresult
     381                 : NS_NewISupportsArray(nsISupportsArray** aInstancePtrResult);
     382                 : // Construct and return a default implementation of an enumerator for nsISupportsArrays:
     383                 : extern nsresult
     384                 : NS_NewISupportsArrayEnumerator(nsISupportsArray* array,
     385                 :                                nsIBidirectionalEnumerator* *aInstancePtrResult);
     386                 : 
     387                 : #endif /* __gen_nsISupportsArray_h__ */

Generated by: LCOV version 1.7