1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 07:07:05 +02:00

Add capabilities support to ScriptResolver and QtScriptResolver.

This commit is contained in:
Teo Mrnjavac
2013-01-20 15:18:38 +01:00
parent 6138ea1605
commit 43ae736d61
8 changed files with 61 additions and 12 deletions

View File

@@ -79,6 +79,14 @@ Tomahawk.extend = function(object, members) {
};
var TomahawkResolverCapability = {
NullCapability: 0,
Browsable: 1,
PlaylistSync: 2,
AccountFactory: 4
};
// Resolver BaseObject, inherit it to implement your own resolver
var TomahawkResolver = {
init: function()
@@ -125,6 +133,10 @@ var TomahawkResolver = {
search: function( qid, searchString )
{
return this.resolve( qid, "", "", searchString );
},
capabilities: function()
{
return TomahawkResolverCapability.NullCapability;
}
};