Logo Search packages:      
Sourcecode: bangarang version File versions  Download package

void MediaItemModel::updateSourceInfo ( const QList< MediaItem > &  mediaList  ) 

Update information associated with MediaItems in mediaList in the the source from which the model retrieved the MediaItems.

Parameters:
mediaList list containing the MediaItems whose information should be update in the source.
Note: mediaList does not have to contain the same MediaItems contained in the model. However, the current model MediaListProperties should refer to an lri whose ListEngine is capable of updating information in the source. As a general rule, if the lri can be used to retrieve the MediaItem, its ListEngine can update information for the MediaItem.

Definition at line 753 of file mediaitemmodel.cpp.

References ListEngineFactory::availableListEngine(), MediaListProperties::engine(), ListEngineFactory::engineExists(), and ListEngine::updateSourceInfo().

{
    //Assumes that items in mediaList are items currently in model
    if (m_listEngineFactory->engineExists(m_mediaListProperties.engine())) {
        ListEngine * listEngine = m_listEngineFactory->availableListEngine(m_mediaListProperties.engine());
        listEngine->updateSourceInfo(mediaList);
    }
}


Generated by  Doxygen 1.6.0   Back to index