本文整理汇总了C++中lastfm::Track::albumArtist方法的典型用法代码示例。如果您正苦于以下问题:C++ Track::albumArtist方法的具体用法?C++ Track::albumArtist怎么用?C++ Track::albumArtist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lastfm::Track
的用法示例。
在下文中一共展示了Track::albumArtist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: printCorrected
void
ScrobblerAdapter::announceTrackCorrections( const lastfm::Track &track )
{
static const lastfm::Track::Corrections orig = lastfm::Track::Original;
static const lastfm::Track::Corrections correct = lastfm::Track::Corrected;
QString trackName = i18nc( "%1 is artist, %2 is title", "%1 - %2",
track.artist().name(), track.title() );
QStringList lines;
lines << i18n( "Last.fm suggests that some tags of track <b>%1</b> should be "
"corrected:", trackName );
QString line;
line = printCorrected( Meta::valTitle, track.title( orig ), track.title( correct ) );
if( !line.isEmpty() )
lines << line;
line = printCorrected( Meta::valAlbum, track.album( orig ), track.album( correct ) );
if( !line.isEmpty() )
lines << line;
line = printCorrected( Meta::valArtist, track.artist( orig ), track.artist( correct ) );
if( !line.isEmpty() )
lines << line;
line = printCorrected( Meta::valAlbumArtist, track.albumArtist( orig ), track.albumArtist( correct ) );
if( !line.isEmpty() )
lines << line;
Amarok::Components::logger()->longMessage( lines.join( "<br>" ) );
}