QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSCONFIGCACHE_H
19 #define QGSCONFIGCACHE_H
21 #include "qgsconfig.h"
25 #include <QFileSystemWatcher>
27 #include <QDomDocument>
29 #include "qgis_server.h"
49 virtual QString name()
const = 0;
55 virtual void entryRemoved(
const QString &path ) = 0;
61 virtual void entryInserted(
const QString &path ) = 0;
98 void removeEntry(
const QString &path );
133 QDomDocument *xmlDocument( const QString &filePath );
135 QCache<QString, QDomDocument> mXmlDocumentCache;
142 void cacheProject( const QString &path,
QgsProject *project );
148 void removeChangedEntry( const QString &path );
151 void removeChangedEntries();
169 QString
name()
const override {
return QStringLiteral(
"filesystem" ); };
188 QFileSystemWatcher mFileSystemWatcher;
208 QString
name()
const override {
return QStringLiteral(
"periodic" ); };
216 void setCheckInterval(
int msec );
258 QString
name()
const override {
return QStringLiteral(
"off" ); };
278 #endif // QGSCONFIGCACHE_H
QString name() const override
The name of the strategy.
Cache for server configuration.
Periodic system cache strategy for server configuration.
virtual void attach(QgsConfigCache *cache)=0
Attache cache to this strategy.
int checkInterval() const
Returns the invalidation check interval.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
virtual void entryRemoved(const QString &path)=0
Called when an entry is removed from cache.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
Provides a way to retrieve settings by prioritizing according to environment variables,...
QString name() const override
The name of the strategy.
Null system cache strategy for server configuration, completely disable cache invalidation invalidati...
virtual void entryInserted(const QString &path)=0
Called when an entry is removed from cache.
QString name() const override
The name of the strategy.
File system cache strategy for server configuration.
QString strategyName() const
Returns the name of the current strategy.
Abstract base class for implementing cache invalidation strategy.