Exemplo n.º 1
0
void TopLists::unloadLists() {
	m_albumsLoaded = false;
	m_artistsLoaded = false;
	m_tracksLoaded = false;

	removeAllTracks();
	removeAllAlbums();
	removeAllArtists();
}
Exemplo n.º 2
0
  Search::~Search() {
    //we need to wait for the results
    //m_cancelSearch = true;
    //while (m_currentSearch != NULL)
    //  ;
    Logger::printOut("cleaning after search");
    removeAllTracks();
    removeAllAlbums();
    removeAllArtists();
    Logger::printOut("cleaning after search done");

  }
Exemplo n.º 3
0
	SxArtist::~SxArtist() {
		while (m_isLoadingDetails) {
			//Session::getInstance()->processEvents();
			Logger::printOut("waiting for artist to die");
		}

		removeAllTracks();
		removeAllAlbums();
		removeAllArtists();

		if (m_thumb)
			ThumbStore::getInstance()->removeThumb(m_thumb);
		delete m_uri;
		if (hasDetails() && m_browse != NULL)
            m_dll->sp_artistbrowse_release(m_browse);
        m_dll->sp_artist_release(m_spArtist);
        delete m_dll;
	}