dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
cache.h
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 #ifndef CACHE_H
28 #define CACHE_H
29 
30 #include "pureimagecache.h"
31 #include "debugheader.h"
32 #include "corecommon.h"
33 
34 namespace core {
35  class TLMAPWIDGET_EXPORT Cache
36  {
37  public:
38  static Cache* Instance();
39 
40 
42  QString CacheLocation();
43  void setCacheLocation(const QString& value);
44  void CacheGeocoder(const QString &urlEnd,const QString &content);
45  QString GetGeocoderFromCache(const QString &urlEnd);
46  void CachePlacemark(const QString &urlEnd,const QString &content);
47  QString GetPlacemarkFromCache(const QString &urlEnd);
48  void CacheRoute(const QString &urlEnd,const QString &content);
49  QString GetRouteFromCache(const QString &urlEnd);
50 
51  private:
52  Cache();
53  Cache(Cache const&){}
54  Cache& operator=(Cache const&){ return *this; }
55  static Cache* m_pInstance;
56  QString cache;
57  QString routeCache;
58  QString geoCache;
59  QString placemarkCache;
60  };
61 
62 }
63 #endif // CACHE_H
PureImageCache ImageCache
Definition: cache.h:41