+QStringList PLModel::selectedURIs()
+{
+ QStringList lst;
+ for( int i = 0; i < current_selection.size(); i++ )
+ {
+ PL_LOCK;
+ PLItem *item = static_cast<PLItem*>
+ (current_selection[i].internalPointer());
+ if( !item )
+ continue;
+
+ input_item_t *p_item = input_item_GetById( p_playlist,
+ item->i_input_id );
+ if( !p_item )
+ continue;
+
+ char *psz = input_item_GetURI( p_item );
+ if( !psz )
+ continue;
+ else
+ {
+ lst.append( QString( psz ) );
+ free( psz );
+ }
+ PL_UNLOCK;
+ }
+ return lst;
+}
+