Improvements to device manager

- Mount and unmount devices in lister thread
- Safely close watcher and backends for devices
- Enable abort loading device
- Fix MTP connection
This commit is contained in:
Jonas Kvinge
2019-09-07 23:30:35 +02:00
parent ad5e04bbcc
commit 8962644ba8
28 changed files with 411 additions and 156 deletions

View File

@@ -46,6 +46,8 @@ class GPodLoader : public QObject {
void set_music_path_prefix(const QString &prefix) { path_prefix_ = prefix; }
void set_song_type(Song::FileType type) { type_ = type; }
void Abort() { abort_ = true; }
public slots:
void LoadDatabase();
@@ -66,6 +68,8 @@ class GPodLoader : public QObject {
Song::FileType type_;
TaskManager *task_manager_;
CollectionBackend *backend_;
bool abort_;
};
#endif // GPODLOADER_H