/gecko_api/include/nsIDOMStorageList.h
C Header | 99 lines | 49 code | 27 blank | 23 comment | 0 complexity | e3e75630e66c3983560fc7600f8cb4d5 MD5 | raw file
1/* 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/storage/nsIDOMStorageList.idl 3 */ 4 5#ifndef __gen_nsIDOMStorageList_h__ 6#define __gen_nsIDOMStorageList_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 17class nsIDOMStorage; /* forward declaration */ 18 19 20/* starting interface: nsIDOMStorageList */ 21#define NS_IDOMSTORAGELIST_IID_STR "f2166929-91b6-4372-8d5f-c366f47a5f54" 22 23#define NS_IDOMSTORAGELIST_IID \ 24 {0xf2166929, 0x91b6, 0x4372, \ 25 { 0x8d, 0x5f, 0xc3, 0x66, 0xf4, 0x7a, 0x5f, 0x54 }} 26 27class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageList : public nsISupports { 28 public: 29 30 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGELIST_IID) 31 32 /** 33 * Returns a storage object for a particular domain. 34 * 35 * @param domain domain to retrieve 36 * @returns a storage area for the given domain 37 */ 38 /* nsIDOMStorage namedItem (in DOMString domain); */ 39 NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) = 0; 40 41}; 42 43 NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageList, NS_IDOMSTORAGELIST_IID) 44 45/* Use this macro when declaring classes that implement this interface. */ 46#define NS_DECL_NSIDOMSTORAGELIST \ 47 NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval); 48 49/* Use this macro to declare functions that forward the behavior of this interface to another object. */ 50#define NS_FORWARD_NSIDOMSTORAGELIST(_to) \ 51 NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) { return _to NamedItem(domain, _retval); } 52 53/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ 54#define NS_FORWARD_SAFE_NSIDOMSTORAGELIST(_to) \ 55 NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(domain, _retval); } 56 57#if 0 58/* Use the code below as a template for the implementation class for this interface. */ 59 60/* Header file */ 61class nsDOMStorageList : public nsIDOMStorageList 62{ 63public: 64 NS_DECL_ISUPPORTS 65 NS_DECL_NSIDOMSTORAGELIST 66 67 nsDOMStorageList(); 68 69private: 70 ~nsDOMStorageList(); 71 72protected: 73 /* additional members */ 74}; 75 76/* Implementation file */ 77NS_IMPL_ISUPPORTS1(nsDOMStorageList, nsIDOMStorageList) 78 79nsDOMStorageList::nsDOMStorageList() 80{ 81 /* member initializers and constructor code */ 82} 83 84nsDOMStorageList::~nsDOMStorageList() 85{ 86 /* destructor code */ 87} 88 89/* nsIDOMStorage namedItem (in DOMString domain); */ 90NS_IMETHODIMP nsDOMStorageList::NamedItem(const nsAString & domain, nsIDOMStorage **_retval) 91{ 92 return NS_ERROR_NOT_IMPLEMENTED; 93} 94 95/* End of implementation class template. */ 96#endif 97 98 99#endif /* __gen_nsIDOMStorageList_h__ */