mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 12:52:30 +02:00
* Renamed (Dynamic)Playlist::load() to ::get().
This commit is contained in:
@@ -161,14 +161,14 @@ Playlist::create( const source_ptr& author,
|
||||
|
||||
|
||||
playlist_ptr
|
||||
Playlist::load( const QString& guid )
|
||||
Playlist::get( const QString& guid )
|
||||
{
|
||||
playlist_ptr p;
|
||||
|
||||
foreach( const Tomahawk::source_ptr& source, SourceList::instance()->sources() )
|
||||
{
|
||||
p = source->dbCollection()->playlist( guid );
|
||||
if ( !p.isNull() )
|
||||
if ( p )
|
||||
return p;
|
||||
}
|
||||
|
||||
|
@@ -93,7 +93,7 @@ friend class ::PlaylistModel;
|
||||
public:
|
||||
virtual ~Playlist();
|
||||
|
||||
static Tomahawk::playlist_ptr load( const QString& guid );
|
||||
static Tomahawk::playlist_ptr get( const QString& guid );
|
||||
|
||||
// one CTOR is private, only called by DatabaseCommand_LoadAllPlaylists
|
||||
static Tomahawk::playlist_ptr create( const source_ptr& author,
|
||||
|
@@ -124,17 +124,17 @@ DynamicPlaylist::setMode( int mode )
|
||||
|
||||
|
||||
dynplaylist_ptr
|
||||
DynamicPlaylist::load( const QString& guid )
|
||||
DynamicPlaylist::get( const QString& guid )
|
||||
{
|
||||
dynplaylist_ptr p;
|
||||
|
||||
foreach( const Tomahawk::source_ptr& source, SourceList::instance()->sources() )
|
||||
{
|
||||
p = source->dbCollection()->autoPlaylist( guid );
|
||||
if ( p.isNull() )
|
||||
if ( !p )
|
||||
p = source->dbCollection()->station( guid );
|
||||
|
||||
if ( !p.isNull() )
|
||||
if ( p )
|
||||
return p;
|
||||
}
|
||||
|
||||
|
@@ -74,7 +74,7 @@ class DLLEXPORT DynamicPlaylist : public Tomahawk::Playlist
|
||||
public:
|
||||
virtual ~DynamicPlaylist();
|
||||
|
||||
static Tomahawk::dynplaylist_ptr load( const QString& guid );
|
||||
static Tomahawk::dynplaylist_ptr get( const QString& guid );
|
||||
|
||||
/// Generate an empty dynamic playlist with default generator
|
||||
static Tomahawk::dynplaylist_ptr create( const source_ptr& author,
|
||||
|
Reference in New Issue
Block a user