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

marble

  • Marble
  • CacheStoragePolicy
Public Member Functions | List of all members
Marble::CacheStoragePolicy Class Reference

#include <CacheStoragePolicy.h>

Inheritance diagram for Marble::CacheStoragePolicy:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from Marble::StoragePolicy
 StoragePolicy (QObject *parent=0)
 
virtual ~StoragePolicy ()
 

Additional Inherited Members

- Signals inherited from Marble::StoragePolicy
void cleared ()
 
void sizeChanged (qint64)
 

Detailed Description

Definition at line 25 of file CacheStoragePolicy.h.

Constructor & Destructor Documentation

CacheStoragePolicy::CacheStoragePolicy ( const QString &  cacheDirectory)
explicit

Creates a new cache storage policy.

Parameters
cacheDirectoryThe 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.

void CacheStoragePolicy::clearCache ( )
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.

bool CacheStoragePolicy::fileExists ( const QString &  fileName) const
virtual

Returns whether the fileName exists already.

Implements Marble::StoragePolicy.

Definition at line 31 of file CacheStoragePolicy.cpp.

QString CacheStoragePolicy::lastErrorMessage ( ) const
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.

bool CacheStoragePolicy::updateFile ( const QString &  fileName,
const QByteArray &  data 
)
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:
  • CacheStoragePolicy.h
  • CacheStoragePolicy.cpp
This file is part of the KDE documentation.
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.

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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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