PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 6ms RepoModel.GetById 34ms app.codeStats 0ms

/gecko_api/include/nsIDOMNamedNodeMap.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 184 lines | 104 code | 40 blank | 40 comment | 0 complexity | 8f984dee8b9371d6b310952b5f5382b8 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/core/nsIDOMNamedNodeMap.idl
  3 */
  4
  5#ifndef __gen_nsIDOMNamedNodeMap_h__
  6#define __gen_nsIDOMNamedNodeMap_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:    nsIDOMNamedNodeMap */
 19#define NS_IDOMNAMEDNODEMAP_IID_STR "a6cf907b-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMNAMEDNODEMAP_IID \
 22  {0xa6cf907b, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMNamedNodeMap : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMNAMEDNODEMAP_IID)
 29
 30  /**
 31 * Objects implementing the nsIDOMNamedNodeMap interface are used to 
 32 * represent collections of nodes that can be accessed by name.
 33 *
 34 * For more information on this interface please see 
 35 * http://www.w3.org/TR/DOM-Level-2-Core/
 36 *
 37 * @status FROZEN
 38 */
 39  /* nsIDOMNode getNamedItem (in DOMString name); */
 40  NS_SCRIPTABLE NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
 41
 42  /* nsIDOMNode setNamedItem (in nsIDOMNode arg)  raises (DOMException); */
 43  NS_SCRIPTABLE NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval) = 0;
 44
 45  /* nsIDOMNode removeNamedItem (in DOMString name)  raises (DOMException); */
 46  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
 47
 48  /* nsIDOMNode item (in unsigned long index); */
 49  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
 50
 51  /* readonly attribute unsigned long length; */
 52  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 53
 54  /* nsIDOMNode getNamedItemNS (in DOMString namespaceURI, in DOMString localName); */
 55  NS_SCRIPTABLE NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) = 0;
 56
 57  /* nsIDOMNode setNamedItemNS (in nsIDOMNode arg)  raises (DOMException); */
 58  NS_SCRIPTABLE NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval) = 0;
 59
 60  /* nsIDOMNode removeNamedItemNS (in DOMString namespaceURI, in DOMString localName)  raises (DOMException); */
 61  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) = 0;
 62
 63};
 64
 65  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMNamedNodeMap, NS_IDOMNAMEDNODEMAP_IID)
 66
 67/* Use this macro when declaring classes that implement this interface. */
 68#define NS_DECL_NSIDOMNAMEDNODEMAP \
 69  NS_SCRIPTABLE NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval); \
 70  NS_SCRIPTABLE NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval); \
 71  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval); \
 72  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
 73  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 74  NS_SCRIPTABLE NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval); \
 75  NS_SCRIPTABLE NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval); \
 76  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval); 
 77
 78/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 79#define NS_FORWARD_NSIDOMNAMEDNODEMAP(_to) \
 80  NS_SCRIPTABLE NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to GetNamedItem(name, _retval); } \
 81  NS_SCRIPTABLE NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval) { return _to SetNamedItem(arg, _retval); } \
 82  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to RemoveNamedItem(name, _retval); } \
 83  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
 84  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 85  NS_SCRIPTABLE NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return _to GetNamedItemNS(namespaceURI, localName, _retval); } \
 86  NS_SCRIPTABLE NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval) { return _to SetNamedItemNS(arg, _retval); } \
 87  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return _to RemoveNamedItemNS(namespaceURI, localName, _retval); } 
 88
 89/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 90#define NS_FORWARD_SAFE_NSIDOMNAMEDNODEMAP(_to) \
 91  NS_SCRIPTABLE NS_IMETHOD GetNamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamedItem(name, _retval); } \
 92  NS_SCRIPTABLE NS_IMETHOD SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNamedItem(arg, _retval); } \
 93  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveNamedItem(name, _retval); } \
 94  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
 95  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 96  NS_SCRIPTABLE NS_IMETHOD GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamedItemNS(namespaceURI, localName, _retval); } \
 97  NS_SCRIPTABLE NS_IMETHOD SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNamedItemNS(arg, _retval); } \
 98  NS_SCRIPTABLE NS_IMETHOD RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveNamedItemNS(namespaceURI, localName, _retval); } 
 99
100#if 0
101/* Use the code below as a template for the implementation class for this interface. */
102
103/* Header file */
104class nsDOMNamedNodeMap : public nsIDOMNamedNodeMap
105{
106public:
107  NS_DECL_ISUPPORTS
108  NS_DECL_NSIDOMNAMEDNODEMAP
109
110  nsDOMNamedNodeMap();
111
112private:
113  ~nsDOMNamedNodeMap();
114
115protected:
116  /* additional members */
117};
118
119/* Implementation file */
120NS_IMPL_ISUPPORTS1(nsDOMNamedNodeMap, nsIDOMNamedNodeMap)
121
122nsDOMNamedNodeMap::nsDOMNamedNodeMap()
123{
124  /* member initializers and constructor code */
125}
126
127nsDOMNamedNodeMap::~nsDOMNamedNodeMap()
128{
129  /* destructor code */
130}
131
132/* nsIDOMNode getNamedItem (in DOMString name); */
133NS_IMETHODIMP nsDOMNamedNodeMap::GetNamedItem(const nsAString & name, nsIDOMNode **_retval)
134{
135    return NS_ERROR_NOT_IMPLEMENTED;
136}
137
138/* nsIDOMNode setNamedItem (in nsIDOMNode arg)  raises (DOMException); */
139NS_IMETHODIMP nsDOMNamedNodeMap::SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval)
140{
141    return NS_ERROR_NOT_IMPLEMENTED;
142}
143
144/* nsIDOMNode removeNamedItem (in DOMString name)  raises (DOMException); */
145NS_IMETHODIMP nsDOMNamedNodeMap::RemoveNamedItem(const nsAString & name, nsIDOMNode **_retval)
146{
147    return NS_ERROR_NOT_IMPLEMENTED;
148}
149
150/* nsIDOMNode item (in unsigned long index); */
151NS_IMETHODIMP nsDOMNamedNodeMap::Item(PRUint32 index, nsIDOMNode **_retval)
152{
153    return NS_ERROR_NOT_IMPLEMENTED;
154}
155
156/* readonly attribute unsigned long length; */
157NS_IMETHODIMP nsDOMNamedNodeMap::GetLength(PRUint32 *aLength)
158{
159    return NS_ERROR_NOT_IMPLEMENTED;
160}
161
162/* nsIDOMNode getNamedItemNS (in DOMString namespaceURI, in DOMString localName); */
163NS_IMETHODIMP nsDOMNamedNodeMap::GetNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval)
164{
165    return NS_ERROR_NOT_IMPLEMENTED;
166}
167
168/* nsIDOMNode setNamedItemNS (in nsIDOMNode arg)  raises (DOMException); */
169NS_IMETHODIMP nsDOMNamedNodeMap::SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval)
170{
171    return NS_ERROR_NOT_IMPLEMENTED;
172}
173
174/* nsIDOMNode removeNamedItemNS (in DOMString namespaceURI, in DOMString localName)  raises (DOMException); */
175NS_IMETHODIMP nsDOMNamedNodeMap::RemoveNamedItemNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMNode **_retval)
176{
177    return NS_ERROR_NOT_IMPLEMENTED;
178}
179
180/* End of implementation class template. */
181#endif
182
183
184#endif /* __gen_nsIDOMNamedNodeMap_h__ */