diff -r af3740e3753f -r c5b304f4d89b mpdata/src/mpplaybackdata.cpp --- a/mpdata/src/mpplaybackdata.cpp Wed Aug 18 09:46:20 2010 +0300 +++ b/mpdata/src/mpplaybackdata.cpp Thu Sep 02 20:24:03 2010 +0300 @@ -68,6 +68,13 @@ title, artist and album name. */ +/*! + \fn void fileCorrupted() + + This signal is emitted when a file is found corrupted. Call by + PlayBackWrapper. + */ + /*! @@ -174,16 +181,10 @@ { TX_ENTRY_ARGS( "artist = " << artist ) bool change = false; - // data is different or mArtist was not set befor or it was reset. - // When artist is empty and mArtist is empty mArtist should be unknown text. + // data is different or mArtist was not set before or it was reset. if ( artist != mArtist || mArtist.isNull()) { change = true; - if ( artist.isEmpty() ){ - mArtist = hbTrId( "txt_mus_other_unknown3" ); - } - else { - mArtist = artist; - } + mArtist = artist; } TX_EXIT return change; @@ -205,16 +206,10 @@ { TX_ENTRY_ARGS( "album = " << album ) bool change = false; - // data is different or mAlbum was not set befor or it was reset. - // when album is empty and mAlbum is empty mAlbum should be unknown text. + // data is different or mAlbum was not set before or it was reset. if ( album != mAlbum || mAlbum.isNull() ) { change = true; - if ( album.isEmpty() ){ - mAlbum = hbTrId( "txt_mus_other_unknown4" ); - } - else{ - mAlbum = album; - } + mAlbum = album; } TX_EXIT return change; @@ -411,6 +406,14 @@ } /*! + Emit fileCorrupted(id) signal when a file with id is corrupted +*/ +void MpPlaybackData::setCorrupted( int id ) +{ + emit fileCorrupted( id ); +} + +/*! Slot to handle the album art thumb. */ void MpPlaybackData::thumbnailReady(