Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
MUSIC_INFO::CMusicInfoLoader Class Reference

#include <MusicInfoLoader.h>

Inheritance diagram for MUSIC_INFO::CMusicInfoLoader:
CBackgroundInfoLoader IRunnable

Public Member Functions

 CMusicInfoLoader ()
 
 ~CMusicInfoLoader () override
 
void UseCacheOnHD (const std::string &strFileName)
 
bool LoadItem (CFileItem *pItem) override
 
bool LoadItemCached (CFileItem *pItem) override
 
bool LoadItemLookup (CFileItem *pItem) override
 
- Public Member Functions inherited from CBackgroundInfoLoader
 CBackgroundInfoLoader ()
 
 ~CBackgroundInfoLoader () override
 
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 ()
 
virtual ~IRunnable ()=default
 

Static Public Member Functions

static bool LoadAdditionalTagInfo (CFileItem *pItem)
 

Protected Member Functions

void OnLoaderStart () override
 
void OnLoaderFinish () override
 
void LoadCache (const std::string &strFileName, CFileItemList &items)
 
void SaveCache (const std::string &strFileName, CFileItemList &items)
 

Protected Attributes

std::string m_strCacheFileName
 
CFileItemListm_mapFileItems
 
MAPSONGS m_songsMap
 
std::string m_strPrevPath
 
CMusicDatabase m_musicDatabase
 
unsigned int m_databaseHits = 0
 
unsigned int m_tagReads = 0
 
CMusicThumbLoaderm_thumbLoader
 
- 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}
 

Constructor & Destructor Documentation

◆ CMusicInfoLoader()

CMusicInfoLoader::CMusicInfoLoader ( )

◆ ~CMusicInfoLoader()

CMusicInfoLoader::~CMusicInfoLoader ( )
override

Member Function Documentation

◆ LoadAdditionalTagInfo()

bool CMusicInfoLoader::LoadAdditionalTagInfo ( CFileItem * pItem)
static

◆ LoadCache()

void CMusicInfoLoader::LoadCache ( const std::string & strFileName,
CFileItemList & items )
protected

◆ LoadItem()

bool CMusicInfoLoader::LoadItem ( CFileItem * pItem)
overridevirtual

Reimplemented from CBackgroundInfoLoader.

◆ LoadItemCached()

bool CMusicInfoLoader::LoadItemCached ( CFileItem * pItem)
overridevirtual

Reimplemented from CBackgroundInfoLoader.

◆ LoadItemLookup()

bool CMusicInfoLoader::LoadItemLookup ( CFileItem * pItem)
overridevirtual

Reimplemented from CBackgroundInfoLoader.

◆ OnLoaderFinish()

void CMusicInfoLoader::OnLoaderFinish ( )
overrideprotectedvirtual

Reimplemented from CBackgroundInfoLoader.

◆ OnLoaderStart()

void CMusicInfoLoader::OnLoaderStart ( )
overrideprotectedvirtual

Reimplemented from CBackgroundInfoLoader.

◆ SaveCache()

void CMusicInfoLoader::SaveCache ( const std::string & strFileName,
CFileItemList & items )
protected

◆ UseCacheOnHD()

void CMusicInfoLoader::UseCacheOnHD ( const std::string & strFileName)

Member Data Documentation

◆ m_databaseHits

unsigned int MUSIC_INFO::CMusicInfoLoader::m_databaseHits = 0
protected

◆ m_mapFileItems

CFileItemList* MUSIC_INFO::CMusicInfoLoader::m_mapFileItems
protected

◆ m_musicDatabase

CMusicDatabase MUSIC_INFO::CMusicInfoLoader::m_musicDatabase
protected

◆ m_songsMap

MAPSONGS MUSIC_INFO::CMusicInfoLoader::m_songsMap
protected

◆ m_strCacheFileName

std::string MUSIC_INFO::CMusicInfoLoader::m_strCacheFileName
protected

◆ m_strPrevPath

std::string MUSIC_INFO::CMusicInfoLoader::m_strPrevPath
protected

◆ m_tagReads

unsigned int MUSIC_INFO::CMusicInfoLoader::m_tagReads = 0
protected

◆ m_thumbLoader

CMusicThumbLoader* MUSIC_INFO::CMusicInfoLoader::m_thumbLoader
protected

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