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/doxygen2imp_h.xsl | 86 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 kjsembed/tools/doxygen2imp_h.xsl (limited to 'kjsembed/tools/doxygen2imp_h.xsl') diff --git a/kjsembed/tools/doxygen2imp_h.xsl b/kjsembed/tools/doxygen2imp_h.xsl new file mode 100644 index 00000000..ce00e7a1 --- /dev/null +++ b/kjsembed/tools/doxygen2imp_h.xsl @@ -0,0 +1,86 @@ + + + + + + + + +#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 methods. + * + * @author Richard Moore, rich@kde.org + */ +class Imp : public JSProxyImp +{ +public: + /** Enumerates the methods supported by this class. */ + enum Methods { + + _ + + + Method_, + + + Method_Last = -1 + }; + + Imp( KJS::ExecState *exec, int id ); + ~Imp(); + + static void addBindings( KJS::ExecState *exec, KJS::Object &object ); + + static *to( KJS::Object &object ); + + // + // Methods implemented by this class. + // + + _ + + + KJS::Value ( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ); + + + + // + // JS binding code. + // + + /** Returns true iff this object implements the call function. */ + virtual bool implementsCall() const { return true; } + + /** Invokes the call function. */ + virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); + +private: + *instance; // Temp + int mid; +}; + +} // namespace KJSEmbed + +#endif // KJSEMBED__H + +// Local Variables: +// c-basic-offset: 4 +// End: + + + -- cgit v1.2.1