• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
CacheStoragePolicy.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2007 Tobias Koenig <tokoe@kde.org>
9 //
10 
11 #ifndef MARBLE_CACHESTORAGEPOLICY_H
12 #define MARBLE_CACHESTORAGEPOLICY_H
13 
14 #include "DiscCache.h"
15 #include "StoragePolicy.h"
16 
17 #include <QByteArray>
18 #include <QString>
19 
20 #include "marble_export.h"
21 
22 namespace Marble
23 {
24 
25 class MARBLE_EXPORT CacheStoragePolicy : public StoragePolicy
26 {
27  Q_OBJECT
28 
29  public:
35  explicit CacheStoragePolicy( const QString &cacheDirectory );
36 
40  ~CacheStoragePolicy();
41 
45  bool fileExists( const QString &fileName ) const;
46 
50  bool updateFile( const QString &fileName, const QByteArray &data );
51 
55  void clearCache();
56 
60  QString lastErrorMessage() const;
61 
65  QByteArray data( const QString &fileName );
66 
70  void setCacheLimit( quint64 bytes );
71 
75  quint64 cacheLimit() const;
76 
77  private:
78  DiscCache m_cache;
79  QString m_errorMsg;
80 };
81 
82 }
83 
84 #endif
QByteArray
Marble::StoragePolicy
Definition: StoragePolicy.h:25
DiscCache.h
Marble::CacheStoragePolicy
Definition: CacheStoragePolicy.h:25
StoragePolicy.h
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
marble_export.h
Marble::DiscCache
Definition: DiscCache.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal