QGIS API Documentation  3.14.0-Pi (9f7028fd23)
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 
20 #include "qgsservercachefilter.h"
21 
22 #include <QDomDocument>
23 
25 {
26  Q_UNUSED( serverInterface )
27 }
28 
29 QByteArray 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 
37 bool 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 
46 bool 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 
60 QByteArray 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 
68 bool 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 
77 bool 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 }
QgsServerCacheFilter::deleteCachedImages
virtual bool deleteCachedImages(const QgsProject *project) const
Deletes all cached images for a QGIS project.
Definition: qgsservercachefilter.cpp:85
QgsServerCacheFilter::getCachedDocument
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.
Definition: qgsservercachefilter.cpp:29
QgsServerCacheFilter::deleteCachedDocuments
virtual bool deleteCachedDocuments(const QgsProject *project) const
Deletes all cached documents for a QGIS project.
Definition: qgsservercachefilter.cpp:54
QgsServerRequest
Definition: qgsserverrequest.h:38
qgsservercachefilter.h
QgsProject
Definition: qgsproject.h:92
QgsServerCacheFilter::setCachedImage
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.
Definition: qgsservercachefilter.cpp:68
QgsServerCacheFilter::getCachedImage
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.
Definition: qgsservercachefilter.cpp:60
QgsServerCacheFilter::deleteCachedImage
virtual bool deleteCachedImage(const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Deletes the cached image.
Definition: qgsservercachefilter.cpp:77
QgsServerCacheFilter::setCachedDocument
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.
Definition: qgsservercachefilter.cpp:37
QgsServerCacheFilter::deleteCachedDocument
virtual bool deleteCachedDocument(const QgsProject *project, const QgsServerRequest &request, const QString &key) const
Deletes the cached document.
Definition: qgsservercachefilter.cpp:46
QgsServerCacheFilter::QgsServerCacheFilter
QgsServerCacheFilter(const QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsServerCacheFil...
Definition: qgsservercachefilter.cpp:24
QgsServerInterface
Definition: qgsserverinterface.h:60