@@ -69,14 +69,14 @@ class LibraryBackendInterface : public QObject {
6969 virtual QString songs_table () const = 0;
7070
7171 // Get a list of directories in the library. Emits DirectoriesDiscovered.
72- virtual void LoadDirectoriesAsync () = 0;
72+ virtual void LoadDirectoriesAsync (DirectoryFactory* directory_factory ) = 0;
7373
7474 // Counts the songs in the library. Emits TotalSongCountUpdated
7575 virtual void UpdateTotalSongCountAsync () = 0;
7676
7777 virtual SongList FindSongsInDirectory (int id) = 0;
7878 virtual SubdirectoryList SubdirsInDirectory (int id) = 0;
79- virtual DirectoryList GetAllDirectories () = 0;
79+ virtual DirectoryList GetAllDirectories (DirectoryFactory* info ) = 0;
8080 virtual void ChangeDirPath (int id, const QString& old_path,
8181 const QString& new_path) = 0;
8282
@@ -118,7 +118,8 @@ class LibraryBackendInterface : public QObject {
118118 // songs.
119119 virtual Song GetSongByUrl (const QUrl& url, qint64 beginning = 0 ) = 0;
120120
121- virtual void AddDirectory (const QString& path) = 0;
121+ virtual void AddDirectory (DirectoryFactory* directory_factory,
122+ const QString& path) = 0;
122123 virtual void RemoveDirectory (int dir_id) = 0;
123124
124125 virtual bool ExecQuery (LibraryQuery* q) = 0;
@@ -141,14 +142,14 @@ class LibraryBackend : public LibraryBackendInterface {
141142 QString subdirs_table () const { return subdirs_table_; }
142143
143144 // Get a list of directories in the library. Emits DirectoriesDiscovered.
144- void LoadDirectoriesAsync ();
145+ void LoadDirectoriesAsync (DirectoryFactory* directory_factory );
145146
146147 // Counts the songs in the library. Emits TotalSongCountUpdated
147148 void UpdateTotalSongCountAsync ();
148149
149150 SongList FindSongsInDirectory (int id);
150151 SubdirectoryList SubdirsInDirectory (int id);
151- DirectoryList GetAllDirectories ();
152+ DirectoryList GetAllDirectories (DirectoryFactory* directory_factory );
152153 void ChangeDirPath (int id, const QString& old_path, const QString& new_path);
153154
154155 QStringList GetAll (const QString& column,
@@ -185,7 +186,7 @@ class LibraryBackend : public LibraryBackendInterface {
185186 SongList GetSongsByUrl (const QUrl& url);
186187 Song GetSongByUrl (const QUrl& url, qint64 beginning = 0 );
187188
188- void AddDirectory (const QString& path);
189+ void AddDirectory (DirectoryFactory* directory_factory, const QString& path);
189190 void RemoveDirectory (int dir_id);
190191
191192 bool ExecQuery (LibraryQuery* q);
@@ -202,7 +203,7 @@ class LibraryBackend : public LibraryBackendInterface {
202203 void DeleteAll ();
203204
204205 public slots:
205- void LoadDirectories ();
206+ void LoadDirectories (DirectoryFactory* directory_factory );
206207 void UpdateTotalSongCount ();
207208 void AddOrUpdateSongs (const SongList& songs);
208209 void UpdateMTimesOnly (const SongList& songs);
0 commit comments