16#ifndef QGSSIMPLECOPYEXTERNALSTORAGE_H
17#define QGSSIMPLECOPYEXTERNALSTORAGE_H
40 QString
type()
const override;
60 QgsSimpleCopyExternalStorageStoredContent(
const QString &filePath,
const QString &url,
const QString &authcfg = QString() );
64 QString
url()
const override;
66 void store()
override;
70 QPointer<QgsCopyFileTask> mCopyTask;
85 QgsSimpleCopyExternalStorageFetchedContent(
const QString &filePath );
89 void fetch()
override;
94 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 QgsExternalStorageFetchedContent * doFetch(const QString &url, const QString &authCfg=QString()) const =0
Fetches file from url using authCfg for this project external storage.
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...