[Marble-devel] Marble FileStorageWatcher

Bastian Holst bastianholst at gmx.de
Thu Mar 12 18:51:39 CET 2009


I attached a patch adding support for Persistent Tile Cache limitation in 
Marble. It is mostly a watcher which gets signals for added and removed files. 
After the startup of Marble it checks the size of the disk cache manually and 
adds the files sizes of new files. If the cache becomes too large, it deletes 
files from the hard disk.
I hope somebody takes a look at this :).


I wrote:
> Hi,
> I work on a watcher for Marble which keeps track of the size of the
> persistent/hard disk cache of Marble. I heard you are working on speeding
> up downloads.
> At the moment I have the following solution:
> - I made a subclass of QThread watching the cache size.
> - This Thread is run after the startup of marble, so it doesn't make it
> slower. Then it measures the file size, this takes a lot of time (for my
> first approach I didn't make a Thread, it took (for the first time) about
> 10 s, that was to slow.
> - Additionally I added slots (for adding [sending file name/(perhaps better
> sending file size, file could be deleted again)] and removing files
> [sending file size]). The corresponding signals are implemented as signals
> of StoragePolicy and the implementations like FileStoragePolicy have to
> send it.
> - Deleting files is another story.
> Do you see any problem at this approach, especially making StoragePolicy a
> QObject and adding signals.
> Bastian Holst
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: file_storage_watcher.diff
Type: text/x-patch
Size: 28211 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/marble-devel/attachments/20090312/8f580287/attachment-0001.diff 

More information about the Marble-devel mailing list