2019-06-19 23:09:13 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectstorageguiprovider.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProjectStorageGuiProvider
{
%Docstring
Abstract interface for project storage GUI - to be implemented by various backends
and registered in QgsProjectStorageGuiRegistry.
.. versionadded:: 3.10
%End
%TypeHeaderCode
#include "qgsprojectstorageguiprovider.h"
%End
public:
virtual ~QgsProjectStorageGuiProvider();
virtual QString type() = 0;
%Docstring
2020-06-15 09:04:13 +10:00
Unique identifier of the project storage type. If :py:func:`~QgsProjectStorageGuiProvider.type` returns "memory", all project file names
2019-06-19 23:09:13 +02:00
starting with "memory:" will have read/write redirected through that storage implementation.
%End
virtual QString visibleName();
%Docstring
Returns human-readable name of the storage. Used as the menu item text in QGIS. Empty name
2020-06-15 09:04:13 +10:00
indicates that the storage does not implement GUI support (:py:func:`~QgsProjectStorageGuiProvider.showLoadGui` and :py:func:`~QgsProjectStorageGuiProvider.showSaveGui`).
2019-06-19 23:09:13 +02:00
The name may be translatable and ideally unique as well.
%End
virtual QString showLoadGui();
%Docstring
Opens GUI to allow user to select a project to be loaded (GUI specific to this storage type).
Returns project URI if user has picked a project or empty string if the GUI was canceled.
%End
virtual QString showSaveGui();
%Docstring
Opens GUI to allow user to select where a project should be saved (GUI specific to this storage type).
Returns project URI if user has picked a destination or empty string if the GUI was canceled.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectstorageguiprovider.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/