QGIS API Documentation  2.12.0-Lyon
qgscapabilitiescache.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscapabilitiescache.h
3  ----------------------
4  begin : May 11th, 2011
5  copyright : (C) 2011 by Marco Hugentobler
6  email : marco dot hugentobler at sourcepole dot ch
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSCAPABILITIESCACHE_H
19 #define QGSCAPABILITIESCACHE_H
20 
21 #include <QDomDocument>
22 #include <QFileSystemWatcher>
23 #include <QHash>
24 #include <QObject>
25 
27 class SERVER_EXPORT QgsCapabilitiesCache : public QObject
28 {
29  Q_OBJECT
30  public:
33 
35  const QDomDocument* searchCapabilitiesDocument( QString configFilePath, QString version );
37  void insertCapabilitiesDocument( QString configFilePath, QString version, const QDomDocument* doc );
38 
39  private:
41  QFileSystemWatcher mFileSystemWatcher;
42 
43  private slots:
45  void removeChangedEntry( const QString &path );
46 };
47 
48 #endif // QGSCAPABILITIESCACHE_H
A cache for capabilities xml documents (by configuration file path)