QGIS/python/server/auto_generated/qgsconfigcache.sip.in

67 lines
2.0 KiB
Plaintext
Raw Normal View History

2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsconfigcache.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsConfigCache : QObject
{
2017-06-26 09:57:09 +02:00
%Docstring
2018-05-25 07:49:20 +10:00
Cache for server configuration.
2018-07-10 17:19:31 +01:00
.. versionadded:: 2.8
2017-06-26 09:57:09 +02:00
%End
%TypeHeaderCode
#include "qgsconfigcache.h"
%End
public:
2018-07-09 16:54:42 +01:00
static QgsConfigCache *instance();
2018-07-09 16:54:42 +01:00
%Docstring
Returns the current instance.
%End
2017-06-26 09:57:09 +02:00
void removeEntry( const QString &path );
2018-07-09 16:54:42 +01:00
%Docstring
Removes an entry from cache.
2018-07-11 20:55:54 +01:00
:param path: The path of the project
2018-07-09 16:54:42 +01:00
%End
const QgsProject *project( const QString &path, QgsServerSettings *settings = 0 );
2017-06-26 09:57:09 +02:00
%Docstring
If the project is not cached yet, then the project is read from the
path. If the project is not available, then ``None`` is returned.
If the project contains any bad layer it is considered unavailable
unless the server configuration variable QGIS_SERVER_IGNORE_BAD_LAYERS
passed in the optional settings argument is set to ``True`` (the default
value is ``False``).
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param path: the filename of the QGIS project
:param settings: QGIS server settings
2017-12-15 10:36:55 -04:00
:return: the project or ``None`` if an error happened
2017-12-15 10:36:55 -04:00
2017-06-26 09:57:09 +02:00
.. versionadded:: 3.0
%End
2017-06-26 09:57:09 +02:00
private:
2018-01-16 11:41:23 -04:00
QgsConfigCache();
2017-06-26 09:57:09 +02:00
};
2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsconfigcache.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/