-rw-r--r-- | core/multimedia/opieplayer/om3u.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/om3u.cpp b/core/multimedia/opieplayer/om3u.cpp index 95ed03c..7149a8e 100644 --- a/core/multimedia/opieplayer/om3u.cpp +++ b/core/multimedia/opieplayer/om3u.cpp | |||
@@ -124,41 +124,41 @@ void Om3u::readPls() { //it's a pls file | |||
124 | 124 | ||
125 | void Om3u::write() { //writes list to m3u file | 125 | void Om3u::write() { //writes list to m3u file |
126 | QString list; | 126 | QString list; |
127 | QTextStream t(&f); | 127 | QTextStream t(&f); |
128 | t.setEncoding(QTextStream::UnicodeUTF8); | 128 | t.setEncoding(QTextStream::UnicodeUTF8); |
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 | // odebug << *it << oendl; | 131 | // odebug << *it << oendl; |
132 | t << *it << "\n"; | 132 | t << *it << "\n"; |
133 | } | 133 | } |
134 | } | 134 | } |
135 | // f.close(); | 135 | // f.close(); |
136 | } | 136 | } |
137 | 137 | ||
138 | void Om3u::add(const QString &filePath) { //adds to m3u file | 138 | void Om3u::add(const QString &filePath) { //adds to m3u file |
139 | append(filePath); | 139 | append(filePath); |
140 | } | 140 | } |
141 | 141 | ||
142 | void Om3u::remove(const QString &filePath) { //removes from m3u list | 142 | void Om3u::remove(const QString &filePath) { //removes from m3u list |
143 | QString list, currentFile; | 143 | QString list, currentFile; |
144 | if(count()>0) { | 144 | if(count()>0) { |
145 | for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) { | 145 | for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) { |
146 | currentFile=*it; | 146 | currentFile=*it; |
147 | // odebug << *it << oendl; | 147 | // odebug << *it << oendl; |
148 | 148 | ||
149 | if( filePath != currentFile) | 149 | if( filePath != currentFile) |
150 | list += currentFile+"\n"; | 150 | list += currentFile+"\n"; |
151 | } | 151 | } |
152 | f.writeBlock( list, list.length() ); | 152 | f.writeBlock( list, list.length() ); |
153 | } | 153 | } |
154 | } | 154 | } |
155 | 155 | ||
156 | void Om3u::deleteFile(const QString &filePath) {//deletes m3u file | 156 | void Om3u::deleteFile(const QString &) {//deletes m3u file |
157 | f.close(); | 157 | f.close(); |
158 | f.remove(); | 158 | f.remove(); |
159 | 159 | ||
160 | } | 160 | } |
161 | 161 | ||
162 | void Om3u::close() { //closes m3u file | 162 | void Om3u::close() { //closes m3u file |
163 | f.close(); | 163 | f.close(); |
164 | } | 164 | } |