|
|
|
@ -143,7 +143,7 @@ EngineController::loadEngine( const TQString &engineName )
|
|
|
|
|
DEBUG_BLOCK
|
|
|
|
|
|
|
|
|
|
TQString query = "[X-TDE-Amarok-plugintype] == 'engine' and [X-TDE-Amarok-name] != '%1'";
|
|
|
|
|
KTrader::OfferList offers = PluginManager::query( query.arg( engineName ) );
|
|
|
|
|
TDETrader::OfferList offers = PluginManager::query( query.arg( engineName ) );
|
|
|
|
|
|
|
|
|
|
// sort by rank, TQValueList::operator[] is O(n), so this is quite inefficient
|
|
|
|
|
#define rank( x ) (x)->property( "X-TDE-Amarok-rank" ).toInt()
|
|
|
|
@ -157,7 +157,7 @@ EngineController::loadEngine( const TQString &engineName )
|
|
|
|
|
query = "[X-TDE-Amarok-plugintype] == 'engine' and [X-TDE-Amarok-name] == '%1'";
|
|
|
|
|
offers = PluginManager::query( query.arg( engineName ) ) + offers;
|
|
|
|
|
|
|
|
|
|
foreachType( KTrader::OfferList, offers ) {
|
|
|
|
|
foreachType( TDETrader::OfferList, offers ) {
|
|
|
|
|
Amarok::Plugin *plugin = PluginManager::createFromService( *it );
|
|
|
|
|
|
|
|
|
|
if( plugin ) {
|
|
|
|
@ -270,7 +270,7 @@ void EngineController::unplayableNotification() {
|
|
|
|
|
|
|
|
|
|
bool EngineController::installDistroCodec( const TQString& engine /*Filetype type*/)
|
|
|
|
|
{
|
|
|
|
|
KService::Ptr service = KTrader::self()->query( "Amarok/CodecInstall"
|
|
|
|
|
KService::Ptr service = TDETrader::self()->query( "Amarok/CodecInstall"
|
|
|
|
|
, TQString("[X-TDE-Amarok-codec] == 'mp3' and [X-TDE-Amarok-engine] == '%1'").arg(engine) ).first();
|
|
|
|
|
if( service )
|
|
|
|
|
{
|
|
|
|
|