@ -119,16 +119,21 @@ void configWidget::getMediaDevices()
TQStringList : : const_iterator it = list . begin ( ) ;
TQStringList : : const_iterator itEnd = list . end ( ) ;
// it would be much better if libmediacommon was in tdelibs
// see tdebase/tdeioslave/media/libmediacommon/medium.h
while ( it ! = itEnd ) {
it + + ;
if ( it = = itEnd ) break ;
TQString url = " media:/ " + ( * it ) ; // is it always right? ervin?
kdDebug ( ) < < " checking " < < url < < endl ;
for ( int i = 0 ; i < 9 ; i + + ) + + it ; // go to mimetype (MIME_TYPE-NAME from medium.h)
kdDebug ( ) < < " Mime: " < < * it < < endl ;
if ( it ! = itEnd & & ( * it ) = = " media/audiocd " ) {
kcfg_cdDevice - > comboBox ( ) - > insertItem ( url ) ;
}
TQString url ;
for ( int i = 0 ; i < 12 & & it ! = itEnd ; i + + , + + it ) {
if ( i = = 2 ) { // NAME
url = " media:/ " + ( * it ) ;
kdDebug ( ) < < " checking " < < url < < endl ;
}
if ( i = = 11 ) { // MIME_TYPE
kdDebug ( ) < < " Mime: " < < * it < < endl ;
if ( ( * it ) = = " media/audiocd " ) {
kcfg_cdDevice - > comboBox ( ) - > insertItem ( url ) ;
}
}
}
while ( it ! = itEnd & & ( * it ) ! = " --- " ) + + it ; // go to end of current device's properties
+ + it ;
}