summaryrefslogtreecommitdiff
path: root/noncore/multimedia
authorllornkcor <llornkcor>2002-11-14 04:03:36 (UTC)
committer llornkcor <llornkcor>2002-11-14 04:03:36 (UTC)
commit736339b62f325652b71615b8c3fbc0b064fcf837 (patch) (unidiff)
treecd739278da93b0092bcb6d947a8c43390df2aaa6 /noncore/multimedia
parentabf6aa1c155e3d5df3092f4261edb7143656de7e (diff)
downloadopie-736339b62f325652b71615b8c3fbc0b064fcf837.zip
opie-736339b62f325652b71615b8c3fbc0b064fcf837.tar.gz
opie-736339b62f325652b71615b8c3fbc0b064fcf837.tar.bz2
takeout qDebugs
Diffstat (limited to 'noncore/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/om3u.cpp4
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/om3u.cpp b/noncore/multimedia/opieplayer2/om3u.cpp
index 12fb16e..4617c59 100644
--- a/noncore/multimedia/opieplayer2/om3u.cpp
+++ b/noncore/multimedia/opieplayer2/om3u.cpp
@@ -60,13 +60,13 @@ Om3u::~Om3u(){}
60void Om3u::readM3u() { 60void Om3u::readM3u() {
61// qDebug("<<<<<<reading m3u "+f.name()); 61// qDebug("<<<<<<reading m3u "+f.name());
62 QTextStream t(&f); 62 QTextStream t(&f);
63 QString s; 63 QString s;
64 while ( !t.atEnd() ) { 64 while ( !t.atEnd() ) {
65 s=t.readLine(); 65 s=t.readLine();
66 qDebug(s); 66// qDebug(s);
67 if( s.find( "#", 0, TRUE) == -1 ) { 67 if( s.find( "#", 0, TRUE) == -1 ) {
68 if( s.left(2) == "E:" || s.left(2) == "P:" ) { 68 if( s.left(2) == "E:" || s.left(2) == "P:" ) {
69 s = s.right( s.length() -2 ); 69 s = s.right( s.length() -2 );
70 QFileInfo f( s ); 70 QFileInfo f( s );
71 QString name = f.baseName(); 71 QString name = f.baseName();
72 name = name.right( name.length() - name.findRev( "\\", -1, TRUE ) -1 ); 72 name = name.right( name.length() - name.findRev( "\\", -1, TRUE ) -1 );
@@ -125,13 +125,13 @@ void Om3u::readPls() { //it's a pls file
125} 125}
126 126
127void Om3u::write() { //writes list to m3u file 127void Om3u::write() { //writes list to m3u file
128 QString list; 128 QString list;
129 if(count()>0) { 129 if(count()>0) {
130 for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) { 130 for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) {
131 qDebug(*it); 131// qDebug(*it);
132 list += *it+"\n"; 132 list += *it+"\n";
133 } 133 }
134 f.writeBlock( list, list.length() ); 134 f.writeBlock( list, list.length() );
135 } 135 }
136// f.close(); 136// f.close();
137} 137}
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 1138dc2..53cd00e 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -386,13 +386,13 @@ void PlayListWidget::addAllVideoToList() {
386 writeCurrentM3u(); 386 writeCurrentM3u();
387 d->selectedFiles->first(); 387 d->selectedFiles->first();
388} 388}
389 389
390 390
391void PlayListWidget::setDocument( const QString& fileref ) { 391void PlayListWidget::setDocument( const QString& fileref ) {
392 qDebug( "<<<<<<<<set document>>>>>>>>>> "+fileref ); 392 // qDebug( "<<<<<<<<set document>>>>>>>>>> "+fileref );
393 fromSetDocument = TRUE; 393 fromSetDocument = TRUE;
394 if ( fileref.isNull() ) { 394 if ( fileref.isNull() ) {
395 QMessageBox::warning( this, tr( "Invalid File" ), 395 QMessageBox::warning( this, tr( "Invalid File" ),
396 tr( "There was a problem in getting the file." ) ); 396 tr( "There was a problem in getting the file." ) );
397 return; 397 return;
398 } 398 }
@@ -956,17 +956,17 @@ void PlayListWidget::writeCurrentM3u() {
956 956
957 Om3u *m3uList; 957 Om3u *m3uList;
958 m3uList = new Om3u( currentPlaylist, IO_ReadWrite | IO_Truncate ); 958 m3uList = new Om3u( currentPlaylist, IO_ReadWrite | IO_Truncate );
959 if( d->selectedFiles->first()) { 959 if( d->selectedFiles->first()) {
960 960
961 do { 961 do {
962 qDebug( "add writeCurrentM3u " +d->selectedFiles->current()->file()); 962 // qDebug( "add writeCurrentM3u " +d->selectedFiles->current()->file());
963 m3uList->add( d->selectedFiles->current()->file() ); 963 m3uList->add( d->selectedFiles->current()->file() );
964 } 964 }
965 while ( d->selectedFiles->next() ); 965 while ( d->selectedFiles->next() );
966 qDebug( "<<<<<<<<<<<<>>>>>>>>>>>>>>>>>" ); 966 // qDebug( "<<<<<<<<<<<<>>>>>>>>>>>>>>>>>" );
967 m3uList->write(); 967 m3uList->write();
968 m3uList->close(); 968 m3uList->close();
969 969
970 if(m3uList) delete m3uList; 970 if(m3uList) delete m3uList;
971 } 971 }
972 972