From 1549eb35289ce1912fdada091c685be059aa1309 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 20 Jan 2010 23:25:24 +0000 Subject: [PATCH] move DummyService to dataengine.h where so it doesn't need to be duplicated elsewhere svn path=/trunk/KDE/kdebase/runtime/; revision=1077830 --- scriptengines/javascript/simplebindings/dataengine.h | 11 +++++++++++ scriptengines/javascript/simplejavascriptapplet.cpp | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scriptengines/javascript/simplebindings/dataengine.h b/scriptengines/javascript/simplebindings/dataengine.h index daa0f8e17..51363dd75 100644 --- a/scriptengines/javascript/simplebindings/dataengine.h +++ b/scriptengines/javascript/simplebindings/dataengine.h @@ -75,5 +75,16 @@ int qScriptRegisterMapMetaType( return qScriptRegisterMetaType(engine, qScriptValueFromMap, qScriptValueToMap, prototype); } +class DummyService : public Plasma::Service +{ +public: + ServiceJob *createJob(const QString &operation, QMap ¶meters) + { + Q_UNUSED(operation) + Q_UNUSED(parameters) + return 0; + } +}; + #endif // DATAENGINE_H diff --git a/scriptengines/javascript/simplejavascriptapplet.cpp b/scriptengines/javascript/simplejavascriptapplet.cpp index 7eb2712d1..ddec48afe 100644 --- a/scriptengines/javascript/simplejavascriptapplet.cpp +++ b/scriptengines/javascript/simplejavascriptapplet.cpp @@ -80,17 +80,6 @@ QScriptValue constructQSizeFClass(QScriptEngine *engine); QScriptValue constructTimerClass(QScriptEngine *engine); void registerSimpleAppletMetaTypes(QScriptEngine *engine); -class DummyService : public Service -{ -public: - ServiceJob *createJob(const QString &operation, QMap ¶meters) - { - Q_UNUSED(operation) - Q_UNUSED(parameters) - return 0; - } -}; - KSharedPtr SimpleJavaScriptApplet::s_widgetLoader; QHash SimpleJavaScriptApplet::s_animationDefs;