/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMStorageList.idl
 */

#ifndef __gen_nsIDOMStorageList_h__
#define __gen_nsIDOMStorageList_h__


#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDOMStorage; /* forward declaration */


/* starting interface:    nsIDOMStorageList */
#define NS_IDOMSTORAGELIST_IID_STR "f2166929-91b6-4372-8d5f-c366f47a5f54"

#define NS_IDOMSTORAGELIST_IID \
  {0xf2166929, 0x91b6, 0x4372, \
    { 0x8d, 0x5f, 0xc3, 0x66, 0xf4, 0x7a, 0x5f, 0x54 }}

class NS_NO_VTABLE nsIDOMStorageList : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGELIST_IID)

  /**
   * Returns a storage object for a particular domain.
   *
   * @param domain domain to retrieve
   * @returns a storage area for the given domain
   */
  /* nsIDOMStorage namedItem (in DOMString domain); */
  NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMSTORAGELIST \
  NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMSTORAGELIST(_to) \
  NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) { return _to NamedItem(domain, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMSTORAGELIST(_to) \
  NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(domain, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsDOMStorageList : public nsIDOMStorageList
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMSTORAGELIST

  nsDOMStorageList();

private:
  ~nsDOMStorageList();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMStorageList, nsIDOMStorageList)

nsDOMStorageList::nsDOMStorageList()
{
  /* member initializers and constructor code */
}

nsDOMStorageList::~nsDOMStorageList()
{
  /* destructor code */
}

/* nsIDOMStorage namedItem (in DOMString domain); */
NS_IMETHODIMP nsDOMStorageList::NamedItem(const nsAString & domain, nsIDOMStorage **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIDOMStorageList_h__ */
