marble
#include <CacheStoragePolicy.h>

Public Member Functions | |
CacheStoragePolicy (const QString &cacheDirectory) | |
~CacheStoragePolicy () | |
quint64 | cacheLimit () const |
void | clearCache () |
QByteArray | data (const QString &fileName) |
bool | fileExists (const QString &fileName) const |
QString | lastErrorMessage () const |
void | setCacheLimit (quint64 bytes) |
bool | updateFile (const QString &fileName, const QByteArray &data) |
![]() | |
StoragePolicy (QObject *parent=0) | |
virtual | ~StoragePolicy () |
Additional Inherited Members | |
![]() | |
void | cleared () |
void | sizeChanged (qint64) |
Detailed Description
Definition at line 25 of file CacheStoragePolicy.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new cache storage policy.
- Parameters
-
cacheDirectory The directory which shall be used for the cache.
Definition at line 20 of file CacheStoragePolicy.cpp.
CacheStoragePolicy::~CacheStoragePolicy | ( | ) |
Destroys the cache storage policy.
Definition at line 27 of file CacheStoragePolicy.cpp.
Member Function Documentation
quint64 CacheStoragePolicy::cacheLimit | ( | ) | const |
Returns the limit of the cache in bytes.
Definition at line 69 of file CacheStoragePolicy.cpp.
|
virtual |
Clears the cache.
Implements Marble::StoragePolicy.
Definition at line 46 of file CacheStoragePolicy.cpp.
QByteArray CacheStoragePolicy::data | ( | const QString & | fileName | ) |
Returns the data of a file.
Definition at line 56 of file CacheStoragePolicy.cpp.
|
virtual |
Returns whether the fileName
exists already.
Implements Marble::StoragePolicy.
Definition at line 31 of file CacheStoragePolicy.cpp.
|
virtual |
Returns the last error message.
Implements Marble::StoragePolicy.
Definition at line 51 of file CacheStoragePolicy.cpp.
void CacheStoragePolicy::setCacheLimit | ( | quint64 | bytes | ) |
Sets the limit of the cache in bytes
.
Definition at line 64 of file CacheStoragePolicy.cpp.
|
virtual |
Updates the fileName
with the given data
.
Implements Marble::StoragePolicy.
Definition at line 36 of file CacheStoragePolicy.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.