nsIDOMNamedNodeMap.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/core/nsIDOMNamedNodeMap.idl
  3. */
  4. #ifndef __gen_nsIDOMNamedNodeMap_h__
  5. #define __gen_nsIDOMNamedNodeMap_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. /* starting interface: nsIDOMNamedNodeMap */
  14. #define NS_IDOMNAMEDNODEMAP_IID_STR "a6cf907b-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMNAMEDNODEMAP_IID \
  16. {0xa6cf907b, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMNamedNodeMap : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNAMEDNODEMAP_IID)
  21. /**
  22. * Objects implementing the nsIDOMNamedNodeMap interface are used to
  23. * represent collections of nodes that can be accessed by name.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Core/
  27. *
  28. * @status FROZEN
  29. */
  30. /* nsIDOMNode getNamedItem (in DOMString name); */
  31. NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
  32. /* nsIDOMNode setNamedItem (in nsIDOMNode arg) raises (DOMException); */
  33. NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval) = 0;
  34. /* nsIDOMNode removeNamedItem (in DOMString name) raises (DOMException); */
  35. NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
  36. /* nsIDOMNode item (in unsigned long index); */
  37. NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
  38. /* readonly attribute unsigned long length; */
  39. NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  40. /* nsIDOMNode getNamedItemNS (in DOMString namespaceURI, in DOMString localName); */
  41. NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) = 0;
  42. /* nsIDOMNode setNamedItemNS (in nsIDOMNode arg) raises (DOMException); */
  43. NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval) = 0;
  44. /* nsIDOMNode removeNamedItemNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException); */
  45. NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) = 0;
  46. };
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIDOMNAMEDNODEMAP \
  49. NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval); \
  50. NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval); \
  51. NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval); \
  52. NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
  53. NS_IMETHOD GetLength(PRUint32 *aLength); \
  54. NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval); \
  55. NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval); \
  56. NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval);
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOMNAMEDNODEMAP(_to) \
  59. NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to GetNamedItem(name, _retval); } \
  60. NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval) { return _to SetNamedItem(arg, _retval); } \
  61. NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to RemoveNamedItem(name, _retval); } \
  62. NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
  63. NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  64. NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return _to GetNamedItemNS(namespaceURI, localName, _retval); } \
  65. NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval) { return _to SetNamedItemNS(arg, _retval); } \
  66. NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return _to RemoveNamedItemNS(namespaceURI, localName, _retval); }
  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_NSIDOMNAMEDNODEMAP(_to) \
  69. NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamedItem(name, _retval); } \
  70. NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNamedItem(arg, _retval); } \
  71. NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveNamedItem(name, _retval); } \
  72. NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  73. NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  74. NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamedItemNS(namespaceURI, localName, _retval); } \
  75. NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNamedItemNS(arg, _retval); } \
  76. NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveNamedItemNS(namespaceURI, localName, _retval); }
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79. /* Header file */
  80. class nsDOMNamedNodeMap : public nsIDOMNamedNodeMap
  81. {
  82. public:
  83. NS_DECL_ISUPPORTS
  84. NS_DECL_NSIDOMNAMEDNODEMAP
  85. nsDOMNamedNodeMap();
  86. private:
  87. ~nsDOMNamedNodeMap();
  88. protected:
  89. /* additional members */
  90. };
  91. /* Implementation file */
  92. NS_IMPL_ISUPPORTS1(nsDOMNamedNodeMap, nsIDOMNamedNodeMap)
  93. nsDOMNamedNodeMap::nsDOMNamedNodeMap()
  94. {
  95. /* member initializers and constructor code */
  96. }
  97. nsDOMNamedNodeMap::~nsDOMNamedNodeMap()
  98. {
  99. /* destructor code */
  100. }
  101. /* nsIDOMNode getNamedItem (in DOMString name); */
  102. NS_IMETHODIMP nsDOMNamedNodeMap::GetNamedItem(const nsAString & name, nsIDOMNode **_retval)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* nsIDOMNode setNamedItem (in nsIDOMNode arg) raises (DOMException); */
  107. NS_IMETHODIMP nsDOMNamedNodeMap::SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. /* nsIDOMNode removeNamedItem (in DOMString name) raises (DOMException); */
  112. NS_IMETHODIMP nsDOMNamedNodeMap::RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval)
  113. {
  114. return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116. /* nsIDOMNode item (in unsigned long index); */
  117. NS_IMETHODIMP nsDOMNamedNodeMap::Item(PRUint32 index, nsIDOMNode **_retval)
  118. {
  119. return NS_ERROR_NOT_IMPLEMENTED;
  120. }
  121. /* readonly attribute unsigned long length; */
  122. NS_IMETHODIMP nsDOMNamedNodeMap::GetLength(PRUint32 *aLength)
  123. {
  124. return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126. /* nsIDOMNode getNamedItemNS (in DOMString namespaceURI, in DOMString localName); */
  127. NS_IMETHODIMP nsDOMNamedNodeMap::GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval)
  128. {
  129. return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131. /* nsIDOMNode setNamedItemNS (in nsIDOMNode arg) raises (DOMException); */
  132. NS_IMETHODIMP nsDOMNamedNodeMap::SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval)
  133. {
  134. return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136. /* nsIDOMNode removeNamedItemNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException); */
  137. NS_IMETHODIMP nsDOMNamedNodeMap::RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval)
  138. {
  139. return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141. /* End of implementation class template. */
  142. #endif
  143. #endif /* __gen_nsIDOMNamedNodeMap_h__ */