QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
qgsservercachefilter.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsservercachefilter.cpp
3 ------------------------
4 Cache interface for QGIS Server plugins
5
6 begin : 2018-07-05
7 copyright : (C) 2018 by René-Luc D'Hont
8 email : rldhont at 3liz dot com
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
21
22#include <QDomDocument>
23
25{
26 Q_UNUSED( serverInterface )
27}
28
29QByteArray QgsServerCacheFilter::getCachedDocument( const QgsProject *project, const QgsServerRequest &request, const QString &key ) const
30{
31 Q_UNUSED( project )
32 Q_UNUSED( request )
33 Q_UNUSED( key )
34 return QByteArray();
35}
36
37bool QgsServerCacheFilter::setCachedDocument( const QDomDocument *doc, const QgsProject *project, const QgsServerRequest &request, const QString &key ) const
38{
39 Q_UNUSED( doc )
40 Q_UNUSED( project )
41 Q_UNUSED( request )
42 Q_UNUSED( key )
43 return false;
44}
45
46bool QgsServerCacheFilter::deleteCachedDocument( const QgsProject *project, const QgsServerRequest &request, const QString &key ) const
47{
48 Q_UNUSED( project )
49 Q_UNUSED( request )
50 Q_UNUSED( key )
51 return false;
52}
53
55{
56 Q_UNUSED( project )
57 return false;
58}
59
60QByteArray QgsServerCacheFilter::getCachedImage( const QgsProject *project, const QgsServerRequest &request, const QString &key ) const
61{
62 Q_UNUSED( project )
63 Q_UNUSED( request )
64 Q_UNUSED( key )
65 return QByteArray();
66}
67
68bool QgsServerCacheFilter::setCachedImage( const QByteArray *img, const QgsProject *project, const QgsServerRequest &request, const QString &key ) const
69{
70 Q_UNUSED( img )
71 Q_UNUSED( project )
72 Q_UNUSED( request )
73 Q_UNUSED( key )
74 return false;
75}
76
77bool QgsServerCacheFilter::deleteCachedImage( const QgsProject *project, const QgsServerRequest &request, const QString &key ) const
78{
79 Q_UNUSED( project )
80 Q_UNUSED( request )
81 Q_UNUSED( key )
82 return false;
83}
84
86{
87 Q_UNUSED( project )
88 return false;
89}
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition: qgsproject.h:104
virtual bool deleteCachedImage(const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Deletes the cached image.
virtual bool setCachedDocument(const QDomDocument *doc, const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Updates or inserts the document in cache like capabilities.
QgsServerCacheFilter(const QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsServerCacheFil...
virtual QByteArray getCachedImage(const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Returns cached image (or 0 if document not in cache) like tiles.
virtual bool deleteCachedDocument(const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Deletes the cached document.
virtual bool deleteCachedDocuments(const QgsProject *project) const
Deletes all cached documents for a QGIS project.
virtual QByteArray getCachedDocument(const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Returns cached document (or 0 if document not in cache) like capabilities.
virtual bool deleteCachedImages(const QgsProject *project) const
Deletes all cached images for a QGIS project.
virtual bool setCachedImage(const QByteArray *img, const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Updates or inserts the image in cache like tiles.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...