Warning, file /frameworks/khtml/src/ecma/xmlserializer.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  This file is part of the KDE libraries
0003  *  Copyright (C) 2003 Apple Computer, Inc.
0004  *
0005  *  This library is free software; you can redistribute it and/or
0006  *  modify it under the terms of the GNU Lesser General Public
0007  *  License as published by the Free Software Foundation; either
0008  *  version 2 of the License, or (at your option) any later version.
0009  *
0010  *  This library is distributed in the hope that it will be useful,
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  *  Lesser General Public License for more details.
0014  *
0015  *  You should have received a copy of the GNU Lesser General Public
0016  *  License along with this library; if not, write to the Free Software
0017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0018  */
0019 
0020 #ifndef _XMLSERIALIZER_H_
0021 #define _XMLSERIALIZER_H_
0022 
0023 #include "ecma/kjs_binding.h"
0024 #include "ecma/kjs_dom.h"
0025 #include "kio/jobclasses.h"
0026 
0027 namespace KJS
0028 {
0029 
0030 class XMLSerializerConstructorImp : public JSObject
0031 {
0032 public:
0033     XMLSerializerConstructorImp(ExecState *);
0034     bool implementsConstruct() const override;
0035     using KJS::JSObject::construct;
0036     JSObject *construct(ExecState *exec, const List &args) override;
0037 };
0038 
0039 class XMLSerializer : public DOMObject
0040 {
0041 public:
0042     XMLSerializer(ExecState *);
0043     bool toBoolean(ExecState *) const override
0044     {
0045         return true;
0046     }
0047     const ClassInfo *classInfo() const override
0048     {
0049         return &info;
0050     }
0051     static const ClassInfo info;
0052     enum { SerializeToString };
0053 
0054 private:
0055     friend class XMLSerializerProtoFunc;
0056 };
0057 
0058 } // namespace
0059 
0060 #endif