CAlbumArtLoaderBase Class Reference

#include <album_art_helpers.h>

Inheritance diagram for CAlbumArtLoaderBase:

CSimpleThread CAlbumArtLoader

List of all members.

Public Member Functions

 CAlbumArtLoaderBase ()
 ~CAlbumArtLoaderBase ()
void AddType (const GUID &p_what)
 Requests the loader to process specific album art type. See album_art_ids namespace for defined types.
bool HaveType (const GUID &p_what) const
void ResetTypes ()
void Abort ()
void Request (const char *p_path, completion_notify_ptr p_notify=NULL)
 Completion notify code is 1 when content has changed, 0 when content is the same as before the request (like, advanced to another track with the same album art data).
bool IsReady () const
bool IsWorking () const

Protected Member Functions

virtual void OnContent (const GUID &p_what, album_art_data_ptr p_data, abort_callback &p_abort)
virtual void OnContentReset ()


Detailed Description

Helper class to load album art from a separate thread (without lagging GUI). In most scenarios you will want to use CAlbumArtLoader instead of deriving from CAlbumArtLoaderBase, unless you want to additionally process the images as they are loaded. All methods meant to be called from the main thread. IMPORTANT: derived classes must call Abort() in their own destructor rather than relying on CAlbumArtLoaderBase destructor, since the thread calls virtual functions!

Constructor & Destructor Documentation

CAlbumArtLoaderBase::CAlbumArtLoaderBase (  )  [inline]

CAlbumArtLoaderBase::~CAlbumArtLoaderBase (  )  [inline]


Member Function Documentation

void CAlbumArtLoaderBase::AddType ( const GUID &  p_what  )  [inline]

Requests the loader to process specific album art type. See album_art_ids namespace for defined types.

bool CAlbumArtLoaderBase::HaveType ( const GUID &  p_what  )  const [inline]

void CAlbumArtLoaderBase::ResetTypes (  )  [inline]

void CAlbumArtLoaderBase::Abort (  )  [inline]

void CAlbumArtLoaderBase::Request ( const char *  p_path,
completion_notify_ptr  p_notify = NULL 
) [inline]

Completion notify code is 1 when content has changed, 0 when content is the same as before the request (like, advanced to another track with the same album art data).

bool CAlbumArtLoaderBase::IsReady (  )  const [inline]

bool CAlbumArtLoaderBase::IsWorking (  )  const [inline]

virtual void CAlbumArtLoaderBase::OnContent ( const GUID &  p_what,
album_art_data_ptr  p_data,
abort_callback &  p_abort 
) [inline, protected, virtual]

Reimplemented in CAlbumArtLoader.

virtual void CAlbumArtLoaderBase::OnContentReset (  )  [inline, protected, virtual]

Reimplemented in CAlbumArtLoader.


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

Generated on Fri Apr 25 18:49:40 2008 for foobar2000 SDK by  doxygen 1.5.5