QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Public Member Functions | Static Public Member Functions | List of all members
QgsConfigCache Class Reference

Cache for server configuration. More...

#include <qgsconfigcache.h>

Inheritance diagram for QgsConfigCache:
Inheritance graph
[legend]

Public Member Functions

const QgsProjectproject (const QString &path)
 If the project is not cached yet, then the project is read thanks to the path. More...
 
void removeEntry (const QString &path)
 Removes an entry from cache. More...
 

Static Public Member Functions

static QgsConfigCacheinstance ()
 Returns the current instance. More...
 

Detailed Description

Cache for server configuration.

Since
QGIS 2.8

Definition at line 37 of file qgsconfigcache.h.

Member Function Documentation

◆ instance()

QgsConfigCache * QgsConfigCache::instance ( )
static

Returns the current instance.

Definition at line 25 of file qgsconfigcache.cpp.

◆ project()

const QgsProject * QgsConfigCache::project ( const QString &  path)

If the project is not cached yet, then the project is read thanks to the path.

If the project is not available, then nullptr is returned.

Parameters
paththe filename of the QGIS project
Returns
the project or nullptr if an error happened
Since
QGIS 3.0

Definition at line 40 of file qgsconfigcache.cpp.

◆ removeEntry()

void QgsConfigCache::removeEntry ( const QString &  path)

Removes an entry from cache.

Parameters
pathThe path of the project

Definition at line 119 of file qgsconfigcache.cpp.


The documentation for this class was generated from the following files: