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
|
2015-05-29 10:19:51 +02:00
|
|
|
{
|
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
|
|
|
|
|
2015-05-29 10:19:51 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsconfigcache.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-07-09 16:54:42 +01:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
static QgsConfigCache *instance();
|
2018-07-09 16:54:42 +01:00
|
|
|
%Docstring
|
|
|
|
Returns the current instance.
|
|
|
|
%End
|
2015-05-29 10:19:51 +02:00
|
|
|
|
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
|
2015-05-29 10:19:51 +02:00
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
const QgsProject *project( const QString &path );
|
|
|
|
%Docstring
|
2018-07-09 16:54:42 +01:00
|
|
|
If the project is not cached yet, then the project is read thanks to the
|
2017-12-15 10:36:55 -04:00
|
|
|
path. If the project is not available, then a None is returned.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param path: the filename of the QGIS project
|
|
|
|
|
|
|
|
:return: the project or None if an error happened
|
|
|
|
|
2017-06-26 09:57:09 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2015-05-29 10:19:51 +02:00
|
|
|
|
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
|
|
|
};
|
2015-05-29 10:19:51 +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 *
|
|
|
|
************************************************************************/
|