Changeset View
Changeset View
Standalone View
Standalone View
src/scripting/scriptmanager/ScriptItem.cpp
Show All 21 Lines | |||||
22 | 22 | | |||
23 | #define DEBUG_PREFIX "ScriptItem" | 23 | #define DEBUG_PREFIX "ScriptItem" | ||
24 | 24 | | |||
25 | #include "ScriptItem.h" | 25 | #include "ScriptItem.h" | ||
26 | 26 | | |||
27 | #include "core/support/Amarok.h" | 27 | #include "core/support/Amarok.h" | ||
28 | #include "core/support/Debug.h" | 28 | #include "core/support/Debug.h" | ||
29 | #include "core/support/Components.h" | 29 | #include "core/support/Components.h" | ||
30 | #include "core/interfaces/Logger.h" | 30 | #include "core/logger/Logger.h" | ||
31 | #include "MainWindow.h" | 31 | #include "MainWindow.h" | ||
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" | ||
▲ Show 20 Lines • Show All 283 Lines • ▼ Show 20 Line(s) | 320 | { | |||
322 | disconnect( sender(), SIGNAL(deprecatedCall(QString)), this, 0 ); | 322 | disconnect( sender(), SIGNAL(deprecatedCall(QString)), this, 0 ); | ||
323 | if( !AmarokConfig::enableDeprecationWarnings() ) | 323 | if( !AmarokConfig::enableDeprecationWarnings() ) | ||
324 | return; | 324 | return; | ||
325 | 325 | | |||
326 | QString message = i18nc( "%1 is the name of the offending script, %2 the name of the script author, and %3 the author's email" | 326 | QString message = i18nc( "%1 is the name of the offending script, %2 the name of the script author, and %3 the author's email" | ||
327 | , "The script %1 uses deprecated scripting API calls. Please contact the script" | 327 | , "The script %1 uses deprecated scripting API calls. Please contact the script" | ||
328 | " author, %2 at %3, and ask him to upgrade it before the next Amarok release." | 328 | " author, %2 at %3, and ask him to upgrade it before the next Amarok release." | ||
329 | , m_info.name(), m_info.author(), m_info.email() ); | 329 | , m_info.name(), m_info.author(), m_info.email() ); | ||
330 | Amarok::Components::logger()->longMessage( message ); | 330 | Amarok::Logger::longMessage( message ); | ||
331 | } | 331 | } | ||
332 | 332 | | |||
333 | void | 333 | void | ||
334 | ScriptItem::uninstall() | 334 | ScriptItem::uninstall() | ||
335 | { | 335 | { | ||
336 | emit uninstalled(); | 336 | emit uninstalled(); | ||
337 | deleteLater(); | 337 | deleteLater(); | ||
338 | } | 338 | } | ||
339 | 339 | | |||
340 | ScriptItem::~ScriptItem() | 340 | ScriptItem::~ScriptItem() | ||
341 | { | 341 | { | ||
342 | stop(); | 342 | stop(); | ||
343 | } | 343 | } |