本文整理汇总了C++中tomahawk::dynplaylist_ptr::mode方法的典型用法代码示例。如果您正苦于以下问题:C++ dynplaylist_ptr::mode方法的具体用法?C++ dynplaylist_ptr::mode怎么用?C++ dynplaylist_ptr::mode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tomahawk::dynplaylist_ptr
的用法示例。
在下文中一共展示了dynplaylist_ptr::mode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: deleted
void
DynamicPlaylist::reportDeleted( const Tomahawk::dynplaylist_ptr& self )
{
// qDebug() << Q_FUNC_INFO;
Q_ASSERT( self.data() == this );
// will emit Collection::playlistDeleted(...)
if( self->mode() == Static )
author()->collection()->deleteAutoPlaylist( self );
else
author()->collection()->deleteStation( self );
emit deleted( self );
}
示例2: author
void
DynamicPlaylist::reportCreated( const Tomahawk::dynplaylist_ptr& self )
{
// qDebug() << Q_FUNC_INFO;
Q_ASSERT( self.data() == this );
Q_ASSERT( !author().isNull() );
Q_ASSERT( !author()->collection().isNull() );
// will emit Collection::playlistCreated(...)
// qDebug() << "Creating dynplaylist belonging to:" << author().data() << author().isNull();
// qDebug() << "REPORTING DYNAMIC PLAYLIST CREATED:" << this << author()->friendlyName();
if( self->mode() == Static )
author()->collection()->addAutoPlaylist( self );
else
author()->collection()->addStation( self );
}
示例3: numSourcesChanged
bool
PlaylistManager::show( const Tomahawk::dynplaylist_ptr& playlist )
{
if ( !m_dynamicWidgets.contains( playlist ) )
{
m_dynamicWidgets[ playlist ] = new Tomahawk::DynamicWidget( playlist, m_stack );
playlist->resolve();
}
setPage( m_dynamicWidgets.value( playlist ) );
if ( playlist->mode() == Tomahawk::OnDemand )
m_queueView->hide();
else
m_queueView->show();
TomahawkSettings::instance()->appendRecentlyPlayedPlaylist( playlist );
emit numSourcesChanged( SourceList::instance()->count() );
return true;
}