Commit ab68f490 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

factory: IFileSystem: Rename refresh to refreshDevices

parent 07ed5d5f
......@@ -61,7 +61,7 @@ namespace factory
///
/// \brief refresh Will cause any FS cache to be refreshed.
///
virtual void refresh() = 0;
virtual void refreshDevices() = 0;
};
}
......
......@@ -110,7 +110,7 @@ void FsDiscoverer::reload( const std::string& entryPoint )
void FsDiscoverer::checkDevices()
{
m_fsFactory->refresh();
m_fsFactory->refreshDevices();
auto devices = Device::fetchAll( m_ml );
for ( auto& d : devices )
{
......
......@@ -99,7 +99,7 @@ std::shared_ptr<fs::IDevice> FileSystemFactory::createDeviceFromPath( const std:
return res;
}
void FileSystemFactory::refresh()
void FileSystemFactory::refreshDevices()
{
{
std::lock_guard<compat::Mutex> lock( m_mutex );
......
......@@ -45,7 +45,7 @@ namespace factory
virtual std::shared_ptr<fs::IDirectory> createDirectory( const std::string& path ) override;
virtual std::shared_ptr<fs::IDevice> createDevice( const std::string& uuid ) override;
virtual std::shared_ptr<fs::IDevice> createDeviceFromPath( const std::string& path ) override;
virtual void refresh() override;
virtual void refreshDevices() override;
private:
std::unordered_map<std::string, std::shared_ptr<fs::IDirectory>> m_dirs;
......
......@@ -177,7 +177,7 @@ struct FileSystemFactory : public factory::IFileSystem
return *it;
}
virtual void refresh() override {}
virtual void refreshDevices() override {}
std::shared_ptr<Device> device( const std::string& path )
{
......@@ -315,7 +315,7 @@ public:
return nullptr;
}
virtual void refresh() override
virtual void refreshDevices() 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