Changeset View
Changeset View
Standalone View
Standalone View
src/scripting/scriptmanager/ScriptItem.cpp
Show All 31 Lines | |||||
32 | #include "amarokconfig.h" | 32 | #include "amarokconfig.h" | ||
33 | #include "config.h" | 33 | #include "config.h" | ||
34 | #include "services/scriptable/ScriptableServiceManager.h" | 34 | #include "services/scriptable/ScriptableServiceManager.h" | ||
35 | #include "scripting/scriptengine/AmarokCollectionScript.h" | 35 | #include "scripting/scriptengine/AmarokCollectionScript.h" | ||
36 | #include "scripting/scriptengine/AmarokScriptConfig.h" | 36 | #include "scripting/scriptengine/AmarokScriptConfig.h" | ||
37 | #include "scripting/scriptengine/AmarokEngineScript.h" | 37 | #include "scripting/scriptengine/AmarokEngineScript.h" | ||
38 | #include "scripting/scriptengine/AmarokInfoScript.h" | 38 | #include "scripting/scriptengine/AmarokInfoScript.h" | ||
39 | #include "scripting/scriptengine/AmarokKNotifyScript.h" | 39 | #include "scripting/scriptengine/AmarokKNotifyScript.h" | ||
40 | #include "scripting/scriptengine/AmarokLyricsScript.h" | | |||
41 | #include "scripting/scriptengine/AmarokNetworkScript.h" | 40 | #include "scripting/scriptengine/AmarokNetworkScript.h" | ||
42 | #include "scripting/scriptengine/AmarokOSDScript.h" | 41 | #include "scripting/scriptengine/AmarokOSDScript.h" | ||
43 | #include "scripting/scriptengine/AmarokPlaylistScript.h" | 42 | #include "scripting/scriptengine/AmarokPlaylistScript.h" | ||
44 | #include "scripting/scriptengine/AmarokScript.h" | 43 | #include "scripting/scriptengine/AmarokScript.h" | ||
45 | #include "scripting/scriptengine/AmarokScriptableServiceScript.h" | 44 | #include "scripting/scriptengine/AmarokScriptableServiceScript.h" | ||
46 | #include "scripting/scriptengine/AmarokServicePluginManagerScript.h" | 45 | #include "scripting/scriptengine/AmarokServicePluginManagerScript.h" | ||
47 | #include "scripting/scriptengine/AmarokStatusbarScript.h" | 46 | #include "scripting/scriptengine/AmarokStatusbarScript.h" | ||
48 | #include "scripting/scriptengine/AmarokStreamItemScript.h" | 47 | #include "scripting/scriptengine/AmarokStreamItemScript.h" | ||
▲ Show 20 Lines • Show All 238 Lines • ▼ Show 20 Line(s) | 254 | { | |||
287 | new AmarokScript::AmarokStatusbarScript( m_engine.data() ); | 286 | new AmarokScript::AmarokStatusbarScript( m_engine.data() ); | ||
288 | new AmarokScript::AmarokKNotifyScript( m_engine.data() ); | 287 | new AmarokScript::AmarokKNotifyScript( m_engine.data() ); | ||
289 | new AmarokScript::AmarokOSDScript( m_engine.data() ); | 288 | new AmarokScript::AmarokOSDScript( m_engine.data() ); | ||
290 | 289 | | |||
291 | AmarokScript::CollectionPrototype::init( m_engine.data() ); | 290 | AmarokScript::CollectionPrototype::init( m_engine.data() ); | ||
292 | AmarokScript::QueryMakerPrototype::init( m_engine.data() ); | 291 | AmarokScript::QueryMakerPrototype::init( m_engine.data() ); | ||
293 | 292 | | |||
294 | const QString &category = m_info.category(); | 293 | const QString &category = m_info.category(); | ||
295 | if( category.contains( QLatin1String("Lyrics") ) ) | | |||
296 | { | | |||
297 | new AmarokScript::AmarokLyricsScript( m_engine.data() ); | | |||
298 | } | | |||
299 | if( category.contains( QLatin1String("Scriptable Service") ) ) | 294 | if( category.contains( QLatin1String("Scriptable Service") ) ) | ||
300 | { | 295 | { | ||
301 | new StreamItem( m_engine.data() ); | 296 | new StreamItem( m_engine.data() ); | ||
302 | m_service = new AmarokScript::ScriptableServiceScript( m_engine.data() ); | 297 | m_service = new AmarokScript::ScriptableServiceScript( m_engine.data() ); | ||
303 | new AmarokScript::AmarokServicePluginManagerScript( m_engine.data() ); | 298 | new AmarokScript::AmarokServicePluginManagerScript( m_engine.data() ); | ||
304 | } | 299 | } | ||
305 | 300 | | |||
306 | AmarokScript::MetaTrackPrototype::init( m_engine.data() ); | 301 | AmarokScript::MetaTrackPrototype::init( m_engine.data() ); | ||
Show All 37 Lines |