bookkeeping for the dataengine

svn path=/trunk/KDE/kdebase/runtime/; revision=1175803
This commit is contained in:
Aaron J. Seigo 2010-09-16 01:14:08 +00:00
parent 91dafe9793
commit 23364f9b16
2 changed files with 5 additions and 2 deletions

View File

@ -81,6 +81,7 @@ set(javascript_dataengine_engine_SRCS
dataengine/javascriptservice.cpp dataengine/javascriptservice.cpp
simplebindings/dataengine.cpp simplebindings/dataengine.cpp
simplebindings/i18n.cpp simplebindings/i18n.cpp
simplebindings/qscriptnonguibookkeeping.cpp
simplebindings/variant.cpp simplebindings/variant.cpp
) )
kde4_add_plugin(plasma_dataenginescript_javascript ${javascript_dataengine_engine_SRCS}) kde4_add_plugin(plasma_dataenginescript_javascript ${javascript_dataengine_engine_SRCS})

View File

@ -26,8 +26,10 @@
#include "javascriptservice.h" #include "javascriptservice.h"
#include "common/authorization.h" #include "common/authorization.h"
#include "common/scriptenv.h" #include "common/scriptenv.h"
#include "simplebindings/dataengine.h"
#include "simplebindings/i18n.h" #include "simplebindings/i18n.h"
#include "simplebindings/dataengine.h"
void registerNonGuiMetaTypes(QScriptEngine *engine);
JavaScriptDataEngine::JavaScriptDataEngine(QObject *parent, const QVariantList &args) JavaScriptDataEngine::JavaScriptDataEngine(QObject *parent, const QVariantList &args)
: DataEngineScript(parent) : DataEngineScript(parent)
@ -58,7 +60,7 @@ bool JavaScriptDataEngine::init()
global.setProperty("removeAllSources", m_qscriptEngine->newFunction(JavaScriptDataEngine::jsRemoveAllSources)); global.setProperty("removeAllSources", m_qscriptEngine->newFunction(JavaScriptDataEngine::jsRemoveAllSources));
global.setProperty("Service", m_qscriptEngine->newFunction(JavaScriptDataEngine::serviceCtor)); global.setProperty("Service", m_qscriptEngine->newFunction(JavaScriptDataEngine::serviceCtor));
registerDataEngineMetaTypes(m_qscriptEngine); registerNonGuiMetaTypes(m_qscriptEngine);
Authorization auth; Authorization auth;
if (!m_env->importExtensions(description(), m_iface, auth)) { if (!m_env->importExtensions(description(), m_iface, auth)) {