LCOV - app.info - objdir/dist/include/nsIMutableArray.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIMutableArray.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/nsIMutableArray.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIMutableArray_h__
           6                 : #define __gen_nsIMutableArray_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsIArray_h__
          10                 : #include "nsIArray.h"
          11                 : #endif
          12                 :
          13                 : /* For IDL files that don't want to include root IDL files. */
          14                 : #ifndef NS_NO_VTABLE
          15                 : #define NS_NO_VTABLE
          16                 : #endif
          17                 :
          18                 : /* starting interface:    nsIMutableArray */
          19                 : #define NS_IMUTABLEARRAY_IID_STR "af059da0-c85b-40ec-af07-ae4bfdc192cc"
          20                 :
          21                 : #define NS_IMUTABLEARRAY_IID \
          22                 :   {0xaf059da0, 0xc85b, 0x40ec, \
          23                 :     { 0xaf, 0x07, 0xae, 0x4b, 0xfd, 0xc1, 0x92, 0xcc }}
          24                 :
          25            1619 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMutableArray : public nsIArray {
          26                 :  public:
          27                 :
          28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMUTABLEARRAY_IID)
          29                 :
          30                 :   /* void appendElement (in nsISupports element, in boolean weak); */
          31                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsISupports *element, bool weak) = 0;
          32                 :
          33                 :   /* void removeElementAt (in unsigned long index); */
          34                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRUint32 index) = 0;
          35                 :
          36                 :   /* void insertElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
          37                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsISupports *element, PRUint32 index, bool weak) = 0;
          38                 :
          39                 :   /* void replaceElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
          40                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceElementAt(nsISupports *element, PRUint32 index, bool weak) = 0;
          41                 :
          42                 :   /* void clear (); */
          43                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void) = 0;
          44                 :
          45                 : };
          46                 :
          47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMutableArray, NS_IMUTABLEARRAY_IID)
          48                 :
          49                 : /* Use this macro when declaring classes that implement this interface. */
          50                 : #define NS_DECL_NSIMUTABLEARRAY \
          51                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsISupports *element, bool weak); \
          52                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRUint32 index); \
          53                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsISupports *element, PRUint32 index, bool weak); \
          54                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceElementAt(nsISupports *element, PRUint32 index, bool weak); \
          55                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void);
          56                 :
          57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          58                 : #define NS_FORWARD_NSIMUTABLEARRAY(_to) \
          59                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsISupports *element, bool weak) { return _to AppendElement(element, weak); } \
          60                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRUint32 index) { return _to RemoveElementAt(index); } \
          61                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsISupports *element, PRUint32 index, bool weak) { return _to InsertElementAt(element, index, weak); } \
          62                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceElementAt(nsISupports *element, PRUint32 index, bool weak) { return _to ReplaceElementAt(element, index, weak); } \
          63                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void) { return _to Clear(); }
          64                 :
          65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          66                 : #define NS_FORWARD_SAFE_NSIMUTABLEARRAY(_to) \
          67                 :   NS_SCRIPTABLE NS_IMETHOD AppendElement(nsISupports *element, bool weak) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendElement(element, weak); } \
          68                 :   NS_SCRIPTABLE NS_IMETHOD RemoveElementAt(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementAt(index); } \
          69                 :   NS_SCRIPTABLE NS_IMETHOD InsertElementAt(nsISupports *element, PRUint32 index, bool weak) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAt(element, index, weak); } \
          70                 :   NS_SCRIPTABLE NS_IMETHOD ReplaceElementAt(nsISupports *element, PRUint32 index, bool weak) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceElementAt(element, index, weak); } \
          71                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); }
          72                 :
          73                 : #if 0
          74                 : /* Use the code below as a template for the implementation class for this interface. */
          75                 :
          76                 : /* Header file */
          77                 : class nsMutableArray : public nsIMutableArray
          78                 : {
          79                 : public:
          80                 :   NS_DECL_ISUPPORTS
          81                 :   NS_DECL_NSIMUTABLEARRAY
          82                 :
          83                 :   nsMutableArray();
          84                 :
          85                 : private:
          86                 :   ~nsMutableArray();
          87                 :
          88                 : protected:
          89                 :   /* additional members */
          90                 : };
          91                 :
          92                 : /* Implementation file */
          93                 : NS_IMPL_ISUPPORTS1(nsMutableArray, nsIMutableArray)
          94                 :
          95                 : nsMutableArray::nsMutableArray()
          96                 : {
          97                 :   /* member initializers and constructor code */
          98                 : }
          99                 :
         100                 : nsMutableArray::~nsMutableArray()
         101                 : {
         102                 :   /* destructor code */
         103                 : }
         104                 :
         105                 : /* void appendElement (in nsISupports element, in boolean weak); */
         106                 : NS_IMETHODIMP nsMutableArray::AppendElement(nsISupports *element, bool weak)
         107                 : {
         108                 :     return NS_ERROR_NOT_IMPLEMENTED;
         109                 : }
         110                 :
         111                 : /* void removeElementAt (in unsigned long index); */
         112                 : NS_IMETHODIMP nsMutableArray::RemoveElementAt(PRUint32 index)
         113                 : {
         114                 :     return NS_ERROR_NOT_IMPLEMENTED;
         115                 : }
         116                 :
         117                 : /* void insertElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
         118                 : NS_IMETHODIMP nsMutableArray::InsertElementAt(nsISupports *element, PRUint32 index, bool weak)
         119                 : {
         120                 :     return NS_ERROR_NOT_IMPLEMENTED;
         121                 : }
         122                 :
         123                 : /* void replaceElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
         124                 : NS_IMETHODIMP nsMutableArray::ReplaceElementAt(nsISupports *element, PRUint32 index, bool weak)
         125                 : {
         126                 :     return NS_ERROR_NOT_IMPLEMENTED;
         127                 : }
         128                 :
         129                 : /* void clear (); */
         130                 : NS_IMETHODIMP nsMutableArray::Clear()
         131                 : {
         132                 :     return NS_ERROR_NOT_IMPLEMENTED;
         133                 : }
         134                 :
         135                 : /* End of implementation class template. */
         136                 : #endif
         137                 :
         138                 :
         139                 : #endif /* __gen_nsIMutableArray_h__ */

Generated by: LCOV version 1.7