|
|
@ -45,12 +45,12 @@ PluginManager::query( const TQString& constraint )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Add versioning constraint
|
|
|
|
// Add versioning constraint
|
|
|
|
TQString
|
|
|
|
TQString
|
|
|
|
str = "[X-KDE-Amarok-framework-version] == ";
|
|
|
|
str = "[X-TDE-Amarok-framework-version] == ";
|
|
|
|
str += TQString::number( FrameworkVersion );
|
|
|
|
str += TQString::number( FrameworkVersion );
|
|
|
|
if ( !constraint.stripWhiteSpace().isEmpty() )
|
|
|
|
if ( !constraint.stripWhiteSpace().isEmpty() )
|
|
|
|
str += " and " + constraint;
|
|
|
|
str += " and " + constraint;
|
|
|
|
str += " and ";
|
|
|
|
str += " and ";
|
|
|
|
str += "[X-KDE-Amarok-rank] > 0";
|
|
|
|
str += "[X-TDE-Amarok-rank] > 0";
|
|
|
|
|
|
|
|
|
|
|
|
debug() << "Plugin trader constraint: " << str << endl;
|
|
|
|
debug() << "Plugin trader constraint: " << str << endl;
|
|
|
|
|
|
|
|
|
|
|
@ -74,7 +74,7 @@ PluginManager::createFromQuery( const TQString &constraint )
|
|
|
|
int rank = 0;
|
|
|
|
int rank = 0;
|
|
|
|
uint current = 0;
|
|
|
|
uint current = 0;
|
|
|
|
for ( uint i = 0; i < offers.count(); i++ ) {
|
|
|
|
for ( uint i = 0; i < offers.count(); i++ ) {
|
|
|
|
if ( offers[i]->property( "X-KDE-Amarok-rank" ).toInt() > rank )
|
|
|
|
if ( offers[i]->property( "X-TDE-Amarok-rank" ).toInt() > rank )
|
|
|
|
current = i;
|
|
|
|
current = i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -176,10 +176,10 @@ PluginManager::showAbout( const TQString &constraint )
|
|
|
|
|
|
|
|
|
|
|
|
str += body.arg( i18n( "Name" ), s->name() );
|
|
|
|
str += body.arg( i18n( "Name" ), s->name() );
|
|
|
|
str += body.arg( i18n( "Library" ), s->library() );
|
|
|
|
str += body.arg( i18n( "Library" ), s->library() );
|
|
|
|
str += body.arg( i18n( "Authors" ), s->property( "X-KDE-Amarok-authors" ).toStringList().join( "\n" ) );
|
|
|
|
str += body.arg( i18n( "Authors" ), s->property( "X-TDE-Amarok-authors" ).toStringList().join( "\n" ) );
|
|
|
|
str += body.arg( i18n( "Email" ), s->property( "X-KDE-Amarok-email" ).toStringList().join( "\n" ) );
|
|
|
|
str += body.arg( i18n( "Email" ), s->property( "X-TDE-Amarok-email" ).toStringList().join( "\n" ) );
|
|
|
|
str += body.arg( i18n( "Version" ), s->property( "X-KDE-Amarok-version" ).toString() );
|
|
|
|
str += body.arg( i18n( "Version" ), s->property( "X-TDE-Amarok-version" ).toString() );
|
|
|
|
str += body.arg( i18n( "Framework Version" ), s->property( "X-KDE-Amarok-framework-version" ).toString() );
|
|
|
|
str += body.arg( i18n( "Framework Version" ), s->property( "X-TDE-Amarok-framework-version" ).toString() );
|
|
|
|
|
|
|
|
|
|
|
|
str += "</table></body></html>";
|
|
|
|
str += "</table></body></html>";
|
|
|
|
|
|
|
|
|
|
|
@ -195,12 +195,12 @@ PluginManager::dump( const KService::Ptr service )
|
|
|
|
debug() << "name : " << service->name() << endl;
|
|
|
|
debug() << "name : " << service->name() << endl;
|
|
|
|
debug() << "library : " << service->library() << endl;
|
|
|
|
debug() << "library : " << service->library() << endl;
|
|
|
|
debug() << "desktopEntryPath : " << service->desktopEntryPath() << endl;
|
|
|
|
debug() << "desktopEntryPath : " << service->desktopEntryPath() << endl;
|
|
|
|
debug() << "X-KDE-Amarok-plugintype : " << service->property( "X-KDE-Amarok-plugintype" ).toString() << endl;
|
|
|
|
debug() << "X-TDE-Amarok-plugintype : " << service->property( "X-TDE-Amarok-plugintype" ).toString() << endl;
|
|
|
|
debug() << "X-KDE-Amarok-name : " << service->property( "X-KDE-Amarok-name" ).toString() << endl;
|
|
|
|
debug() << "X-TDE-Amarok-name : " << service->property( "X-TDE-Amarok-name" ).toString() << endl;
|
|
|
|
debug() << "X-KDE-Amarok-authors : " << service->property( "X-KDE-Amarok-authors" ).toStringList() << endl;
|
|
|
|
debug() << "X-TDE-Amarok-authors : " << service->property( "X-TDE-Amarok-authors" ).toStringList() << endl;
|
|
|
|
debug() << "X-KDE-Amarok-rank : " << service->property( "X-KDE-Amarok-rank" ).toString() << endl;
|
|
|
|
debug() << "X-TDE-Amarok-rank : " << service->property( "X-TDE-Amarok-rank" ).toString() << endl;
|
|
|
|
debug() << "X-KDE-Amarok-version : " << service->property( "X-KDE-Amarok-version" ).toString() << endl;
|
|
|
|
debug() << "X-TDE-Amarok-version : " << service->property( "X-TDE-Amarok-version" ).toString() << endl;
|
|
|
|
debug() << "X-KDE-Amarok-framework-version: " << service->property( "X-KDE-Amarok-framework-version" ).toString() << endl;
|
|
|
|
debug() << "X-TDE-Amarok-framework-version: " << service->property( "X-TDE-Amarok-framework-version" ).toString() << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|