KJsEmbed

dom.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2005, 2006 Ian Reinhart Geiser <[email protected]>
3  Copyright (C) 2005, 2006 Matt Broadstone <[email protected]>
4  Copyright (C) 2005, 2006 Richard J. Moore <[email protected]>
5  Copyright (C) 2005, 2006 Erik L. Bunce <[email protected]>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef DOM_H
24 #define DOM_H
25 
26 class QDomNode;
27 class QDomDocument;
28 class QDomElement;
29 class QDomAttr;
30 class QDomDocumentType;
31 class QDomNodeList;
32 class QDomNamedNodeMap;
33 class QDomText;
34 
35 #include "value_binding.h"
36 #include "static_binding.h"
37 
38 namespace KJSEmbed
39 {
40 class DomNodeBinding : public ValueBinding
41 {
42 public:
43  DomNodeBinding(KJS::ExecState *exec, const QDomNode &value);
44 private:
45  const KJS::ClassInfo *classInfo() const override
46  {
47  return &info;
48  }
49  static const KJS::ClassInfo info;
50 };
51 
52 class DomDocumentBinding : public ValueBinding
53 {
54 public:
55  DomDocumentBinding(KJS::ExecState *exec, const QDomDocument &value);
56 private:
57  const KJS::ClassInfo *classInfo() const override
58  {
59  return &info;
60  }
61  static const KJS::ClassInfo info;
62 };
63 
64 class DomElementBinding : public ValueBinding
65 {
66 public:
67  DomElementBinding(KJS::ExecState *exec, const QDomElement &value);
68 private:
69  const KJS::ClassInfo *classInfo() const override
70  {
71  return &info;
72  }
73  static const KJS::ClassInfo info;
74 };
75 
76 class DomAttrBinding : public ValueBinding
77 {
78 public:
79  DomAttrBinding(KJS::ExecState *exec, const QDomAttr &value);
80 private:
81  const KJS::ClassInfo *classInfo() const override
82  {
83  return &info;
84  }
85  static const KJS::ClassInfo info;
86 };
87 
88 class DomDocumentTypeBinding : public ValueBinding
89 {
90 public:
91  DomDocumentTypeBinding(KJS::ExecState *exec, const QDomDocumentType &value);
92 private:
93  const KJS::ClassInfo *classInfo() const override
94  {
95  return &info;
96  }
97  static const KJS::ClassInfo info;
98 };
99 
100 class DomNodeListBinding : public ValueBinding
101 {
102 public:
103  DomNodeListBinding(KJS::ExecState *exec, const QDomNodeList &value);
104 private:
105  const KJS::ClassInfo *classInfo() const override
106  {
107  return &info;
108  }
109  static const KJS::ClassInfo info;
110 };
111 
112 class DomNamedNodeMapBinding : public ValueBinding
113 {
114 public:
115  DomNamedNodeMapBinding(KJS::ExecState *exec, const QDomNamedNodeMap &value);
116 private:
117  const KJS::ClassInfo *classInfo() const override
118  {
119  return &info;
120  }
121  static const KJS::ClassInfo info;
122 };
123 
124 class DomTextBinding : public ValueBinding
125 {
126 public:
127  DomTextBinding(KJS::ExecState *exec, const QDomText &value);
128 private:
129  const KJS::ClassInfo *classInfo() const override
130  {
131  return &info;
132  }
133  static const KJS::ClassInfo info;
134 };
135 
136 KJS_BINDING(DomNode)
137 KJS_BINDING(DomDocument) // Done
138 KJS_BINDING(DomElement) // Done
139 KJS_BINDING(DomAttr) // Done
140 KJS_BINDING(DomDocumentType) // Done
141 KJS_BINDING(DomNodeList) // Done
142 KJS_BINDING(DomNamedNodeMap)
143 KJS_BINDING(DomText)
144 
145 }
146 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 10 2023 03:59:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.