mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Add skeleton for starting to sync a playlist
This commit is contained in:
parent
f5395705b5
commit
f42ac00bcb
@ -327,6 +327,13 @@ Pipeline::resolve( QID qid, bool prioritized, bool temporaryQuery )
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Pipeline::startPlaylistSync( ExternalResolver* r, playlist_ptr playlist )
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
|
||||
{
|
||||
|
@ -78,6 +78,11 @@ public slots:
|
||||
void resolve( const QList<query_ptr>& qlist, bool prioritized = true, bool temporaryQuery = false );
|
||||
void resolve( QID qid, bool prioritized = true, bool temporaryQuery = false );
|
||||
|
||||
/**
|
||||
* Initiate syncing of a playlist with a reslover.
|
||||
*/
|
||||
void startPlaylistSync( ExternalResolver* r, playlist_ptr playlist );
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
void databaseReady();
|
||||
|
@ -62,6 +62,7 @@
|
||||
#include "jobview/ErrorStatusMessage.h"
|
||||
#include "jobview/JobStatusModel.h"
|
||||
#include "jobview/JobStatusView.h"
|
||||
#include "resolvers/playlist/ExternalResolverPlaylistUpdaterFactory.h"
|
||||
#include "utils/XspfLoader.h"
|
||||
#include "utils/JspfLoader.h"
|
||||
#include "utils/Logger.h"
|
||||
@ -655,7 +656,7 @@ TomahawkApp::onInfoSystemReady()
|
||||
Tomahawk::EchonestCatalogSynchronizer::instance();
|
||||
|
||||
PlaylistUpdaterInterface::registerUpdaterFactory( new XspfUpdaterFactory );
|
||||
// PlaylistUpdaterInterface::registerUpdaterFactory( new SpotifyUpdaterFactory );
|
||||
PlaylistUpdaterInterface::registerUpdaterFactory( new ExternalResolverPlaylistUpdaterFactory );
|
||||
|
||||
// Following work-around/fix taken from Clementine rev. 13e13ccd9a95 and courtesy of David Sansome
|
||||
// A bug in Qt means the wheel_scroll_lines setting gets ignored and replaced
|
||||
|
Loading…
x
Reference in New Issue
Block a user