// 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; }
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 ); }