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

marble

  • Marble
  • FileStorageWatcher
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Marble::FileStorageWatcher Class Reference

#include <FileStorageWatcher.h>

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

Public Slots

void addToCurrentSize (qint64 bytes)
 
void resetCurrentSize ()
 
void setCacheLimit (quint64 bytes)
 
void updateTheme (const QString &mapTheme)
 

Signals

void cleared ()
 
void sizeChanged (qint64 bytes)
 

Public Member Functions

 FileStorageWatcher (const QString &dataDirectory=QString(), QObject *parent=0)
 
 ~FileStorageWatcher ()
 
quint64 cacheLimit ()
 

Protected Member Functions

void run ()
 

Detailed Description

Definition at line 113 of file FileStorageWatcher.h.

Constructor & Destructor Documentation

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

Creates a new FileStorageWatcher, which is a thread watching the space Marble takes on the hard drive and deletes files if necessary.

Parameters
dataDirectoryThe directory where the data is stored
parentThe parent of the object.

Definition at line 306 of file FileStorageWatcher.cpp.

FileStorageWatcher::~FileStorageWatcher ( )

Definition at line 323 of file FileStorageWatcher.cpp.

Member Function Documentation

void FileStorageWatcher::addToCurrentSize ( qint64  bytes)
slot

Add bytes to the current cache size.

So FileStorageWatcher is aware of the current cache size.

Definition at line 362 of file FileStorageWatcher.cpp.

quint64 FileStorageWatcher::cacheLimit ( )

Returns the limit of the cache in bytes.

Definition at line 354 of file FileStorageWatcher.cpp.

void Marble::FileStorageWatcher::cleared ( )
signal
void FileStorageWatcher::resetCurrentSize ( )
slot

Setting current cache size to 0.

Definition at line 367 of file FileStorageWatcher.cpp.

void FileStorageWatcher::run ( )
protected

The function being called at starting Thread.

The thread is started by QThread::start().

Definition at line 382 of file FileStorageWatcher.cpp.

void FileStorageWatcher::setCacheLimit ( quint64  bytes)
slot

Sets the limit of the cache in bytes.

Definition at line 343 of file FileStorageWatcher.cpp.

void Marble::FileStorageWatcher::sizeChanged ( qint64  bytes)
signal
void FileStorageWatcher::updateTheme ( const QString &  mapTheme)
slot

Updates the name of the theme.

Important for deleting behavior.

Parameters
mapThemeThe identifier of the new theme.

Definition at line 372 of file FileStorageWatcher.cpp.


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