QgsProjectArchive class
Class allowing to manage the zip/unzip actions on project file.
Contents
- Reference
Base classes
- class QgsArchive
- Class allowing to manage the zip/unzip actions.
Public functions
- auto auxiliaryStorageFile() const -> QString
- Returns the current .qgd auxiliary storage file or an empty string if there's none.
- auto clearProjectFile() -> bool
- Remove the current .qgs project file from the temporary directory.
- auto projectFile() const -> QString
- Returns the current .qgs project file or an empty string if there's none.
- auto unzip(const QString& zipFilename) -> bool override
- Clear the current content of this archive and unzip.
Function documentation
bool QgsProjectArchive:: clearProjectFile()
Remove the current .qgs project file from the temporary directory.
| Returns | true if the file is well removed, false otherwise |
|---|
bool QgsProjectArchive:: unzip(const QString& zipFilename) override
Clear the current content of this archive and unzip.
| Parameters | |
|---|---|
| zipFilename | The zip file to unzip |
| Returns | true if a project file has been found, false otherwise |
If a project file is found in the content, then this archive may be considered as a valid one. Files are unzipped in the temporary directory.