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

Add a MediaLibrary factory

parent 5b39a72c
......@@ -9,10 +9,16 @@
class IMediaLibrary
{
public:
virtual ~IMediaLibrary(){}
virtual bool initialize( const std::string& dbPath );
virtual ~IMediaLibrary() {}
virtual bool initialize( const std::string& dbPath ) = 0;
virtual const std::vector<IFile*>& files() = 0;
};
class MediaLibraryFactory
{
public:
static IMediaLibrary* create();
};
#endif // IMEDIALIBRARY_H
......@@ -25,6 +25,7 @@ list(APPEND SRC_LIST ${HEADERS_LIST}
Label.cpp
AlbumTrack.cpp
ShowEpisode.cpp
Factory.cpp
)
find_package(Sqlite3 REQUIRED)
......
#include "MediaLibrary.h"
IMediaLibrary* MediaLibraryFactory::create()
{
return new MediaLibrary();
}
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