[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Tue Apr 19 04:00:10 CEST 2005
CVS commit by staikos:
provide access to the plugin module from the plugin
M +8 -0 bind_plugin.cpp 1.2
M +1 -0 bind_plugin.h 1.2
--- kdeextragear-2/kst/kst/extensions/js/bind_plugin.cpp #1.1:1.2
@@ -17,4 +17,5 @@
#include "bind_plugin.h"
+#include "bind_pluginmodule.h"
#include <kstdatacollection.h>
@@ -76,4 +77,5 @@ static PluginBindings pluginBindings[] =
static PluginProperties pluginProperties[] = {
{ "tagName", &KstBindPlugin::setTagName, &KstBindPlugin::tagName },
+ { "module", 0L, &KstBindPlugin::module },
{ 0L, 0L, 0L }
};
@@ -188,3 +190,9 @@ KJS::Value KstBindPlugin::tagName(KJS::E
+KJS::Value KstBindPlugin::module(KJS::ExecState *exec) const {
+ KstReadLocker rl(_d);
+ return KJS::Object(new KstBindPluginModule(exec, _d->plugin()->data()));
+}
+
+
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/extensions/js/bind_plugin.h #1.1:1.2
@@ -46,4 +46,5 @@ class KstBindPlugin : public KstBinding
void setTagName(KJS::ExecState *exec, const KJS::Value& value);
KJS::Value tagName(KJS::ExecState *exec) const;
+ KJS::Value module(KJS::ExecState *exec) const;
protected:
More information about the Kst
mailing list