예제 #1
0
파일: Playlist.cpp 프로젝트: 1ldk/mpc-hc
// This will reshuffle if the shuffled list size
// does not match the playlist size.
bool CPlaylist::ReshuffleIfNeeded()
{
    if (m_bShuffle && m_nShuffledListSize != GetCount()) {
        SetShuffle(true);
        return true;
    }
    return false;
}
예제 #2
0
 void Mpris2DBusHandler::setProperty( const char *name, const QVariant &value )
 {
     if( qstrcmp( name, "LoopStatus" ) == 0 )
         SetLoopStatus( value.toString() );
     else if( qstrcmp( name, "Shuffle" ) == 0 )
         SetShuffle( value.toBool() );
     else if( qstrcmp( name, "Muted" ) == 0 )
         SetMuted( value.toBool() );
     else if( qstrcmp( name, "Volume" ) == 0 )
         SetVolume( value.toDouble() );
     else
         QObject::setProperty( name, value );
 }