36 #include <QLinkedList> 58 using CacheSizeGetters_t = QLinkedList<std::function<int ()>>;
63 bool IsCollecting_ =
false;
109 const std::function<
int ()>& sizeGetter);
111 void UnregisterDirectory (
const QString&, CacheSizeGetters_t::iterator);
113 void handleCollect ();
Garbage collection for a set of network disk caches.
NetworkDiskCacheGC & operator=(const NetworkDiskCacheGC &)=delete
static NetworkDiskCacheGC & Instance()
Returns a single global instance of the GC manager.
Util::DefaultScopeGuard RegisterDirectory(const QString &path, const std::function< int()> &sizeGetter)
Registers the given cache path.
QFuture< qint64 > GetCurrentSize(const QString &path) const
Schedules calculation of the path total size.