KHtml

xmlserializer.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2003 Apple Computer, Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef _XMLSERIALIZER_H_
21 #define _XMLSERIALIZER_H_
22 
23 #include "ecma/kjs_binding.h"
24 #include "ecma/kjs_dom.h"
25 #include "kio/jobclasses.h"
26 
27 namespace KJS
28 {
29 
30 class XMLSerializerConstructorImp : public JSObject
31 {
32 public:
33  XMLSerializerConstructorImp(ExecState *);
34  bool implementsConstruct() const override;
35  using KJS::JSObject::construct;
36  JSObject *construct(ExecState *exec, const List &args) override;
37 };
38 
39 class XMLSerializer : public DOMObject
40 {
41 public:
42  XMLSerializer(ExecState *);
43  bool toBoolean(ExecState *) const override
44  {
45  return true;
46  }
47  const ClassInfo *classInfo() const override
48  {
49  return &info;
50  }
51  static const ClassInfo info;
52  enum { SerializeToString };
53 
54 private:
55  friend class XMLSerializerProtoFunc;
56 };
57 
58 } // namespace
59 
60 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.