summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/playlistselection.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/playlistselection.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistselection.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.h b/core/multimedia/opieplayer/playlistselection.h
new file mode 100644
index 0000000..6ce6bdc
--- a/dev/null
+++ b/core/multimedia/opieplayer/playlistselection.h
@@ -0,0 +1,62 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of 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
24#include <qlist.h>
25#include <qlistview.h>
26#include <qpe/applnk.h>
27
28
29class PlayListSelection : public QListView {
30 Q_OBJECT
31public:
32 PlayListSelection( QWidget *parent, const char *name=0 );
33 ~PlayListSelection();
34
35 const DocLnk *current(); // retrieve the current playlist entry (media file link)
36
37public slots:
38 void addToSelection( const DocLnk & ); // Add a media file to the playlist
39 void removeSelected(); // Remove a media file from the playlist
40 void moveSelectedUp(); // Move the media file up the playlist so it is played earlier
41 void moveSelectedDown(); // Move the media file down the playlist so it is played later
42 bool prev();
43 bool next();
44 bool first();
45 bool last();
46
47protected:
48 virtual void contentsMouseMoveEvent(QMouseEvent *);
49#ifdef USE_PLAYLIST_BACKGROUND
50 virtual void drawBackground( QPainter *p, const QRect &r );
51 virtual void paintEmptyArea( QPainter *p, const QRect &r ) { drawBackground( p, r ); };
52#endif
53
54private:
55 QList<DocLnk> selectedList;
56 const DocLnk *lnk;
57};
58
59
60#endif // PLAY_LIST_SELECTION_H
61
62