Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 "7db491e8-a3a3-4432-ad67-e6c33e24ac6d"
20 :
21 : #define NS_IDOMATTR_IID \
22 : {0x7db491e8, 0xa3a3, 0x4432, \
23 : { 0xad, 0x67, 0xe6, 0xc3, 0x3e, 0x24, 0xac, 0x6d }}
24 :
25 0 : class NS_NO_VTABLE nsIDOMAttr : public nsIDOMNode {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMATTR_IID)
29 :
30 : /* readonly attribute DOMString name; */
31 : NS_IMETHOD GetName(nsAString & aName) = 0;
32 :
33 : /* readonly attribute boolean specified; */
34 : NS_IMETHOD GetSpecified(bool *aSpecified) = 0;
35 :
36 : /* attribute DOMString value; */
37 : NS_IMETHOD GetValue(nsAString & aValue) = 0;
38 : NS_IMETHOD SetValue(const nsAString & aValue) = 0;
39 :
40 : /* readonly attribute nsIDOMElement ownerElement; */
41 : NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) = 0;
42 :
43 : /* readonly attribute boolean isId; */
44 : 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_IMETHOD GetName(nsAString & aName) override; \
53 : NS_IMETHOD GetSpecified(bool *aSpecified) override; \
54 : NS_IMETHOD GetValue(nsAString & aValue) override; \
55 : NS_IMETHOD SetValue(const nsAString & aValue) override; \
56 : NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) override; \
57 : NS_IMETHOD GetIsId(bool *aIsId) override;
58 :
59 : /* Use this macro when declaring the members of this interface when the
60 : class doesn't implement the interface. This is useful for forwarding. */
61 : #define NS_DECL_NON_VIRTUAL_NSIDOMATTR \
62 : nsresult GetName(nsAString & aName); \
63 : nsresult GetSpecified(bool *aSpecified); \
64 : nsresult GetValue(nsAString & aValue); \
65 : nsresult SetValue(const nsAString & aValue); \
66 : nsresult GetOwnerElement(nsIDOMElement * *aOwnerElement); \
67 : nsresult GetIsId(bool *aIsId);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIDOMATTR(_to) \
71 : NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
72 : NS_IMETHOD GetSpecified(bool *aSpecified) override { return _to GetSpecified(aSpecified); } \
73 : NS_IMETHOD GetValue(nsAString & aValue) override { return _to GetValue(aValue); } \
74 : NS_IMETHOD SetValue(const nsAString & aValue) override { return _to SetValue(aValue); } \
75 : NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) override { return _to GetOwnerElement(aOwnerElement); } \
76 : NS_IMETHOD GetIsId(bool *aIsId) override { return _to GetIsId(aIsId); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSIDOMATTR(_to) \
80 : NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
81 : NS_IMETHOD GetSpecified(bool *aSpecified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpecified(aSpecified); } \
82 : NS_IMETHOD GetValue(nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
83 : NS_IMETHOD SetValue(const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
84 : NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerElement(aOwnerElement); } \
85 : NS_IMETHOD GetIsId(bool *aIsId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsId(aIsId); }
86 :
87 : #if 0
88 : /* Use the code below as a template for the implementation class for this interface. */
89 :
90 : /* Header file */
91 : class nsDOMAttr : public nsIDOMAttr
92 : {
93 : public:
94 : NS_DECL_ISUPPORTS
95 : NS_DECL_NSIDOMATTR
96 :
97 : nsDOMAttr();
98 :
99 : private:
100 : ~nsDOMAttr();
101 :
102 : protected:
103 : /* additional members */
104 : };
105 :
106 : /* Implementation file */
107 : NS_IMPL_ISUPPORTS(nsDOMAttr, nsIDOMAttr)
108 :
109 : nsDOMAttr::nsDOMAttr()
110 : {
111 : /* member initializers and constructor code */
112 : }
113 :
114 : nsDOMAttr::~nsDOMAttr()
115 : {
116 : /* destructor code */
117 : }
118 :
119 : /* readonly attribute DOMString name; */
120 : NS_IMETHODIMP nsDOMAttr::GetName(nsAString & aName)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute boolean specified; */
126 : NS_IMETHODIMP nsDOMAttr::GetSpecified(bool *aSpecified)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* attribute DOMString value; */
132 : NS_IMETHODIMP nsDOMAttr::GetValue(nsAString & aValue)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 : NS_IMETHODIMP nsDOMAttr::SetValue(const nsAString & aValue)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* readonly attribute nsIDOMElement ownerElement; */
142 : NS_IMETHODIMP nsDOMAttr::GetOwnerElement(nsIDOMElement * *aOwnerElement)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* readonly attribute boolean isId; */
148 : NS_IMETHODIMP nsDOMAttr::GetIsId(bool *aIsId)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* End of implementation class template. */
154 : #endif
155 :
156 :
157 : #endif /* __gen_nsIDOMAttr_h__ */
|