/gecko_api/include/nsIDOMStorageList.h

http://firefox-mac-pdf.googlecode.com/ · 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. #ifndef __gen_nsIDOMStorageList_h__
  5. #define __gen_nsIDOMStorageList_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. class nsIDOMStorage; /* forward declaration */
  14. /* starting interface: nsIDOMStorageList */
  15. #define NS_IDOMSTORAGELIST_IID_STR "f2166929-91b6-4372-8d5f-c366f47a5f54"
  16. #define NS_IDOMSTORAGELIST_IID \
  17. {0xf2166929, 0x91b6, 0x4372, \
  18. { 0x8d, 0x5f, 0xc3, 0x66, 0xf4, 0x7a, 0x5f, 0x54 }}
  19. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMStorageList : public nsISupports {
  20. public:
  21. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGELIST_IID)
  22. /**
  23. * Returns a storage object for a particular domain.
  24. *
  25. * @param domain domain to retrieve
  26. * @returns a storage area for the given domain
  27. */
  28. /* nsIDOMStorage namedItem (in DOMString domain); */
  29. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) = 0;
  30. };
  31. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageList, NS_IDOMSTORAGELIST_IID)
  32. /* Use this macro when declaring classes that implement this interface. */
  33. #define NS_DECL_NSIDOMSTORAGELIST \
  34. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval);
  35. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  36. #define NS_FORWARD_NSIDOMSTORAGELIST(_to) \
  37. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) { return _to NamedItem(domain, _retval); }
  38. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  39. #define NS_FORWARD_SAFE_NSIDOMSTORAGELIST(_to) \
  40. NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & domain, nsIDOMStorage **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(domain, _retval); }
  41. #if 0
  42. /* Use the code below as a template for the implementation class for this interface. */
  43. /* Header file */
  44. class nsDOMStorageList : public nsIDOMStorageList
  45. {
  46. public:
  47. NS_DECL_ISUPPORTS
  48. NS_DECL_NSIDOMSTORAGELIST
  49. nsDOMStorageList();
  50. private:
  51. ~nsDOMStorageList();
  52. protected:
  53. /* additional members */
  54. };
  55. /* Implementation file */
  56. NS_IMPL_ISUPPORTS1(nsDOMStorageList, nsIDOMStorageList)
  57. nsDOMStorageList::nsDOMStorageList()
  58. {
  59. /* member initializers and constructor code */
  60. }
  61. nsDOMStorageList::~nsDOMStorageList()
  62. {
  63. /* destructor code */
  64. }
  65. /* nsIDOMStorage namedItem (in DOMString domain); */
  66. NS_IMETHODIMP nsDOMStorageList::NamedItem(const nsAString & domain, nsIDOMStorage **_retval)
  67. {
  68. return NS_ERROR_NOT_IMPLEMENTED;
  69. }
  70. /* End of implementation class template. */
  71. #endif
  72. #endif /* __gen_nsIDOMStorageList_h__ */