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

Signals

void signalThumbInfoReady (const CamItemInfo &)
 

Public Member Functions

CameraControllercameraController () const
 
 CameraThumbsCtrl (CameraController *const ctrl, QWidget *const parent)
 
void clearCache ()
 
bool getThumbInfo (const CamItemInfo &info, CachedItem &item) const
 
void setCacheSize (int numberOfItems)
 
void updateThumbInfoFromCache (const CamItemInfo &info)
 
 ~CameraThumbsCtrl () override
 

Constructor & Destructor Documentation

◆ CameraThumbsCtrl()

Digikam::CameraThumbsCtrl::CameraThumbsCtrl ( CameraController *const  ctrl,
QWidget *const  parent 
)
explicit

◆ ~CameraThumbsCtrl()

Digikam::CameraThumbsCtrl::~CameraThumbsCtrl ( )
override

References clearCache().

Member Function Documentation

◆ cameraController()

CameraController * Digikam::CameraThumbsCtrl::cameraController ( ) const

Return camera controller instance.

Referenced by Digikam::ImportItemModel::setCameraThumbsController().

◆ clearCache()

void Digikam::CameraThumbsCtrl::clearCache ( )

Referenced by ~CameraThumbsCtrl().

◆ getThumbInfo()

bool Digikam::CameraThumbsCtrl::getThumbInfo ( const CamItemInfo info,
CachedItem item 
) const

Fill item with relevant information. if item is not in cache, return false and information will be dispatched later through signalThumbInfoReady(), else return true and information is available immediately.

References Digikam::ThumbnailSize::maxThumbsSize(), Digikam::CamItemInfo::name, and Digikam::CamItemInfo::url().

Referenced by updateThumbInfoFromCache().

◆ setCacheSize()

void Digikam::CameraThumbsCtrl::setCacheSize ( int  numberOfItems)

◆ signalThumbInfoReady

void Digikam::CameraThumbsCtrl::signalThumbInfoReady ( const CamItemInfo )
signal

◆ updateThumbInfoFromCache()

void Digikam::CameraThumbsCtrl::updateThumbInfoFromCache ( const CamItemInfo info)

Force controller to update info from device in cache.

References getThumbInfo(), and Digikam::CamItemInfo::url().


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