marble
#include <FileStorageWatcher.h>
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
|
explicit |
Creates a new FileStorageWatcher, which is a thread watching the space Marble takes on the hard drive and deletes files if necessary.
- Parameters
-
dataDirectory The directory where the data is stored parent The 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
|
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.
|
signal |
|
slot |
Setting current cache size to 0.
Definition at line 367 of file FileStorageWatcher.cpp.
|
protected |
The function being called at starting Thread.
The thread is started by QThread::start().
Definition at line 382 of file FileStorageWatcher.cpp.
|
slot |
Sets the limit of the cache in bytes
.
Definition at line 343 of file FileStorageWatcher.cpp.
|
signal |
|
slot |
Updates the name of the theme.
Important for deleting behavior.
- Parameters
-
mapTheme The identifier of the new theme.
Definition at line 372 of file FileStorageWatcher.cpp.
The documentation for this class was generated from the following files:
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.