MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ImageThumb< DBFS > Class Template Reference

#include <imagethumbs.h>

Collaboration diagram for ImageThumb< DBFS >:
Collaboration graph
[legend]

Public Member Functions

 ImageThumb (DBFS *const dbfs)
 Constructor. More...
 
 ~ImageThumb ()
 Destructor . More...
 
void ClearThumbs (int devId, const QString &action)
 Clears thumbnails for a device. More...
 
QString DeleteThumbs (const ImageList &images)
 Remove specific thumbnails. More...
 
void CreateThumbnail (const ImagePtrK &im, int priority=kBackgroundPriority, bool notify=false)
 Creates a thumbnail. More...
 
void MoveThumbnail (const ImagePtrK &im)
 Renames a thumbnail. More...
 
void PauseBackground (bool pause)
 Pauses or restarts processing of background tasks (scanner requests) More...
 

Private Member Functions

int Priority (ImageItemK &im)
 Assign priority to a background task. More...
 

Private Attributes

DBFS & m_dbfs
 Db/filesystem adapter. More...
 
ThumbThread< DBFS > * m_imageThread
 Thread generating picture thumbnails. More...
 
ThumbThread< DBFS > * m_videoThread
 Thread generating video previews. More...
 

Detailed Description

template<class DBFS>
class ImageThumb< DBFS >

Definition at line 123 of file imagethumbs.h.

Constructor & Destructor Documentation

◆ ImageThumb()

template<class DBFS>
ImageThumb< DBFS >::ImageThumb ( DBFS *const  dbfs)
explicit

Constructor.

Definition at line 333 of file imagethumbs.cpp.

◆ ~ImageThumb()

template<class DBFS >
ImageThumb< DBFS >::~ImageThumb ( )

Destructor .

Definition at line 344 of file imagethumbs.cpp.

Member Function Documentation

◆ ClearThumbs()

template<class DBFS >
void ImageThumb< DBFS >::ClearThumbs ( int  devId,
const QString &  action 
)

Clears thumbnails for a device.

Parameters
devIdDevice identity
action[DEVICE] (CLOSE | CLEAR)
Warning
May block for several seconds

Definition at line 359 of file imagethumbs.cpp.

◆ DeleteThumbs()

template<class DBFS >
QString ImageThumb< DBFS >::DeleteThumbs ( const ImageList images)

Remove specific thumbnails.

Parameters
imagesList of obselete images
Returns
QString Csv list of deleted ids

Definition at line 390 of file imagethumbs.cpp.

◆ CreateThumbnail()

template<class DBFS >
void ImageThumb< DBFS >::CreateThumbnail ( const ImagePtrK im,
int  priority = kBackgroundPriority,
bool  notify = false 
)

Creates a thumbnail.

Parameters
imImage
priorityRequest priority
notifyIf true a THUMB_AVAILABLE event will be generated

Definition at line 422 of file imagethumbs.cpp.

◆ MoveThumbnail()

template<class DBFS >
void ImageThumb< DBFS >::MoveThumbnail ( const ImagePtrK im)

Renames a thumbnail.

Parameters
imImage

Definition at line 453 of file imagethumbs.cpp.

◆ PauseBackground()

template<class DBFS >
void ImageThumb< DBFS >::PauseBackground ( bool  pause)

Pauses or restarts processing of background tasks (scanner requests)

Definition at line 478 of file imagethumbs.cpp.

◆ Priority()

template<class DBFS>
int ImageThumb< DBFS >::Priority ( ImageItemK im)
inlineprivate

Assign priority to a background task.

Definition at line 144 of file imagethumbs.h.

Member Data Documentation

◆ m_dbfs

template<class DBFS>
DBFS& ImageThumb< DBFS >::m_dbfs
private

Db/filesystem adapter.

Definition at line 148 of file imagethumbs.h.

◆ m_imageThread

template<class DBFS>
ThumbThread<DBFS>* ImageThumb< DBFS >::m_imageThread
private

Thread generating picture thumbnails.

Definition at line 150 of file imagethumbs.h.

◆ m_videoThread

template<class DBFS>
ThumbThread<DBFS>* ImageThumb< DBFS >::m_videoThread
private

Thread generating video previews.

Definition at line 152 of file imagethumbs.h.


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