1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/project/qgsprojectstorageregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsProjectStorageRegistry
{
%Docstring(signature="appended")
Registry of storage backends that :py:class:`QgsProject` may use.
This is a singleton that should be accessed through
:py:func:`QgsApplication.projectStorageRegistry()`.
.. versionadded:: 3.2
%End
%TypeHeaderCode
#include "qgsprojectstorageregistry.h"
%End
public:
~QgsProjectStorageRegistry();
QgsProjectStorage *projectStorageFromType( const QString &type );
%Docstring
Returns storage implementation if the storage type matches one. Returns
``None`` otherwise (it is a normal file)
%End
QgsProjectStorage *projectStorageFromUri( const QString &uri );
%Docstring
Returns storage implementation if the URI matches one. Returns ``None``
otherwise (it is a normal file)
%End
QList<QgsProjectStorage *> projectStorages() const;
%Docstring
Returns a list of registered project storage implementations
%End
void registerProjectStorage( QgsProjectStorage *storage /Transfer/ );
%Docstring
Registers a storage backend and takes ownership of it
%End
void unregisterProjectStorage( QgsProjectStorage *storage );
%Docstring
Unregisters a storage backend and destroys its instance
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/project/qgsprojectstorageregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|