[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Wed Feb 9 00:25:25 CET 2005
CVS commit by staikos:
add my idea for a dcop interface for the js extension. more to come
A jsiface.h 1.1 [GPL (v2+)]
A jsiface_impl.cpp 1.1 [GPL (v2+)]
A jsiface_impl.h 1.1 [GPL (v2+)]
M +1 -0 .cvsignore 1.3
M +2 -1 Makefile.am 1.3
M +4 -1 js.cpp 1.7
M +3 -0 js.h 1.7
--- kdeextragear-2/kst/kst/extensions/js/.cvsignore #1.2:1.3
@@ -2,3 +2,4 @@
Makefile.in
*.bb
+jsiface_skel.cpp
*.bbg
--- kdeextragear-2/kst/kst/extensions/js/Makefile.am #1.2:1.3
@@ -5,5 +5,6 @@
kstextension_js_la_LDFLAGS=$(all_libraries) -module -avoid-version
kstextension_js_la_LIBADD=../../libkst.la $(LIB_KPARTS) -lkjsembed
-kstextension_js_la_SOURCES=js.cpp jsproxies.cpp
+kstextension_js_la_SOURCES=js.cpp jsproxies.cpp jsiface.skel jsiface_impl.cpp
+
METASOURCES=AUTO
--- kdeextragear-2/kst/kst/extensions/js/js.cpp #1.6:1.7
@@ -17,5 +17,5 @@
#include "js.h"
-
+#include "jsiface_impl.h"
#include "jsproxies.h"
@@ -54,8 +54,11 @@ KstJS::KstJS(QObject *parent, const char
createRegistry();
+ _iface = new JSIfaceImpl;
}
KstJS::~KstJS() {
+ delete _iface;
+ _iface = 0L;
destroyRegistry();
// crash
--- kdeextragear-2/kst/kst/extensions/js/js.h #1.6:1.7
@@ -22,4 +22,6 @@
#include <kxmlguiclient.h>
+class JSIfaceImpl;
+
namespace KJSEmbed {
class KJSEmbedPart;
@@ -47,4 +49,5 @@ class KstJS : public KstExtension, publi
QStringList _scripts;
KJSEmbed::KJSEmbedPart *_jsPart;
+ JSIfaceImpl *_iface;
};
More information about the Kst
mailing list