|
| CMusicInfoScraper (const ADDON::ScraperPtr &scraper) |
|
void | FindAlbumInfo (const std::string &strAlbum, const std::string &strArtist="") |
|
void | LoadAlbumInfo (int iAlbum) |
|
void | FindArtistInfo (const std::string &strArtist) |
|
void | LoadArtistInfo (int iArtist, const std::string &strSearch) |
|
bool | Completed () |
|
bool | Succeeded () |
|
void | Cancel () |
|
bool | IsCanceled () |
|
int | GetAlbumCount () const |
|
int | GetArtistCount () const |
|
CMusicAlbumInfo & | GetAlbum (int iAlbum) |
|
CMusicArtistInfo & | GetArtist (int iArtist) |
|
std::vector< CMusicArtistInfo > & | GetArtists () |
|
std::vector< CMusicAlbumInfo > & | GetAlbums () |
|
void | SetScraperInfo (const ADDON::ScraperPtr &scraper) |
|
bool | CheckValidOrFallback (const std::string &fallbackScraper) |
| Checks whether we have a valid scraper. If not, we try the fallbackScraper First tests the current scraper for validity by loading it. If it is not valid we attempt to load the fallback scraper. If this is also invalid we return false. More...
|
|
| CThread (IRunnable *pRunnable, const char *ThreadName) |
|
void | Create (bool bAutoDelete=false) |
|
template<typename Rep , typename Period > |
void | Sleep (std::chrono::duration< Rep, Period > duration) |
|
bool | IsAutoDelete () const |
|
virtual void | StopThread (bool bWait=true) |
|
bool | IsRunning () const |
|
bool | IsCurrentThread () const |
|
bool | Join (std::chrono::milliseconds duration) |
|
bool | SetPriority (const ThreadPriority &priority) |
| Set the threads priority. This uses the platforms native threading library to do so.
|
|
virtual void | OnException () |
|
|
void | FindAlbumInfo () |
|
void | LoadAlbumInfo () |
|
void | FindArtistInfo () |
|
void | LoadArtistInfo () |
|
void | OnStartup () override |
|
void | Process () override |
|
| CThread (const char *ThreadName) |
|
virtual void | OnExit () |
|
WaitResponse | AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1)) |
| This call will wait on a CEvent in an interruptible way such that if stop is called on the thread the wait will return with a response indicating what happened.
|
|
|
std::vector< CMusicAlbumInfo > | m_vecAlbums |
|
std::vector< CMusicArtistInfo > | m_vecArtists |
|
std::string | m_strAlbum |
|
std::string | m_strArtist |
|
std::string | m_strSearch |
|
int | m_iAlbum |
|
int | m_iArtist |
|
bool | m_bSucceeded |
|
bool | m_bCanceled |
|
XFILE::CCurlFile * | m_http |
|
ADDON::ScraperPtr | m_scraper |
|
std::atomic< bool > | m_bStop |
|
|
static const std::thread::id | GetCurrentThreadId () |
|
static CThread * | GetCurrentThread () |
|
enum | WaitResponse { WAIT_INTERRUPTED = -1,
WAIT_SIGNALED = 0,
WAIT_TIMEDOUT = 1
} |
|
◆ CheckValidOrFallback()
bool CMusicInfoScraper::CheckValidOrFallback |
( |
const std::string & |
fallbackScraper | ) |
|
Checks whether we have a valid scraper. If not, we try the fallbackScraper First tests the current scraper for validity by loading it. If it is not valid we attempt to load the fallback scraper. If this is also invalid we return false.
- Parameters
-
fallbackScraper | name of scraper to use as a fallback |
- Returns
- true if we have a valid scraper (or the default is valid).
- Todo:
- Handle fallback mechanism
The documentation for this class was generated from the following files: