From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjsembed/tools/doxygen2cons_h.xsl | 79 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 kjsembed/tools/doxygen2cons_h.xsl (limited to 'kjsembed/tools/doxygen2cons_h.xsl') diff --git a/kjsembed/tools/doxygen2cons_h.xsl b/kjsembed/tools/doxygen2cons_h.xsl new file mode 100644 index 00000000..8140d52e --- /dev/null +++ b/kjsembed/tools/doxygen2cons_h.xsl @@ -0,0 +1,79 @@ + + + + + + + + +#ifndef KJSEMBED__H +#define KJSEMBED__H + +#include <kjs/interpreter.h> +#include <kjs/object.h> + +#include <kjsembed/jsobjectproxy_imp.h> + +class ; + +/** + * Namespace containing the KJSEmbed library. + */ +namespace KJSEmbed { + +/** + * Wrapper class for constructors. + * + * @author Richard Moore, rich@kde.org + */ +class Cons : public JSProxyImp +{ +public: + /** Enumerates the constructors supported by this class. */ + enum Constructors { + + + + _ + Constructor_ + , + + + + LastConstuctor = -1 + }; + + // + // Constructors implemented by this class. + // + + _ + + + KJS::Object ( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ); + + + + // + // JS binding code. + // + + /** Returns true iff this object implements the construct function. */ + virtual bool implementsConstruct() const { return true; } + + /** Invokes the construct function. */ + virtual KJS::Value construct( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); +private: + int id; +}; + +} // namespace KJSEmbed + +#endif // KJSEMBED__H + +// Local Variables: +// c-basic-offset: 4 +// End: + + + -- cgit v1.2.1