Commit 12cc0b5d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Rename onFileUpdated callback to onMediaUpdated

parent 2d41b640
......@@ -66,7 +66,7 @@ public:
/**
* @brief onFileUpdated Will be called when a file metadata gets updated.
*/
virtual void onFileUpdated( MediaPtr media ) = 0;
virtual void onMediaUpdated( MediaPtr media ) = 0;
virtual void onDiscoveryStarted( const std::string& entryPoint ) = 0;
virtual void onDiscoveryCompleted( const std::string& entryPoint ) = 0;
......
......@@ -114,7 +114,7 @@ void Parser::done( std::unique_ptr<parser::Task> t, parser::Task::Status status
if ( status == parser::Task::Status::Success )
{
if ( m_callback != nullptr )
m_callback->onFileUpdated( t->media );
m_callback->onMediaUpdated( t->media );
}
auto serviceIdx = ++t->currentService;
......
......@@ -37,7 +37,7 @@ public:
{
}
virtual void onFileUpdated( MediaPtr ) override
virtual void onMediaUpdated( MediaPtr ) override
{
}
......
......@@ -23,7 +23,7 @@ public:
private:
virtual void onMediaAdded(MediaPtr) override {}
virtual void onFileUpdated(MediaPtr) override {}
virtual void onMediaUpdated(MediaPtr) override {}
virtual void onDiscoveryStarted(const std::string&) override {}
virtual void onDiscoveryCompleted(const std::string&) override;
virtual void onReloadStarted( const std::string& ) override {}
......
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