1 | /* |
2 | * This file is part of the WebKit open source project. |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Library General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | * Library General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Library General Public License |
15 | * along with this library; see the file COPYING.LIB. If not, write to |
16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | * Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) |
21 | #error "Only <webkitdom/webkitdom.h> can be included directly." |
22 | #endif |
23 | |
24 | #ifndef WebKitDOMXPathResult_h |
25 | #define WebKitDOMXPathResult_h |
26 | |
27 | #include <glib-object.h> |
28 | #include <webkitdom/WebKitDOMObject.h> |
29 | #include <webkitdom/webkitdomdefines.h> |
30 | |
31 | G_BEGIN_DECLS |
32 | |
33 | #define WEBKIT_DOM_TYPE_XPATH_RESULT (webkit_dom_xpath_result_get_type()) |
34 | #define WEBKIT_DOM_XPATH_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_XPATH_RESULT, WebKitDOMXPathResult)) |
35 | #define WEBKIT_DOM_XPATH_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_XPATH_RESULT, WebKitDOMXPathResultClass) |
36 | #define WEBKIT_DOM_IS_XPATH_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_XPATH_RESULT)) |
37 | #define WEBKIT_DOM_IS_XPATH_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_XPATH_RESULT)) |
38 | #define WEBKIT_DOM_XPATH_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_XPATH_RESULT, WebKitDOMXPathResultClass)) |
39 | |
40 | #ifndef WEBKIT_DISABLE_DEPRECATED |
41 | |
42 | /** |
43 | * WEBKIT_DOM_XPATH_RESULT_ANY_TYPE: |
44 | * |
45 | * Deprecated: 2.22: Use JavaScriptCore API instead |
46 | */ |
47 | #define WEBKIT_DOM_XPATH_RESULT_ANY_TYPE 0 |
48 | |
49 | /** |
50 | * WEBKIT_DOM_XPATH_RESULT_NUMBER_TYPE: |
51 | * |
52 | * Deprecated: 2.22: Use JavaScriptCore API instead |
53 | */ |
54 | #define WEBKIT_DOM_XPATH_RESULT_NUMBER_TYPE 1 |
55 | |
56 | /** |
57 | * WEBKIT_DOM_XPATH_RESULT_STRING_TYPE: |
58 | * |
59 | * Deprecated: 2.22: Use JavaScriptCore API instead |
60 | */ |
61 | #define WEBKIT_DOM_XPATH_RESULT_STRING_TYPE 2 |
62 | |
63 | /** |
64 | * WEBKIT_DOM_XPATH_RESULT_BOOLEAN_TYPE: |
65 | * |
66 | * Deprecated: 2.22: Use JavaScriptCore API instead |
67 | */ |
68 | #define WEBKIT_DOM_XPATH_RESULT_BOOLEAN_TYPE 3 |
69 | |
70 | /** |
71 | * WEBKIT_DOM_XPATH_RESULT_UNORDERED_NODE_ITERATOR_TYPE: |
72 | * |
73 | * Deprecated: 2.22: Use JavaScriptCore API instead |
74 | */ |
75 | #define WEBKIT_DOM_XPATH_RESULT_UNORDERED_NODE_ITERATOR_TYPE 4 |
76 | |
77 | /** |
78 | * WEBKIT_DOM_XPATH_RESULT_ORDERED_NODE_ITERATOR_TYPE: |
79 | * |
80 | * Deprecated: 2.22: Use JavaScriptCore API instead |
81 | */ |
82 | #define WEBKIT_DOM_XPATH_RESULT_ORDERED_NODE_ITERATOR_TYPE 5 |
83 | |
84 | /** |
85 | * WEBKIT_DOM_XPATH_RESULT_UNORDERED_NODE_SNAPSHOT_TYPE: |
86 | * |
87 | * Deprecated: 2.22: Use JavaScriptCore API instead |
88 | */ |
89 | #define WEBKIT_DOM_XPATH_RESULT_UNORDERED_NODE_SNAPSHOT_TYPE 6 |
90 | |
91 | /** |
92 | * WEBKIT_DOM_XPATH_RESULT_ORDERED_NODE_SNAPSHOT_TYPE: |
93 | * |
94 | * Deprecated: 2.22: Use JavaScriptCore API instead |
95 | */ |
96 | #define WEBKIT_DOM_XPATH_RESULT_ORDERED_NODE_SNAPSHOT_TYPE 7 |
97 | |
98 | /** |
99 | * WEBKIT_DOM_XPATH_RESULT_ANY_UNORDERED_NODE_TYPE: |
100 | * |
101 | * Deprecated: 2.22: Use JavaScriptCore API instead |
102 | */ |
103 | #define WEBKIT_DOM_XPATH_RESULT_ANY_UNORDERED_NODE_TYPE 8 |
104 | |
105 | /** |
106 | * WEBKIT_DOM_XPATH_RESULT_FIRST_ORDERED_NODE_TYPE: |
107 | * |
108 | * Deprecated: 2.22: Use JavaScriptCore API instead |
109 | */ |
110 | #define WEBKIT_DOM_XPATH_RESULT_FIRST_ORDERED_NODE_TYPE 9 |
111 | |
112 | #endif /* WEBKIT_DISABLE_DEPRECATED */ |
113 | |
114 | struct _WebKitDOMXPathResult { |
115 | WebKitDOMObject parent_instance; |
116 | }; |
117 | |
118 | struct _WebKitDOMXPathResultClass { |
119 | WebKitDOMObjectClass parent_class; |
120 | }; |
121 | |
122 | WEBKIT_DEPRECATED GType |
123 | webkit_dom_xpath_result_get_type(void); |
124 | |
125 | /** |
126 | * webkit_dom_xpath_result_iterate_next: |
127 | * @self: A #WebKitDOMXPathResult |
128 | * @error: #GError |
129 | * |
130 | * Returns: (transfer none): A #WebKitDOMNode |
131 | * |
132 | * Deprecated: 2.22: Use JavaScriptCore API instead |
133 | **/ |
134 | WEBKIT_DEPRECATED WebKitDOMNode* |
135 | webkit_dom_xpath_result_iterate_next(WebKitDOMXPathResult* self, GError** error); |
136 | |
137 | /** |
138 | * webkit_dom_xpath_result_snapshot_item: |
139 | * @self: A #WebKitDOMXPathResult |
140 | * @index: A #gulong |
141 | * @error: #GError |
142 | * |
143 | * Returns: (transfer none): A #WebKitDOMNode |
144 | * |
145 | * Deprecated: 2.22: Use JavaScriptCore API instead |
146 | **/ |
147 | WEBKIT_DEPRECATED WebKitDOMNode* |
148 | webkit_dom_xpath_result_snapshot_item(WebKitDOMXPathResult* self, gulong index, GError** error); |
149 | |
150 | /** |
151 | * webkit_dom_xpath_result_get_result_type: |
152 | * @self: A #WebKitDOMXPathResult |
153 | * |
154 | * Returns: A #gushort |
155 | * |
156 | * Deprecated: 2.22: Use JavaScriptCore API instead |
157 | **/ |
158 | WEBKIT_DEPRECATED gushort |
159 | webkit_dom_xpath_result_get_result_type(WebKitDOMXPathResult* self); |
160 | |
161 | /** |
162 | * webkit_dom_xpath_result_get_number_value: |
163 | * @self: A #WebKitDOMXPathResult |
164 | * @error: #GError |
165 | * |
166 | * Returns: A #gdouble |
167 | * |
168 | * Deprecated: 2.22: Use JavaScriptCore API instead |
169 | **/ |
170 | WEBKIT_DEPRECATED gdouble |
171 | webkit_dom_xpath_result_get_number_value(WebKitDOMXPathResult* self, GError** error); |
172 | |
173 | /** |
174 | * webkit_dom_xpath_result_get_string_value: |
175 | * @self: A #WebKitDOMXPathResult |
176 | * @error: #GError |
177 | * |
178 | * Returns: A #gchar |
179 | * |
180 | * Deprecated: 2.22: Use JavaScriptCore API instead |
181 | **/ |
182 | WEBKIT_DEPRECATED gchar* |
183 | webkit_dom_xpath_result_get_string_value(WebKitDOMXPathResult* self, GError** error); |
184 | |
185 | /** |
186 | * webkit_dom_xpath_result_get_boolean_value: |
187 | * @self: A #WebKitDOMXPathResult |
188 | * @error: #GError |
189 | * |
190 | * Returns: A #gboolean |
191 | * |
192 | * Deprecated: 2.22: Use JavaScriptCore API instead |
193 | **/ |
194 | WEBKIT_DEPRECATED gboolean |
195 | webkit_dom_xpath_result_get_boolean_value(WebKitDOMXPathResult* self, GError** error); |
196 | |
197 | /** |
198 | * webkit_dom_xpath_result_get_single_node_value: |
199 | * @self: A #WebKitDOMXPathResult |
200 | * @error: #GError |
201 | * |
202 | * Returns: (transfer none): A #WebKitDOMNode |
203 | * |
204 | * Deprecated: 2.22: Use JavaScriptCore API instead |
205 | **/ |
206 | WEBKIT_DEPRECATED WebKitDOMNode* |
207 | webkit_dom_xpath_result_get_single_node_value(WebKitDOMXPathResult* self, GError** error); |
208 | |
209 | /** |
210 | * webkit_dom_xpath_result_get_invalid_iterator_state: |
211 | * @self: A #WebKitDOMXPathResult |
212 | * |
213 | * Returns: A #gboolean |
214 | * |
215 | * Deprecated: 2.22: Use JavaScriptCore API instead |
216 | **/ |
217 | WEBKIT_DEPRECATED gboolean |
218 | webkit_dom_xpath_result_get_invalid_iterator_state(WebKitDOMXPathResult* self); |
219 | |
220 | /** |
221 | * webkit_dom_xpath_result_get_snapshot_length: |
222 | * @self: A #WebKitDOMXPathResult |
223 | * @error: #GError |
224 | * |
225 | * Returns: A #gulong |
226 | * |
227 | * Deprecated: 2.22: Use JavaScriptCore API instead |
228 | **/ |
229 | WEBKIT_DEPRECATED gulong |
230 | webkit_dom_xpath_result_get_snapshot_length(WebKitDOMXPathResult* self, GError** error); |
231 | |
232 | G_END_DECLS |
233 | |
234 | #endif /* WebKitDOMXPathResult_h */ |
235 | |