本文整理汇总了C++中TrackInfo::album方法的典型用法代码示例。如果您正苦于以下问题:C++ TrackInfo::album方法的具体用法?C++ TrackInfo::album怎么用?C++ TrackInfo::album使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TrackInfo
的用法示例。
在下文中一共展示了TrackInfo::album方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onTagTypeChanged
void
TagDialog::setTrack( const TrackInfo& track )
{
m_metaData = track;
onTagTypeChanged( ui.tagTypeBox->currentIndex() );
// We can't tag album if there isn't one
if ( track.album().isEmpty() )
ui.tagTypeBox->removeItem( 2 );
ui.spinner->show();
}
示例2: switch
void
GrowlNotifyExtension::onAppEvent( int e, const QVariant& data )
{
switch (e)
{
case Event::PlaybackStarted:
case Event::TrackChanged:
break;
default:
return;
}
// conveniently, this determines if Growl is installed for us
if (UnicornUtils::isGrowlInstalled() == false)
return;
TrackInfo metaData = data.value<TrackInfo>();
#define APPEND_IF_NOT_EMPTY( x ) if (!x.isEmpty()) description += x + '\n';
QString description;
APPEND_IF_NOT_EMPTY( metaData.artist() );
APPEND_IF_NOT_EMPTY( metaData.album() );
description += metaData.durationString();
QString title = metaData.track();
if (title.isEmpty())
title = QFileInfo( metaData.path() ).fileName();
AppleScript script;
script << "tell application 'GrowlHelperApp'"
<< "register as application 'Last.fm'"
" all notifications {'Track Notification'}"
" default notifications {'Track Notification'}"
" icon of application 'Last.fm.app'"
<< "notify with name 'Track Notification'"
" title " + AppleScript::asUnicodeText( title ) +
" description " + AppleScript::asUnicodeText( description ) +
" application name 'Last.fm'"
<< "end tell";
script.exec();
}