digiKam
Digikam::LoadingCacheInterface Class Reference

Static Public Member Functions

static void cleanCache ()
 
static void cleanThumbnailCache ()
 
static void cleanUp ()
 
static void connectToSignalFileChanged (QObject *const object, const char *slot)
 
static void fileChanged (const QString &filePath, bool notify=true)
 
static void initialize ()
 
static void putImage (const QString &filePath, const DImg &img)
 
static void setCacheOptions (int cacheSize)
 

Member Function Documentation

◆ cleanCache()

void Digikam::LoadingCacheInterface::cleanCache ( )
static

remove all images from the cache (e.g. when loading settings changed) Does not affect thumbnails.

References Digikam::LoadingCache::cache(), and Digikam::LoadingCache::removeImages().

◆ cleanThumbnailCache()

void Digikam::LoadingCacheInterface::cleanThumbnailCache ( )
static

Remove all thumbnails from the thumbnail cache. Does not affect main image cache.

References Digikam::LoadingCache::cache(), and Digikam::LoadingCache::removeThumbnails().

Referenced by Digikam::ItemIconView::slotRefresh().

◆ cleanUp()

void Digikam::LoadingCacheInterface::cleanUp ( )
static

◆ connectToSignalFileChanged()

void Digikam::LoadingCacheInterface::connectToSignalFileChanged ( QObject *const  object,
const char *  slot 
)
static

Connect the given object/slot to the signal void fileChanged(const QString& filePath); which is emitted when the cache gains knowledge about a possible change of this file on disk.

References Digikam::LoadingCache::cache(), and fileChanged().

Referenced by Digikam::ImportCategorizedView::ImportCategorizedView(), Digikam::ItemCategorizedView::ItemCategorizedView(), and Digikam::QueuePool::QueuePool().

◆ fileChanged()

void Digikam::LoadingCacheInterface::fileChanged ( const QString &  filePath,
bool  notify = true 
)
static

◆ initialize()

void Digikam::LoadingCacheInterface::initialize ( )
static

◆ putImage()

void Digikam::LoadingCacheInterface::putImage ( const QString &  filePath,
const DImg img 
)
static

◆ setCacheOptions()

void Digikam::LoadingCacheInterface::setCacheOptions ( int  cacheSize)
static

Set cache size in Megabytes. Set to 0 to disable caching.

References Digikam::LoadingCache::cache(), and Digikam::LoadingCache::setCacheSize().


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