Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistselection.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistselection.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistselection.h b/noncore/multimedia/opieplayer2/playlistselection.h new file mode 100644 index 0000000..d10bc82 --- a/dev/null +++ b/noncore/multimedia/opieplayer2/playlistselection.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of the Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef PLAY_LIST_SELECTION_H | ||
21 | #define PLAY_LIST_SELECTION_H | ||
22 | |||
23 | #include <qlist.h> | ||
24 | #include <qlistview.h> | ||
25 | #include <qpe/applnk.h> | ||
26 | #include <qpe/config.h> | ||
27 | |||
28 | class PlayListSelection : public QListView { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | PlayListSelection( QWidget *parent, const char *name=0 ); | ||
32 | ~PlayListSelection(); | ||
33 | |||
34 | const DocLnk *current(); // retrieve the current playlist entry (media file link) | ||
35 | public slots: | ||
36 | void addToSelection( const DocLnk & ); // Add a media file to the playlist | ||
37 | void removeSelected(); // Remove a media file from the playlist | ||
38 | void moveSelectedUp(); // Move the media file up the playlist so it is played earlier | ||
39 | void moveSelectedDown(); // Move the media file down the playlist so it is played later | ||
40 | void unSelect(); | ||
41 | void writeCurrent( Config &); | ||
42 | void setSelectedItem( const QString & ); | ||
43 | bool prev(); | ||
44 | bool next(); | ||
45 | bool first(); | ||
46 | bool last(); | ||
47 | |||
48 | protected: | ||
49 | virtual void contentsMouseMoveEvent(QMouseEvent *); | ||
50 | /* #ifdef USE_PLAYLIST_BACKGROUND */ | ||
51 | virtual void drawBackground( QPainter *p, const QRect &r ); | ||
52 | virtual void paintEmptyArea( QPainter *p, const QRect &r ) { drawBackground( p, r ); }; | ||
53 | /* #endif */ | ||
54 | |||
55 | private: | ||
56 | QList<DocLnk> selectedList; | ||
57 | const DocLnk *lnk; | ||
58 | }; | ||
59 | |||
60 | |||
61 | #endif // PLAY_LIST_SELECTION_H | ||
62 | |||
63 | |||