winamp/Src/nprt_plugin/gecko/1.8/win/include/nsIDOMHTMLCollection.h

123 lines
3.7 KiB
C
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLCollection.idl
*/
#ifndef __gen_nsIDOMHTMLCollection_h__
#define __gen_nsIDOMHTMLCollection_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
/* starting interface: nsIDOMHTMLCollection */
#define NS_IDOMHTMLCOLLECTION_IID_STR "a6cf9083-15b3-11d2-932e-00805f8add32"
#define NS_IDOMHTMLCOLLECTION_IID \
{0xa6cf9083, 0x15b3, 0x11d2, \
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
class NS_NO_VTABLE nsIDOMHTMLCollection : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLCOLLECTION_IID)
/**
* The nsIDOMHTMLCollection interface is an interface to a collection
* of [X]HTML elements.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-HTML/
*
* @status FROZEN
*/
/* readonly attribute unsigned long length; */
NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
/* nsIDOMNode item (in unsigned long index); */
NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) = 0;
/* nsIDOMNode namedItem (in DOMString name); */
NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMHTMLCOLLECTION \
NS_IMETHOD GetLength(PRUint32 *aLength); \
NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval); \
NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMHTMLCOLLECTION(_to) \
NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return _to Item(index, _retval); } \
NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return _to NamedItem(name, _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_NSIDOMHTMLCOLLECTION(_to) \
NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
NS_IMETHOD Item(PRUint32 index, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
NS_IMETHOD NamedItem(const nsAString & name, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMHTMLCollection : public nsIDOMHTMLCollection
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMHTMLCOLLECTION
nsDOMHTMLCollection();
private:
~nsDOMHTMLCollection();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMHTMLCollection, nsIDOMHTMLCollection)
nsDOMHTMLCollection::nsDOMHTMLCollection()
{
/* member initializers and constructor code */
}
nsDOMHTMLCollection::~nsDOMHTMLCollection()
{
/* destructor code */
}
/* readonly attribute unsigned long length; */
NS_IMETHODIMP nsDOMHTMLCollection::GetLength(PRUint32 *aLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMNode item (in unsigned long index); */
NS_IMETHODIMP nsDOMHTMLCollection::Item(PRUint32 index, nsIDOMNode **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMNode namedItem (in DOMString name); */
NS_IMETHODIMP nsDOMHTMLCollection::NamedItem(const nsAString & name, nsIDOMNode **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMHTMLCollection_h__ */