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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/dom/interfaces/storage/nsIDOMStorageObsolete.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIDOMStorageObsolete_h__
           6                 : #define __gen_nsIDOMStorageObsolete_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_domstubs_h__
          10                 : #include "domstubs.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                 : class nsIDOMStorageItem; /* forward declaration */
          18                 :
          19                 :
          20                 : /* starting interface:    nsIDOMStorageObsolete */
          21                 : #define NS_IDOMSTORAGEOBSOLETE_IID_STR "18013cf9-b104-49cf-9484-c2a7a845457e"
          22                 :
          23                 : #define NS_IDOMSTORAGEOBSOLETE_IID \
          24                 :   {0x18013cf9, 0xb104, 0x49cf, \
          25                 :     { 0x94, 0x84, 0xc2, 0xa7, 0xa8, 0x45, 0x45, 0x7e }}
          26                 :
          27              20 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageObsolete : public nsISupports {
          28                 :  public:
          29                 :
          30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEOBSOLETE_IID)
          31                 :
          32                 :   /* readonly attribute unsigned long length; */
          33                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
          34                 :
          35                 :   /* DOMString key (in unsigned long index); */
          36                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
          37                 :
          38                 :   /* nsIDOMStorageItem getItem (in DOMString key); */
          39                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsIDOMStorageItem * *_retval NS_OUTPARAM) = 0;
          40                 :
          41                 :   /* void setItem (in DOMString key, in DOMString data); */
          42                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data) = 0;
          43                 :
          44                 :   /* void removeItem (in DOMString key); */
          45                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key) = 0;
          46                 :
          47                 : };
          48                 :
          49                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageObsolete, NS_IDOMSTORAGEOBSOLETE_IID)
          50                 :
          51                 : /* Use this macro when declaring classes that implement this interface. */
          52                 : #define NS_DECL_NSIDOMSTORAGEOBSOLETE \
          53                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
          54                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
          55                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsIDOMStorageItem * *_retval NS_OUTPARAM); \
          56                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data); \
          57                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key);
          58                 :
          59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          60                 : #define NS_FORWARD_NSIDOMSTORAGEOBSOLETE(_to) \
          61                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
          62                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to Key(index, _retval); } \
          63                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsIDOMStorageItem * *_retval NS_OUTPARAM) { return _to GetItem(key, _retval); } \
          64                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data) { return _to SetItem(key, data); } \
          65                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key) { return _to RemoveItem(key); }
          66                 :
          67                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          68                 : #define NS_FORWARD_SAFE_NSIDOMSTORAGEOBSOLETE(_to) \
          69                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
          70                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Key(index, _retval); } \
          71                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsIDOMStorageItem * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(key, _retval); } \
          72                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItem(key, data); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItem(key); }
          74                 :
          75                 : #if 0
          76                 : /* Use the code below as a template for the implementation class for this interface. */
          77                 :
          78                 : /* Header file */
          79                 : class nsDOMStorageObsolete : public nsIDOMStorageObsolete
          80                 : {
          81                 : public:
          82                 :   NS_DECL_ISUPPORTS
          83                 :   NS_DECL_NSIDOMSTORAGEOBSOLETE
          84                 :
          85                 :   nsDOMStorageObsolete();
          86                 :
          87                 : private:
          88                 :   ~nsDOMStorageObsolete();
          89                 :
          90                 : protected:
          91                 :   /* additional members */
          92                 : };
          93                 :
          94                 : /* Implementation file */
          95                 : NS_IMPL_ISUPPORTS1(nsDOMStorageObsolete, nsIDOMStorageObsolete)
          96                 :
          97                 : nsDOMStorageObsolete::nsDOMStorageObsolete()
          98                 : {
          99                 :   /* member initializers and constructor code */
         100                 : }
         101                 :
         102                 : nsDOMStorageObsolete::~nsDOMStorageObsolete()
         103                 : {
         104                 :   /* destructor code */
         105                 : }
         106                 :
         107                 : /* readonly attribute unsigned long length; */
         108                 : NS_IMETHODIMP nsDOMStorageObsolete::GetLength(PRUint32 *aLength)
         109                 : {
         110                 :     return NS_ERROR_NOT_IMPLEMENTED;
         111                 : }
         112                 :
         113                 : /* DOMString key (in unsigned long index); */
         114                 : NS_IMETHODIMP nsDOMStorageObsolete::Key(PRUint32 index, nsAString & _retval NS_OUTPARAM)
         115                 : {
         116                 :     return NS_ERROR_NOT_IMPLEMENTED;
         117                 : }
         118                 :
         119                 : /* nsIDOMStorageItem getItem (in DOMString key); */
         120                 : NS_IMETHODIMP nsDOMStorageObsolete::GetItem(const nsAString & key, nsIDOMStorageItem * *_retval NS_OUTPARAM)
         121                 : {
         122                 :     return NS_ERROR_NOT_IMPLEMENTED;
         123                 : }
         124                 :
         125                 : /* void setItem (in DOMString key, in DOMString data); */
         126                 : NS_IMETHODIMP nsDOMStorageObsolete::SetItem(const nsAString & key, const nsAString & data)
         127                 : {
         128                 :     return NS_ERROR_NOT_IMPLEMENTED;
         129                 : }
         130                 :
         131                 : /* void removeItem (in DOMString key); */
         132                 : NS_IMETHODIMP nsDOMStorageObsolete::RemoveItem(const nsAString & key)
         133                 : {
         134                 :     return NS_ERROR_NOT_IMPLEMENTED;
         135                 : }
         136                 :
         137                 : /* End of implementation class template. */
         138                 : #endif
         139                 :
         140                 :
         141                 : #endif /* __gen_nsIDOMStorageObsolete_h__ */

Generated by: LCOV version 1.7