Commit 9555f67f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Update to recent medialibrary API changes

parent 8a464972
......@@ -114,10 +114,6 @@ MainWindow::MainWindow( Backend::IBackend* backend, QWidget *parent )
[](const QString& folder) {
NotificationZone::instance()->notify( "Discovering " + folder + "..." );
});
connect( Core::instance()->mediaLibrary(), &MediaLibrary::reloadStarted,
[](const QString& folder) {
NotificationZone::instance()->notify( "Reloading medialibrary (" + folder + ")..." );
});
//Connecting Library stuff:
const ClipRenderer* clipRenderer = qobject_cast<const ClipRenderer*>( m_clipPreview->getAbstractRenderer() );
......
......@@ -172,16 +172,6 @@ void MediaLibrary::onDiscoveryCompleted( const std::string& entryPoint )
emit discoveryCompleted( QString::fromStdString( entryPoint ) );
}
void MediaLibrary::onReloadStarted( const std::string& entryPoint )
{
emit reloadStarted( QString::fromStdString( entryPoint ) );
}
void MediaLibrary::onReloadCompleted( const std::string& entryPoint )
{
emit reloadCompleted( QString::fromStdString( entryPoint ) );
}
void MediaLibrary::onParsingStatsUpdated( uint32_t percent )
{
emit progressUpdated( static_cast<int>( percent ) );
......
......@@ -51,9 +51,6 @@ signals:
void progressUpdated( int percent );
void discoveryStarted( QString );
void discoveryCompleted( QString );
void reloadStarted( QString );
void reloadCompleted( QString );
private:
void mlDirsChanged( const QVariant& value );
......@@ -73,8 +70,6 @@ private:
virtual void onTracksDeleted( std::vector<int64_t> trackIds ) override;
virtual void onDiscoveryStarted( const std::string& entryPoint ) override;
virtual void onDiscoveryCompleted( const std::string& entryPoint ) override;
virtual void onReloadStarted( const std::string& entryPoint ) override;
virtual void onReloadCompleted( const std::string& entryPoint ) override;
virtual void onParsingStatsUpdated( uint32_t percent ) override;
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment