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

marble

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

#include <FileStoragePolicy.h>

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

Public Member Functions

 FileStoragePolicy (const QString &dataDirectory=QString(), QObject *parent=0)
 
 ~FileStoragePolicy ()
 
void clearCache ()
 
bool fileExists (const QString &fileName) const
 
QString lastErrorMessage () const
 
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 19 of file FileStoragePolicy.h.

Constructor & Destructor Documentation

FileStoragePolicy::FileStoragePolicy ( const QString &  dataDirectory = QString(),
QObject *  parent = 0 
)
explicit

Creates a new file storage policy.

Parameters
dataDirectoryThe directory where the data should go to.

Definition at line 28 of file FileStoragePolicy.cpp.

FileStoragePolicy::~FileStoragePolicy ( )

Destroys the cache storage policy.

Definition at line 39 of file FileStoragePolicy.cpp.

Member Function Documentation

void FileStoragePolicy::clearCache ( )
virtual

Clears the cache.

Implements Marble::StoragePolicy.

Definition at line 86 of file FileStoragePolicy.cpp.

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

Returns whether the fileName exists already.

Implements Marble::StoragePolicy.

Definition at line 43 of file FileStoragePolicy.cpp.

QString FileStoragePolicy::lastErrorMessage ( ) const
virtual

Returns the last error message.

Implements Marble::StoragePolicy.

Definition at line 140 of file FileStoragePolicy.cpp.

bool FileStoragePolicy::updateFile ( const QString &  fileName,
const QByteArray &  data 
)
virtual

Updates the fileName with the given data.

Implements Marble::StoragePolicy.

Definition at line 49 of file FileStoragePolicy.cpp.


The documentation for this class was generated from the following files:
  • FileStoragePolicy.h
  • FileStoragePolicy.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