xmlserializer.h

00001 // -*- c-basic-offset: 2 -*-
00002 /*
00003  *  This file is part of the KDE libraries
00004  *  Copyright (C) 2003 Apple Computer, Inc.
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser General Public
00017  *  License along with this library; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #ifndef _XMLSERIALIZER_H_
00022 #define _XMLSERIALIZER_H_
00023 
00024 #include "ecma/kjs_binding.h"
00025 #include "ecma/kjs_dom.h"
00026 #include "misc/decoder.h"
00027 #include "kio/jobclasses.h"
00028 
00029 namespace KJS {
00030 
00031   class JSEventListener;
00032 
00033   class XMLSerializerConstructorImp : public ObjectImp {
00034   public:
00035     XMLSerializerConstructorImp(ExecState *);
00036     virtual bool implementsConstruct() const;
00037     virtual Object construct(ExecState *exec, const List &args);
00038   };
00039 
00040   class XMLSerializer : public DOMObject {
00041   public:
00042     XMLSerializer(ExecState *);
00043     virtual bool toBoolean(ExecState *) const { return true; }
00044     virtual const ClassInfo* classInfo() const { return &info; }
00045     static const ClassInfo info;
00046     enum { SerializeToString };
00047 
00048   private:
00049     friend class XMLSerializerProtoFunc;
00050   };
00051 
00052 } // namespace
00053 
00054 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys