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

Detailed Description
Definition at line 16 of file FileStoragePolicy.h.
Public Member Functions | |
| FileStoragePolicy (const QString &dataDirectory=QString()) | |
| ~FileStoragePolicy () | |
| bool | fileExists (const QString &fileName) const |
| bool | updateFile (const QString &fileName, const QByteArray &data) |
| QString | lastErrorMessage () const |
Constructor & Destructor Documentation
Creates a new file storage policy.
- Parameters:
-
dataDirectory The directory where the data should go to.
Definition at line 19 of file FileStoragePolicy.cpp.
| FileStoragePolicy::~FileStoragePolicy | ( | ) |
Member Function Documentation
| bool FileStoragePolicy::fileExists | ( | const QString & | fileName | ) | const [virtual] |
Returns whether the fileName exists already.
Implements StoragePolicy.
Definition at line 33 of file FileStoragePolicy.cpp.
| bool FileStoragePolicy::updateFile | ( | const QString & | fileName, | |
| const QByteArray & | data | |||
| ) | [virtual] |
Updates the fileName with the given data.
Implements StoragePolicy.
Definition at line 40 of file FileStoragePolicy.cpp.
| QString FileStoragePolicy::lastErrorMessage | ( | ) | const [virtual] |
Returns the last error message.
Implements StoragePolicy.
Definition at line 71 of file FileStoragePolicy.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference