mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-19 07:27:59 +01:00
* Support PlayableItems that hold a source_ptr.
This commit is contained in:
parent
bfc31ddd7b
commit
9d15a899e5
@ -133,6 +133,14 @@ PlayableItem::PlayableItem( const Tomahawk::plentry_ptr& entry, PlayableItem* pa
|
||||
}
|
||||
|
||||
|
||||
PlayableItem::PlayableItem( const Tomahawk::source_ptr& source, PlayableItem* parent, int row )
|
||||
: QObject( parent )
|
||||
, m_source( source )
|
||||
{
|
||||
init( parent, row );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PlayableItem::init( PlayableItem* parent, int row )
|
||||
{
|
||||
|
@ -41,11 +41,13 @@ public:
|
||||
explicit PlayableItem( const Tomahawk::result_ptr& result, PlayableItem* parent = 0, int row = -1 );
|
||||
explicit PlayableItem( const Tomahawk::query_ptr& query, PlayableItem* parent = 0, int row = -1 );
|
||||
explicit PlayableItem( const Tomahawk::plentry_ptr& entry, PlayableItem* parent = 0, int row = -1 );
|
||||
explicit PlayableItem( const Tomahawk::source_ptr& source, PlayableItem* parent = 0, int row = -1 );
|
||||
|
||||
const Tomahawk::artist_ptr& artist() const { return m_artist; }
|
||||
const Tomahawk::album_ptr& album() const { return m_album; }
|
||||
const Tomahawk::query_ptr& query() const { return m_query; }
|
||||
const Tomahawk::plentry_ptr& entry() const { return m_entry; }
|
||||
const Tomahawk::source_ptr& source() const { return m_source; }
|
||||
const Tomahawk::result_ptr& result() const;
|
||||
|
||||
Tomahawk::PlaybackLog playbackLog() const;
|
||||
@ -82,6 +84,7 @@ private:
|
||||
Tomahawk::result_ptr m_result;
|
||||
Tomahawk::query_ptr m_query;
|
||||
Tomahawk::plentry_ptr m_entry;
|
||||
Tomahawk::source_ptr m_source;
|
||||
|
||||
PlayableItem* m_parent;
|
||||
bool m_fetchingMore;
|
||||
|
Loading…
x
Reference in New Issue
Block a user