2014-10-10 19:28:20 +02:00
|
|
|
/***************************************************************************
|
2015-02-03 02:21:52 +01:00
|
|
|
qgscapabilitiescache.sip
|
|
|
|
-------------------
|
2014-10-10 19:28:20 +02:00
|
|
|
begin : 2014-09-10
|
|
|
|
copyright : (C) 2014 by Alessandro Pasotti
|
|
|
|
email : a dot pasotti at itopen dot it
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2016-10-01 11:23:26 +02:00
|
|
|
/** \ingroup server
|
|
|
|
* A cache for capabilities xml documents (by configuration file path)
|
|
|
|
*/
|
2014-11-28 16:00:53 +01:00
|
|
|
class QgsCapabilitiesCache: QObject
|
2014-10-09 15:05:19 +02:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgscapabilitiescache.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2016-10-01 11:23:26 +02:00
|
|
|
/** Returns cached capabilities document (or 0 if document for configuration file not in cache)
|
|
|
|
* @param configFilePath the progect file path
|
|
|
|
* @param key key used to separate different version in different cache
|
|
|
|
*/
|
|
|
|
const QDomDocument* searchCapabilitiesDocument( const QString& configFilePath, const QString& key );
|
|
|
|
|
|
|
|
/** Inserts new capabilities document (creates a copy of the document, does not take ownership)
|
|
|
|
* @param configFilePath the project file path
|
|
|
|
* @param key key used to separate different version in different cache
|
|
|
|
* @param doc the DOM document
|
|
|
|
*/
|
|
|
|
void insertCapabilitiesDocument( const QString& configFilePath, const QString& key, const QDomDocument* doc );
|
2014-10-09 15:05:19 +02:00
|
|
|
|
2016-06-29 10:08:34 +10:00
|
|
|
/** Remove capabilities document
|
2016-06-29 10:15:50 +10:00
|
|
|
* @param path the project file path
|
2016-06-29 10:08:34 +10:00
|
|
|
* @note added in QGIS 2.16
|
|
|
|
*/
|
|
|
|
void removeCapabilitiesDocument( const QString& path );
|
|
|
|
|
2014-10-09 15:05:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|