1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-18 06:48:23 +01:00

Add TomahawkUrlType

This commit is contained in:
Uwe L. Korn 2013-07-07 21:37:59 +02:00
parent 2793e4cc29
commit 65e1c530cf
2 changed files with 17 additions and 0 deletions

View File

@ -78,6 +78,14 @@ var TomahawkResolverCapability = {
UrlLookup: 8
};
var TomahawkUrlType = {
Any: 0,
Playlist: 1,
Track: 2,
Album: 4,
Artist: 8
};
// Resolver BaseObject, inherit it to implement your own resolver
var TomahawkResolver = {

View File

@ -74,6 +74,15 @@ public:
Q_DECLARE_FLAGS( Capabilities, Capability )
Q_FLAGS( Capabilities )
enum UrlType
{
Any = 0x00,
Playlist = 0x01,
Track = 0x02,
Album = 0x04,
Artist = 0x08
};
ExternalResolver( const QString& filePath )
: m_commandQueue( new ScriptCommandQueue( this ) )
{ m_filePath = filePath; }