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

marble/src

CacheStoragePolicy Class Reference

#include <CacheStoragePolicy.h>

Inheritance diagram for CacheStoragePolicy:

Inheritance graph
[legend]

List of all members.


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 (  ) 

Destroys the cache storage policy.

Definition at line 22 of file CacheStoragePolicy.cpp.


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  ) 

Returns the data of a file.

Definition at line 46 of file CacheStoragePolicy.cpp.


The documentation for this class was generated from the following files:
  • CacheStoragePolicy.h
  • CacheStoragePolicy.cpp

marble/src

Skip menu "marble/src"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal