author | llornkcor <llornkcor> | 2002-12-16 03:37:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-16 03:37:40 (UTC) |
commit | 4b4d676971c9682c181d905669795fc5ba8bf13f (patch) (side-by-side diff) | |
tree | a1575f71515c1c81d3969a9db6b5b749f7005f65 | |
parent | ffefde3701c0aed084872d05710d78b7201efaa8 (diff) | |
download | opie-4b4d676971c9682c181d905669795fc5ba8bf13f.zip opie-4b4d676971c9682c181d905669795fc5ba8bf13f.tar.gz opie-4b4d676971c9682c181d905669795fc5ba8bf13f.tar.bz2 |
remove some commented code
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 707f4d2..e9615f1 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -249,4 +249,2 @@ void PlayListWidget::addAllToList() { -// QTime t; -// t.start(); @@ -275,24 +273,2 @@ void PlayListWidget::addAllToList() { - // d->selectedFiles->addToSelection( ); - // if ( it.current()->isSelected() ) - // lst->append( audioIt.current() ); - // } - - -// if(!audioScan) -// scanForAudio(); -// if(!videoScan) -// scanForVideo(); - -// DocLnkSet filesAll; -// Global::findDocuments(&filesAll, "video/*;"+audioMimes); -// QListIterator<DocLnk> Adit( filesAll.children() ); -// for ( ; Adit.current(); ++Adit ) { -// if( QFileInfo( Adit.current()->file() ).exists() ) { -// d->selectedFiles->addToSelection( **Adit ); -// } -// } - - // qDebug("elapsed time %d", t.elapsed() ); - tabWidget->setCurrentPage(0); @@ -319,11 +295,2 @@ void PlayListWidget::addAllMusicToList() { - /* if(!audioScan) - scanForAudio(); - QListIterator<DocLnk> dit( files.children() ); - for ( ; dit.current(); ++dit ) { - if( QFileInfo(dit.current()->file() ).exists() ) { - d->selectedFiles->addToSelection( **dit ); - } - } - */ tabWidget->setCurrentPage(0); @@ -347,13 +314,2 @@ void PlayListWidget::addAllVideoToList() { } - - - /* if(!videoScan) - scanForVideo(); - QListIterator<DocLnk> dit( vFiles.children() ); - for ( ; dit.current(); ++dit ) { - if( QFileInfo( dit.current()->file() ).exists() ) { - d->selectedFiles->addToSelection( **dit ); - } - } -*/ tabWidget->setCurrentPage(0); @@ -474,3 +430,2 @@ void PlayListWidget::loadList( const DocLnk & lnk) { QString name = lnk.name(); - // qDebug("<<<<<<<<<<<<<<<<<<<<<<<<currentList is "+name); @@ -478,5 +433,3 @@ void PlayListWidget::loadList( const DocLnk & lnk) { setCaption("OpiePlayer: "+name); -// qDebug("<<<<<<<<<<<<load list "+ lnk.file()); clearList(); -// readm3u(lnk.file()); readListFromFile(lnk.file()); @@ -503,3 +456,2 @@ void PlayListWidget::addSelected() { -// tabWidget->setCurrentPage( 0 ); writeCurrentM3u(); @@ -528,3 +480,2 @@ void PlayListWidget::addToSelection( QListViewItem *it) { return; - // case 1: { DocLnk lnk; @@ -675,3 +626,2 @@ void PlayListWidget::openFile() { -// qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"+ m3uFile); lnk.setName( filename ); //sets name @@ -687,3 +637,2 @@ void PlayListWidget::openFile() { readListFromFile( filename ); -// readPls( filename ); } else { @@ -739,3 +688,2 @@ void PlayListWidget::readListFromFile( const QString &filename ) { -// m3uList->write(); m3uList->close(); @@ -748,47 +696,2 @@ void PlayListWidget::readListFromFile( const QString &filename ) { -// /* -// reads pls and adds files/urls to playlist */ -// void PlayListWidget::readPls( const QString &filename ) { - -// qDebug( "pls filename is " + filename ); -// Om3u *m3uList; -// QString s, name; -// m3uList = new Om3u( filename, IO_ReadOnly ); -// m3uList->readPls(); - -// for ( QStringList::ConstIterator it = m3uList->begin(); it != m3uList->end(); ++it ) { -// s = *it; -// // s.replace( QRegExp( "%20" )," " ); -// DocLnk lnk( s ); -// QFileInfo f( s ); -// QString name = f.baseName(); - -// if( name.left( 4 ) == "http" ) { -// name = s.right( s.length() - 7); -// } else { -// name = s; -// } - -// name = name.right( name.length() - name.findRev( "\\", -1, TRUE) - 1 ); - -// lnk.setName( name ); -// if( s.at( s.length() - 4) == '.') {// if this is probably a file -// lnk.setFile( s ); -// } else { //if its a url -// // if( name.right( 1 ).find( '/' ) == -1) { -// // s += "/"; -// // } -// lnk.setFile( s ); -// } -// lnk.setType( "audio/x-mpegurl" ); - -// lnk.writeLink(); -// d->selectedFiles->addToSelection( lnk ); -// } - -// m3uList->close(); -// delete m3uList; -// } - -// /* // writes current playlist to current m3u file */ |