xbmc
Public Member Functions | Protected Attributes | List of all members
CThumbLoader Class Reference
Inheritance diagram for CThumbLoader:
Inheritance graph
[legend]
Collaboration diagram for CThumbLoader:
Collaboration graph
[legend]

Public Member Functions

void OnLoaderStart () override
 
void OnLoaderFinish () override
 
virtual bool FillLibraryArt (CFileItem &item)
 helper function to fill the art for a library item More...
 
virtual std::string GetCachedImage (const CFileItem &item, const std::string &type)
 Checks whether the given item has an image listed in the texture database. More...
 
virtual void SetCachedImage (const CFileItem &item, const std::string &type, const std::string &image)
 Associate an image with the given item in the texture database. More...
 
- Public Member Functions inherited from CBackgroundInfoLoader
void Load (CFileItemList &items)
 
bool IsLoading ()
 
void Run () override
 
void SetObserver (IBackgroundLoaderObserver *pObserver)
 
void SetProgressCallback (IProgressCallback *pCallback)
 
virtual bool LoadItem (CFileItem *pItem)
 
virtual bool LoadItemCached (CFileItem *pItem)
 
virtual bool LoadItemLookup (CFileItem *pItem)
 
void StopThread ()
 
void StopAsync ()
 
- Public Member Functions inherited from IRunnable
virtual void Cancel ()
 

Protected Attributes

CTextureDatabasem_textureDatabase
 
- Protected Attributes inherited from CBackgroundInfoLoader
CFileItemListm_pVecItems
 
std::vector< CFileItemPtrm_vecItems
 
CCriticalSection m_lock
 
volatile bool m_bIsLoading
 
volatile bool m_bStop
 
CThreadm_thread
 
IBackgroundLoaderObserverm_pObserver
 
IProgressCallbackm_pProgressCallback
 

Additional Inherited Members

Member Function Documentation

◆ FillLibraryArt()

virtual bool CThumbLoader::FillLibraryArt ( CFileItem item)
inlinevirtual

helper function to fill the art for a library item

Parameters
itema CFileItem
Returns
true if we fill art, false otherwise

Reimplemented in CVideoThumbLoader, and CMusicThumbLoader.

◆ GetCachedImage()

std::string CThumbLoader::GetCachedImage ( const CFileItem item,
const std::string &  type 
)
virtual

Checks whether the given item has an image listed in the texture database.

Parameters
itemCFileItem to check
typethe type of image to retrieve
Returns
the image associated with this item

◆ SetCachedImage()

void CThumbLoader::SetCachedImage ( const CFileItem item,
const std::string &  type,
const std::string &  image 
)
virtual

Associate an image with the given item in the texture database.

Parameters
itemCFileItem to associate the image with
typethe type of image
imagethe URL of the image

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