LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDOMStorage.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/dom/interfaces/storage/nsIDOMStorage.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDOMStorage_h__
       6                 : #define __gen_nsIDOMStorage_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                 : 
      18                 : /* starting interface:    nsIDOMStorage */
      19                 : #define NS_IDOMSTORAGE_IID_STR "43e5edad-1e02-42c4-9d99-c3d9dee22a20"
      20                 : 
      21                 : #define NS_IDOMSTORAGE_IID \
      22                 :   {0x43e5edad, 0x1e02, 0x42c4, \
      23                 :     { 0x9d, 0x99, 0xc3, 0xd9, 0xde, 0xe2, 0x2a, 0x20 }}
      24                 : 
      25              20 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorage : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGE_IID)
      29                 : 
      30                 :   /* readonly attribute unsigned long length; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
      32                 : 
      33                 :   /* DOMString key (in unsigned long index); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* DOMString getItem (in DOMString key); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsAString & _retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* void setItem (in DOMString key, in DOMString data); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data) = 0;
      41                 : 
      42                 :   /* void removeItem (in DOMString key); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key) = 0;
      44                 : 
      45                 :   /* void clear (); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void) = 0;
      47                 : 
      48                 : };
      49                 : 
      50                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorage, NS_IDOMSTORAGE_IID)
      51                 : 
      52                 : /* Use this macro when declaring classes that implement this interface. */
      53                 : #define NS_DECL_NSIDOMSTORAGE \
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
      55                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsAString & _retval NS_OUTPARAM); \
      57                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data); \
      58                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void); 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62                 : #define NS_FORWARD_NSIDOMSTORAGE(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to Key(index, _retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsAString & _retval NS_OUTPARAM) { return _to GetItem(key, _retval); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data) { return _to SetItem(key, data); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key) { return _to RemoveItem(key); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void) { return _to Clear(); } 
      69                 : 
      70                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71                 : #define NS_FORWARD_SAFE_NSIDOMSTORAGE(_to) \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD Key(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Key(index, _retval); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetItem(const nsAString & key, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(key, _retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD SetItem(const nsAString & key, const nsAString & data) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItem(key, data); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD RemoveItem(const nsAString & key) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItem(key); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } 
      78                 : 
      79                 : #if 0
      80                 : /* Use the code below as a template for the implementation class for this interface. */
      81                 : 
      82                 : /* Header file */
      83                 : class nsDOMStorage : public nsIDOMStorage
      84                 : {
      85                 : public:
      86                 :   NS_DECL_ISUPPORTS
      87                 :   NS_DECL_NSIDOMSTORAGE
      88                 : 
      89                 :   nsDOMStorage();
      90                 : 
      91                 : private:
      92                 :   ~nsDOMStorage();
      93                 : 
      94                 : protected:
      95                 :   /* additional members */
      96                 : };
      97                 : 
      98                 : /* Implementation file */
      99                 : NS_IMPL_ISUPPORTS1(nsDOMStorage, nsIDOMStorage)
     100                 : 
     101                 : nsDOMStorage::nsDOMStorage()
     102                 : {
     103                 :   /* member initializers and constructor code */
     104                 : }
     105                 : 
     106                 : nsDOMStorage::~nsDOMStorage()
     107                 : {
     108                 :   /* destructor code */
     109                 : }
     110                 : 
     111                 : /* readonly attribute unsigned long length; */
     112                 : NS_IMETHODIMP nsDOMStorage::GetLength(PRUint32 *aLength)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* DOMString key (in unsigned long index); */
     118                 : NS_IMETHODIMP nsDOMStorage::Key(PRUint32 index, nsAString & _retval NS_OUTPARAM)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* DOMString getItem (in DOMString key); */
     124                 : NS_IMETHODIMP nsDOMStorage::GetItem(const nsAString & key, nsAString & _retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* void setItem (in DOMString key, in DOMString data); */
     130                 : NS_IMETHODIMP nsDOMStorage::SetItem(const nsAString & key, const nsAString & data)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* void removeItem (in DOMString key); */
     136                 : NS_IMETHODIMP nsDOMStorage::RemoveItem(const nsAString & key)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* void clear (); */
     142                 : NS_IMETHODIMP nsDOMStorage::Clear()
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* End of implementation class template. */
     148                 : #endif
     149                 : 
     150                 : 
     151                 : #endif /* __gen_nsIDOMStorage_h__ */

Generated by: LCOV version 1.7