marble/src
CacheStoragePolicy Class Reference
#include <CacheStoragePolicy.h>
Inheritance diagram for CacheStoragePolicy:

Detailed Description
Definition at line 17 of file CacheStoragePolicy.h.
Public Member Functions | |
| CacheStoragePolicy (const QString &cacheDirectory) | |
| ~CacheStoragePolicy () | |
| bool | fileExists (const QString &fileName) const |
| bool | updateFile (const QString &fileName, const QByteArray &data) |
| QString | lastErrorMessage () const |
| QByteArray | data (const QString &fileName) |
Constructor & Destructor Documentation
| CacheStoragePolicy::CacheStoragePolicy | ( | const QString & | cacheDirectory | ) |
Creates a new cache storage policy.
- Parameters:
-
cacheDirectory The directory which shall be used for the cache.
Definition at line 15 of file CacheStoragePolicy.cpp.
| CacheStoragePolicy::~CacheStoragePolicy | ( | ) |
Member Function Documentation
| bool CacheStoragePolicy::fileExists | ( | const QString & | fileName | ) | const [virtual] |
Returns whether the fileName exists already.
Implements StoragePolicy.
Definition at line 26 of file CacheStoragePolicy.cpp.
| bool CacheStoragePolicy::updateFile | ( | const QString & | fileName, | |
| const QByteArray & | data | |||
| ) | [virtual] |
Updates the fileName with the given data.
Implements StoragePolicy.
Definition at line 31 of file CacheStoragePolicy.cpp.
| QString CacheStoragePolicy::lastErrorMessage | ( | ) | const [virtual] |
Returns the last error message.
Implements StoragePolicy.
Definition at line 41 of file CacheStoragePolicy.cpp.
| QByteArray CacheStoragePolicy::data | ( | const QString & | fileName | ) |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference