digiKam
Loading...
Searching...
No Matches
Digikam::LoadingCacheFileWatch Class Reference

#include <loadingcache.h>

+ Inheritance diagram for Digikam::LoadingCacheFileWatch:

Public Member Functions

void addedImage (const QString &filePath)
 
void checkFileWatch (const QString &filePath)
 
 LoadingCacheFileWatch ()=default
 
void removeImage (const QString &filePath)
 
 ~LoadingCacheFileWatch () override
 

Protected Member Functions

void notifyFileChanged (const QString &filePath)
 

Protected Attributes

class LoadingCachem_cache = nullptr
 
QHash< QString, QPair< qint64, QDateTime > > m_watchHash
 

Friends

class LoadingCache
 

Constructor & Destructor Documentation

◆ LoadingCacheFileWatch()

Digikam::LoadingCacheFileWatch::LoadingCacheFileWatch ( )
default

◆ ~LoadingCacheFileWatch()

Digikam::LoadingCacheFileWatch::~LoadingCacheFileWatch ( )
override

References m_cache.

Member Function Documentation

◆ addedImage()

void Digikam::LoadingCacheFileWatch::addedImage ( const QString &  filePath)

References m_cache, and m_watchHash.

◆ checkFileWatch()

void Digikam::LoadingCacheFileWatch::checkFileWatch ( const QString &  filePath)

◆ notifyFileChanged()

void Digikam::LoadingCacheFileWatch::notifyFileChanged ( const QString &  filePath)
protected

Convenience method. Call this to tell the cache to remove stored images for filePath from the cache. Calling this method is fast, you do not need to check if the file is contained in the cache. Do not hold the CacheLock when calling this method.

References m_cache, and Digikam::LoadingCache::notifyFileChanged().

◆ removeImage()

void Digikam::LoadingCacheFileWatch::removeImage ( const QString &  filePath)

References m_watchHash.

Friends And Related Symbol Documentation

◆ LoadingCache

friend class LoadingCache
friend

Member Data Documentation

◆ m_cache

class LoadingCache* Digikam::LoadingCacheFileWatch::m_cache = nullptr
protected

◆ m_watchHash

QHash<QString, QPair<qint64, QDateTime> > Digikam::LoadingCacheFileWatch::m_watchHash
protected

The documentation for this class was generated from the following files: