16 #ifndef QGSSIMPLECOPYEXTERNALSTORAGE_H
17 #define QGSSIMPLECOPYEXTERNALSTORAGE_H
20 #include "qgis_core.h"
41 QString
type()
const override;
62 QgsSimpleCopyExternalStorageStoredContent(
const QString &filePath,
const QString &url,
const QString &authcfg = QString() );
66 QString
url()
const override;
68 void store()
override;
72 QPointer<QgsCopyFileTask> mCopyTask;
88 QgsSimpleCopyExternalStorageFetchedContent(
const QString &filePath );
92 void fetch()
override;
97 QString mResultFilePath;
Task to copy a file on disk.
virtual void cancel()
Cancels content fetching/storing.
Class for QgsExternalStorage fetched content.
virtual QString filePath() const =0
Returns fetched resource file path.
virtual void fetch()=0
Starts fetching.
Class for QgsExternalStorage stored content.
virtual QString url() const =0
Returns stored resource URL.
virtual void store()=0
Starts storing.
Abstract interface for external storage - to be implemented by various backends and registered in Qgs...
virtual QString type() const =0
Unique identifier of the external storage type.
virtual QgsExternalStorageStoredContent * doStore(const QString &filePath, const QString &url, const QString &authCfg=QString()) const =0
Stores file filePath to the url using authCfg authentication for this project external storage.
virtual QString displayName() const =0
Returns the translated external storage name, which should be used for any user-visible display of th...
virtual QgsExternalStorageFetchedContent * doFetch(const QString &url, const QString &authCfg=QString()) const =0
Fetches file from url using authCfg for this project external storage.