QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSPROJECTSTORAGE_H
17 #define QGSPROJECTSTORAGE_H
19 #include "qgis_core.h"
61 virtual QString type() = 0;
64 virtual QStringList listProjects(
const QString &uri ) = 0;
72 virtual bool readProject(
const QString &uri, QIODevice *device,
QgsReadWriteContext &context ) = 0;
80 virtual bool writeProject(
const QString &uri, QIODevice *device,
QgsReadWriteContext &context ) = 0;
86 virtual bool removeProject(
const QString &uri ) = 0;
92 virtual bool renameProject(
const QString &uri,
const QString &uriNew ) { Q_UNUSED( uri ) Q_UNUSED( uriNew );
return false; }
106 virtual QString filePath(
const QString &uri );
132 #endif // QGSPROJECTSTORAGE_H
virtual Q_DECL_DEPRECATED QString showSaveGui()
Opens GUI to allow user to select where a project should be saved (GUI specific to this storage type)...
virtual bool readProjectStorageMetadata(const QString &uri, QgsProjectStorage::Metadata &metadata)
Reads project metadata (e.g.
virtual bool renameProject(const QString &uri, const QString &uriNew)
Rename an existing project at the given URI to a different URI.
virtual Q_DECL_DEPRECATED QString showLoadGui()
Opens GUI to allow user to select a project to be loaded (GUI specific to this storage type).
virtual Q_DECL_DEPRECATED QString visibleName()
Returns human-readable name of the storage.