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

MediaLibrary.h: Cosmetics

Reindent declarations, remove an unimplemented method declaration
parent 31d7917f
......@@ -65,9 +65,9 @@ class Worker;
class MediaLibrary : public IMediaLibrary
{
public:
public:
MediaLibrary();
~MediaLibrary();
virtual ~MediaLibrary();
virtual InitializeResult initialize( const std::string& dbPath,
const std::string& thumbnailPath,
IMediaLibraryCb* mlCallback ) override;
......@@ -189,19 +189,19 @@ class MediaLibrary : public IMediaLibrary
static bool isExtensionSupported( const char* ext );
protected:
protected:
// Allow access to unit test MediaLibrary implementations
static const char* const supportedExtensions[];
static const size_t NbSupportedExtensions;
protected:
protected:
virtual bool startParser();
virtual void startDiscoverer();
virtual void startDeletionNotifier();
virtual void startThumbnailer();
virtual void populateNetworkFsFactories();
private:
private:
bool recreateDatabase( const std::string& dbPath );
InitializeResult updateDatabaseModel( unsigned int previousVersion,
const std::string& path );
......@@ -217,16 +217,14 @@ class MediaLibrary : public IMediaLibrary
void createAllTriggers();
void registerEntityHooks();
static bool validateSearchPattern( const std::string& pattern );
// Returns true if the device actually changed
bool onDeviceChanged( fs::IFileSystemFactory& fsFactory, Device& device );
bool createThumbnailFolder( const std::string& thumbnailPath ) const;
protected:
protected:
virtual void addLocalFsFactory();
MediaPtr addExternalMedia( const std::string& mrl, IMedia::Type type );
// Mark IDeviceListerCb callbacks as private. They must be invoked through the interface.
private:
private:
class DeviceListerCb : public IDeviceListerCb
{
public:
......@@ -256,7 +254,7 @@ class MediaLibrary : public IMediaLibrary
MediaLibrary* m_ml;
};
protected:
protected:
std::shared_ptr<sqlite::Connection> m_dbConnection;
std::vector<std::shared_ptr<fs::IFileSystemFactory>> m_fsFactories;
std::vector<std::shared_ptr<fs::IFileSystemFactory>> m_externalNetworkFsFactories;
......
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