1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMPluginArray.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMPluginArray_h__
6 : #define __gen_nsIDOMPluginArray_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: nsIDOMPluginArray */
19 : #define NS_IDOMPLUGINARRAY_IID_STR "f6134680-f28b-11d2-8360-c90899049c3c"
20 :
21 : #define NS_IDOMPLUGINARRAY_IID \
22 : {0xf6134680, 0xf28b, 0x11d2, \
23 : { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMPluginArray : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPLUGINARRAY_IID)
29 :
30 : /* readonly attribute unsigned long length; */
31 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
32 :
33 : /* nsIDOMPlugin item (in unsigned long index); */
34 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin * *_retval NS_OUTPARAM) = 0;
35 :
36 : /* nsIDOMPlugin namedItem (in DOMString name); */
37 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin * *_retval NS_OUTPARAM) = 0;
38 :
39 : /* void refresh ([optional] in boolean reloadDocuments); */
40 : NS_SCRIPTABLE NS_IMETHOD Refresh(bool reloadDocuments) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMPluginArray, NS_IDOMPLUGINARRAY_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIDOMPLUGINARRAY \
48 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
49 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin * *_retval NS_OUTPARAM); \
50 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin * *_retval NS_OUTPARAM); \
51 : NS_SCRIPTABLE NS_IMETHOD Refresh(bool reloadDocuments);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDOMPLUGINARRAY(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
56 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin * *_retval NS_OUTPARAM) { return _to Item(index, _retval); } \
57 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin * *_retval NS_OUTPARAM) { return _to NamedItem(name, _retval); } \
58 : NS_SCRIPTABLE NS_IMETHOD Refresh(bool reloadDocuments) { return _to Refresh(reloadDocuments); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIDOMPLUGINARRAY(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
63 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD Refresh(bool reloadDocuments) { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(reloadDocuments); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsDOMPluginArray : public nsIDOMPluginArray
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIDOMPLUGINARRAY
76 :
77 : nsDOMPluginArray();
78 :
79 : private:
80 : ~nsDOMPluginArray();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsDOMPluginArray, nsIDOMPluginArray)
88 :
89 : nsDOMPluginArray::nsDOMPluginArray()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsDOMPluginArray::~nsDOMPluginArray()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* readonly attribute unsigned long length; */
100 : NS_IMETHODIMP nsDOMPluginArray::GetLength(PRUint32 *aLength)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* nsIDOMPlugin item (in unsigned long index); */
106 : NS_IMETHODIMP nsDOMPluginArray::Item(PRUint32 index, nsIDOMPlugin * *_retval NS_OUTPARAM)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* nsIDOMPlugin namedItem (in DOMString name); */
112 : NS_IMETHODIMP nsDOMPluginArray::NamedItem(const nsAString & name, nsIDOMPlugin * *_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void refresh ([optional] in boolean reloadDocuments); */
118 : NS_IMETHODIMP nsDOMPluginArray::Refresh(bool reloadDocuments)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsIDOMPluginArray_h__ */
|