• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

kjsembed

  • sources
  • kde-4.12
  • kdelibs
  • kjsembed
  • kjsembed
dom.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2005, 2006 Ian Reinhart Geiser <geiseri@kde.org>
3  Copyright (C) 2005, 2006 Matt Broadstone <mbroadst@gmail.com>
4  Copyright (C) 2005, 2006 Richard J. Moore <rich@kde.org>
5  Copyright (C) 2005, 2006 Erik L. Bunce <kde@bunce.us>
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 
24 #ifndef DOM_H
25 #define DOM_H
26 
27 class QDomNode;
28 class QDomDocument;
29 class QDomElement;
30 class QDomAttr;
31 class QDomDocumentType;
32 class QDomNodeList;
33 class QDomNamedNodeMap;
34 class QDomText;
35 
36 #include "value_binding.h"
37 #include "static_binding.h"
38 
39 namespace KJSEmbed
40 {
41  class DomNodeBinding : public ValueBinding
42  {
43  public:
44  DomNodeBinding( KJS::ExecState *exec, const QDomNode &value );
45  private:
46  virtual const KJS::ClassInfo* classInfo() const { return &info; }
47  static const KJS::ClassInfo info;
48  };
49 
50  class DomDocumentBinding : public ValueBinding
51  {
52  public:
53  DomDocumentBinding( KJS::ExecState *exec, const QDomDocument &value );
54  private:
55  virtual const KJS::ClassInfo* classInfo() const { return &info; }
56  static const KJS::ClassInfo info;
57  };
58 
59  class DomElementBinding : public ValueBinding
60  {
61  public:
62  DomElementBinding( KJS::ExecState *exec, const QDomElement &value );
63  private:
64  virtual const KJS::ClassInfo* classInfo() const { return &info; }
65  static const KJS::ClassInfo info;
66  };
67 
68  class DomAttrBinding : public ValueBinding
69  {
70  public:
71  DomAttrBinding( KJS::ExecState *exec, const QDomAttr &value );
72  private:
73  virtual const KJS::ClassInfo* classInfo() const { return &info; }
74  static const KJS::ClassInfo info;
75  };
76 
77  class DomDocumentTypeBinding : public ValueBinding
78  {
79  public:
80  DomDocumentTypeBinding( KJS::ExecState *exec, const QDomDocumentType &value );
81  private:
82  virtual const KJS::ClassInfo* classInfo() const { return &info; }
83  static const KJS::ClassInfo info;
84  };
85 
86  class DomNodeListBinding : public ValueBinding
87  {
88  public:
89  DomNodeListBinding( KJS::ExecState *exec, const QDomNodeList &value );
90  private:
91  virtual const KJS::ClassInfo* classInfo() const { return &info; }
92  static const KJS::ClassInfo info;
93  };
94 
95  class DomNamedNodeMapBinding : public ValueBinding
96  {
97  public:
98  DomNamedNodeMapBinding( KJS::ExecState *exec, const QDomNamedNodeMap &value );
99  private:
100  virtual const KJS::ClassInfo* classInfo() const { return &info; }
101  static const KJS::ClassInfo info;
102  };
103 
104  class DomTextBinding : public ValueBinding
105  {
106  public:
107  DomTextBinding( KJS::ExecState *exec, const QDomText &value );
108  private:
109  virtual const KJS::ClassInfo* classInfo() const { return &info; }
110  static const KJS::ClassInfo info;
111  };
112 
113  KJS_BINDING( DomNode )
114  KJS_BINDING( DomDocument ) // Done
115  KJS_BINDING( DomElement ) // Done
116  KJS_BINDING( DomAttr ) // Done
117  KJS_BINDING( DomDocumentType ) // Done
118  KJS_BINDING( DomNodeList ) // Done
119  KJS_BINDING( DomNamedNodeMap )
120  KJS_BINDING( DomText )
121 
122 }
123 #endif
124 //kate: indent-spaces on; indent-width 4; replace-tabs on; indent-mode cstyle;
KJSEmbed::DomDocumentBinding
Definition: dom.h:50
KJSEmbed::ValueBinding
Value binding implementation.
Definition: value_binding.h:103
KJSEmbed::DomAttrBinding::DomAttrBinding
DomAttrBinding(KJS::ExecState *exec, const QDomAttr &value)
Definition: dom.cpp:627
KJSEmbed::DomAttrBinding
Definition: dom.h:68
KJSEmbed::DomNodeListBinding::DomNodeListBinding
DomNodeListBinding(KJS::ExecState *exec, const QDomNodeList &value)
Definition: dom.cpp:675
KJSEmbed::DomElementBinding
Definition: dom.h:59
KJSEmbed::DomNamedNodeMapBinding::DomNamedNodeMapBinding
DomNamedNodeMapBinding(KJS::ExecState *exec, const QDomNamedNodeMap &value)
Definition: dom.cpp:762
KJSEmbed::DomDocumentBinding::DomDocumentBinding
DomDocumentBinding(KJS::ExecState *exec, const QDomDocument &value)
Definition: dom.cpp:345
KJSEmbed::DomNodeBinding
Definition: dom.h:41
KJSEmbed::DomNamedNodeMapBinding
Definition: dom.h:95
KJSEmbed::ValueBinding::value
T value() const
Returns the stored value.
Definition: value_binding.h:124
KJSEmbed::DomTextBinding
Definition: dom.h:104
KJSEmbed::DomNodeListBinding
Definition: dom.h:86
KJSEmbed::DomDocumentTypeBinding
Definition: dom.h:77
value_binding.h
static_binding.h
KJS_BINDING
#define KJS_BINDING(NAME)
Definition: binding_support.h:34
KJSEmbed::DomTextBinding::DomTextBinding
DomTextBinding(KJS::ExecState *exec, const QDomText &value)
Definition: dom.cpp:849
KJSEmbed::DomNodeBinding::DomNodeBinding
DomNodeBinding(KJS::ExecState *exec, const QDomNode &value)
Definition: dom.cpp:30
KJSEmbed::DomElementBinding::DomElementBinding
DomElementBinding(KJS::ExecState *exec, const QDomElement &value)
Definition: dom.cpp:483
KJSEmbed::DomDocumentTypeBinding::DomDocumentTypeBinding
DomDocumentTypeBinding(KJS::ExecState *exec, const QDomDocumentType &value)
Definition: dom.cpp:712
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal