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

Publicly expose IFileSystem factory interface

parent ddee909b
...@@ -47,6 +47,7 @@ libmedialibraryfs_HEADERS = \ ...@@ -47,6 +47,7 @@ libmedialibraryfs_HEADERS = \
include/medialibrary/filesystem/IDevice.h \ include/medialibrary/filesystem/IDevice.h \
include/medialibrary/filesystem/IDirectory.h \ include/medialibrary/filesystem/IDirectory.h \
include/medialibrary/filesystem/IFile.h \ include/medialibrary/filesystem/IFile.h \
include/medialibrary/filesystem/IFileSystemFactory.h \
$(NULL) $(NULL)
libmedialibraryparserdir = $(includedir)/parser libmedialibraryparserdir = $(includedir)/parser
...@@ -103,7 +104,6 @@ libmedialibrary_la_SOURCES = \ ...@@ -103,7 +104,6 @@ libmedialibrary_la_SOURCES = \
noinst_HEADERS = \ noinst_HEADERS = \
include/discoverer/IDiscoverer.h \ include/discoverer/IDiscoverer.h \
include/factory/IFileSystem.h \
include/Fixup.h \ include/Fixup.h \
include/Types.h \ include/Types.h \
src/Album.h \ src/Album.h \
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "database/SqliteTools.h" #include "database/SqliteTools.h"
#include "medialibrary/filesystem/IDirectory.h" #include "medialibrary/filesystem/IDirectory.h"
#include "medialibrary/filesystem/IDevice.h" #include "medialibrary/filesystem/IDevice.h"
#include "medialibrary/filesystem/IFileSystemFactory.h"
#include "utils/Filename.h" #include "utils/Filename.h"
#include <unordered_map> #include <unordered_map>
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#pragma once #pragma once
#include "medialibrary/IFolder.h" #include "medialibrary/IFolder.h"
#include "medialibrary/filesystem/IDevice.h"
#include "database/DatabaseHelpers.h" #include "database/DatabaseHelpers.h"
#include "factory/IFileSystem.h"
#include "utils/Cache.h" #include "utils/Cache.h"
#include <sqlite3.h> #include <sqlite3.h>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <sqlite3.h> #include <sqlite3.h>
#include "medialibrary/IMedia.h" #include "medialibrary/IMedia.h"
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
#include "File.h" #include "File.h"
#include "Thumbnail.h" #include "Thumbnail.h"
#include "database/DatabaseHelpers.h" #include "database/DatabaseHelpers.h"
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <memory> #include <memory>
#include "discoverer/IDiscoverer.h" #include "discoverer/IDiscoverer.h"
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
namespace medialibrary namespace medialibrary
{ {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#pragma once #pragma once
#include "compat/Mutex.h" #include "compat/Mutex.h"
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
#include "medialibrary/Types.h" #include "medialibrary/Types.h"
#include "utils/Cache.h" #include "utils/Cache.h"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
#include "filesystem/network/Device.h" #include "filesystem/network/Device.h"
#include "compat/ConditionVariable.h" #include "compat/ConditionVariable.h"
#include "compat/Mutex.h" #include "compat/Mutex.h"
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#endif #endif
#include "CommonDirectory.h" #include "CommonDirectory.h"
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
#include "utils/Filename.h" #include "utils/Filename.h"
#include <dirent.h> #include <dirent.h>
#include <cerrno> #include <cerrno>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "medialibrary/filesystem/IDirectory.h" #include "medialibrary/filesystem/IDirectory.h"
#include "medialibrary/filesystem/IFile.h" #include "medialibrary/filesystem/IFile.h"
#include "medialibrary/filesystem/IDevice.h" #include "medialibrary/filesystem/IDevice.h"
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
#include "utils/Filename.h" #include "utils/Filename.h"
#include "mocks/filesystem/MockDevice.h" #include "mocks/filesystem/MockDevice.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "factory/IFileSystem.h" #include "medialibrary/filesystem/IFileSystemFactory.h"
#include "mocks/NoopCallback.h" #include "mocks/NoopCallback.h"
#include "mocks/MockDeviceLister.h" #include "mocks/MockDeviceLister.h"
#include "common/MediaLibraryTester.h" #include "common/MediaLibraryTester.h"
......
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