Enumerate drives in seperate thread

Ref #87
This commit is contained in:
Floris Bos 2020-07-02 23:31:20 +02:00
parent 6069e8f441
commit 755d7dc6ab
8 changed files with 115 additions and 23 deletions

View file

@ -48,10 +48,13 @@ public:
/* Return true if url is in our local disk cache */
Q_INVOKABLE bool isCached(const QUrl &url, const QByteArray &sha256);
/* Refresh the list of available drives */
Q_INVOKABLE void refreshDriveList();
/* Start polling the list of available drives */
Q_INVOKABLE void startDriveListPolling();
/* Return list of available drives. Call refreshDriveList() first */
/* Stop polling the list of available drives */
Q_INVOKABLE void stopDriveListPolling();
/* Return list of available drives. Call startDriveListPolling() first */
DriveListModel *getDriveList();
/* Utility function to return filename part from URL */