digiKam
Digikam::LoadingCacheFileWatch Class Reference
+ Inheritance diagram for Digikam::LoadingCacheFileWatch:

Public Member Functions

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

Protected Member Functions

void notifyFileChanged (const QString &filePath)
 

Protected Attributes

class LoadingCachem_cache
 
QMap< QString, QPair< qint64, QDateTime > > m_watchMap
 

Friends

class LoadingCache
 

Constructor & Destructor Documentation

◆ LoadingCacheFileWatch()

Digikam::LoadingCacheFileWatch::LoadingCacheFileWatch ( )

◆ ~LoadingCacheFileWatch()

Digikam::LoadingCacheFileWatch::~LoadingCacheFileWatch ( )
override

References m_cache.

Member Function Documentation

◆ addedImage()

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

◆ 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().

Friends And Related Function Documentation

◆ LoadingCache

friend class LoadingCache
friend

Member Data Documentation

◆ m_cache

class LoadingCache* Digikam::LoadingCacheFileWatch::m_cache
protected

◆ m_watchMap

QMap<QString, QPair<qint64, QDateTime> > Digikam::LoadingCacheFileWatch::m_watchMap
protected

Referenced by addedImage(), and checkFileWatch().


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