Diffstat (limited to 'noncore/multimedia/opieplayer2/om3u.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/om3u.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/om3u.h b/noncore/multimedia/opieplayer2/om3u.h new file mode 100644 index 0000000..392980e --- a/dev/null +++ b/noncore/multimedia/opieplayer2/om3u.h | |||
@@ -0,0 +1,79 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | Copyright (c) 2002 L. Potter <ljp@llornkcor.com> | ||
5 | =. | ||
6 | .=l. | ||
7 | .>+-= | ||
8 | _;:, .> :=|. This program is free software; you can | ||
9 | .> <`_, > . <= redistribute it and/or modify it under | ||
10 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
11 | .="- .-=="i, .._ License as published by the Free Software | ||
12 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
13 | ._= =} : or (at your option) any later version. | ||
14 | .%`+i> _;_. | ||
15 | .i_,=:_. -<s. This program is distributed in the hope that | ||
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
17 | : .. .:, . . . without even the implied warranty of | ||
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
20 | ..}^=.= = ; General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | |||
30 | */ | ||
31 | |||
32 | #ifndef OM3U_H | ||
33 | #define OM3U_H | ||
34 | |||
35 | #include "playlistwidget.h" | ||
36 | |||
37 | #include <qpe/applnk.h> | ||
38 | #include <qpe/qpeapplication.h> | ||
39 | #include <qpe/storage.h> | ||
40 | #include <qpe/mimetype.h> | ||
41 | #include <qpe/global.h> | ||
42 | #include <qpe/resource.h> | ||
43 | |||
44 | #include <qdir.h> | ||
45 | #include <qregexp.h> | ||
46 | #include <qstring.h> | ||
47 | #include <qtextstream.h> | ||
48 | #include <qstringlist.h> | ||
49 | #include <qcstring.h> | ||
50 | #include <qfile.h> | ||
51 | |||
52 | |||
53 | class Om3u : public QStringList { | ||
54 | // Q_OBJECT | ||
55 | public: | ||
56 | Om3u( const QString &filePath); | ||
57 | ~Om3u(); | ||
58 | void readM3u(); | ||
59 | void readPls(); | ||
60 | void write(); | ||
61 | void add(const QString &); | ||
62 | void remove(const QString &); | ||
63 | void deleteFile(const QString &); | ||
64 | void close(); | ||
65 | |||
66 | public slots: | ||
67 | |||
68 | protected: | ||
69 | |||
70 | private: | ||
71 | QFile f; | ||
72 | private slots: | ||
73 | |||
74 | |||
75 | }; | ||
76 | |||
77 | #endif// M3U_H | ||
78 | |||
79 | |||