1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/core/nsIDOMAttr.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMAttr_h__
6 : #define __gen_nsIDOMAttr_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMNode_h__
10 : #include "nsIDOMNode.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: nsIDOMAttr */
19 : #define NS_IDOMATTR_IID_STR "03da4bc9-1b9a-41dc-a1a4-32414d48d704"
20 :
21 : #define NS_IDOMATTR_IID \
22 : {0x03da4bc9, 0x1b9a, 0x41dc, \
23 : { 0xa1, 0xa4, 0x32, 0x41, 0x4d, 0x48, 0xd7, 0x04 }}
24 :
25 996 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMAttr : public nsIDOMNode {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMATTR_IID)
29 :
30 : /* readonly attribute DOMString name; */
31 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
32 :
33 : /* readonly attribute boolean specified; */
34 : NS_SCRIPTABLE NS_IMETHOD GetSpecified(bool *aSpecified) = 0;
35 :
36 : /* attribute DOMString value; */
37 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
38 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
39 :
40 : /* readonly attribute nsIDOMElement ownerElement; */
41 : NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) = 0;
42 :
43 : /* readonly attribute boolean isId; */
44 : NS_SCRIPTABLE NS_IMETHOD GetIsId(bool *aIsId) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMAttr, NS_IDOMATTR_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIDOMATTR \
52 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
53 : NS_SCRIPTABLE NS_IMETHOD GetSpecified(bool *aSpecified); \
54 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
55 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
56 : NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement); \
57 : NS_SCRIPTABLE NS_IMETHOD GetIsId(bool *aIsId);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIDOMATTR(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetSpecified(bool *aSpecified) { return _to GetSpecified(aSpecified); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
64 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return _to GetOwnerElement(aOwnerElement); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetIsId(bool *aIsId) { return _to GetIsId(aIsId); }
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
69 : #define NS_FORWARD_SAFE_NSIDOMATTR(_to) \
70 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetSpecified(bool *aSpecified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpecified(aSpecified); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
73 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerElement(aOwnerElement); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetIsId(bool *aIsId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsId(aIsId); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class nsDOMAttr : public nsIDOMAttr
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSIDOMATTR
86 :
87 : nsDOMAttr();
88 :
89 : private:
90 : ~nsDOMAttr();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS1(nsDOMAttr, nsIDOMAttr)
98 :
99 : nsDOMAttr::nsDOMAttr()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsDOMAttr::~nsDOMAttr()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* readonly attribute DOMString name; */
110 : NS_IMETHODIMP nsDOMAttr::GetName(nsAString & aName)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* readonly attribute boolean specified; */
116 : NS_IMETHODIMP nsDOMAttr::GetSpecified(bool *aSpecified)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* attribute DOMString value; */
122 : NS_IMETHODIMP nsDOMAttr::GetValue(nsAString & aValue)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 : NS_IMETHODIMP nsDOMAttr::SetValue(const nsAString & aValue)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* readonly attribute nsIDOMElement ownerElement; */
132 : NS_IMETHODIMP nsDOMAttr::GetOwnerElement(nsIDOMElement * *aOwnerElement)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute boolean isId; */
138 : NS_IMETHODIMP nsDOMAttr::GetIsId(bool *aIsId)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* End of implementation class template. */
144 : #endif
145 :
146 :
147 : #endif /* __gen_nsIDOMAttr_h__ */
|