kodi
Public Member Functions | Static Public Member Functions | List of all members
CProgramThumbLoader Class Reference
Inheritance diagram for CProgramThumbLoader:
Inheritance graph
[legend]
Collaboration diagram for CProgramThumbLoader:
Collaboration graph
[legend]

Public Member Functions

bool LoadItem (CFileItem *pItem) override
 
bool LoadItemCached (CFileItem *pItem) override
 
bool LoadItemLookup (CFileItem *pItem) override
 
virtual bool FillThumb (CFileItem &item)
 Fill the thumb of a programs item First uses a cached thumb from a previous run, then checks for a local thumb and caches it for the next run. More...
 
- Public Member Functions inherited from CThumbLoader
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)
 
void StopThread ()
 
void StopAsync ()
 
- Public Member Functions inherited from IRunnable
virtual void Cancel ()
 

Static Public Member Functions

static std::string GetLocalThumb (const CFileItem &item)
 Get a local thumb for a programs item Shortcuts are checked, then we check for a file or folder thumb. More...
 

Additional Inherited Members

- Protected Attributes inherited from CThumbLoader
CTextureDatabasem_textureDatabase
 
- Protected Attributes inherited from CBackgroundInfoLoader
CFileItemListm_pVecItems {nullptr}
 
std::vector< CFileItemPtrm_vecItems
 
CCriticalSection m_lock
 
volatile bool m_bIsLoading {false}
 
volatile bool m_bStop {true}
 
CThreadm_thread {nullptr}
 
IBackgroundLoaderObserverm_pObserver {nullptr}
 
IProgressCallbackm_pProgressCallback {nullptr}
 

Member Function Documentation

◆ FillThumb()

bool CProgramThumbLoader::FillThumb ( CFileItem item)
virtual

Fill the thumb of a programs item First uses a cached thumb from a previous run, then checks for a local thumb and caches it for the next run.

Parameters
itemthe CFileItem object to fill
Returns
true if we fill the thumb, false otherwise
See also
GetLocalThumb

◆ GetLocalThumb()

std::string CProgramThumbLoader::GetLocalThumb ( const CFileItem item)
static

Get a local thumb for a programs item Shortcuts are checked, then we check for a file or folder thumb.

Parameters
itemthe CFileItem object to check
Returns
the local thumb (if it exists)
See also
FillThumb

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