Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.h b/core/multimedia/opieplayer/playlistwidget.h index 7718a8c..1be5a15 100644 --- a/core/multimedia/opieplayer/playlistwidget.h +++ b/core/multimedia/opieplayer/playlistwidget.h | |||
@@ -17,49 +17,50 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef PLAY_LIST_WIDGET_H | 20 | #ifndef PLAY_LIST_WIDGET_H |
21 | #define PLAY_LIST_WIDGET_H | 21 | #define PLAY_LIST_WIDGET_H |
22 | 22 | ||
23 | #include <qmainwindow.h> | 23 | #include <qmainwindow.h> |
24 | #include <qpe/applnk.h> | 24 | #include <qpe/applnk.h> |
25 | #include <qtabwidget.h> | 25 | #include <qtabwidget.h> |
26 | #include <qpe/fileselector.h> | 26 | #include <qpe/fileselector.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | 28 | ||
29 | #include "om3u.h" | ||
29 | /* #include <qtimer.h> */ | 30 | /* #include <qtimer.h> */ |
30 | 31 | ||
31 | 32 | ||
32 | class PlayListWidgetPrivate; | 33 | class PlayListWidgetPrivate; |
33 | class Config; | 34 | class Config; |
34 | class QListViewItem; | 35 | class QListViewItem; |
35 | class QListView; | 36 | class QListView; |
36 | class QPoint; | 37 | class QPoint; |
37 | class QAction; | 38 | class QAction; |
38 | class QLabel; | 39 | class QLabel; |
39 | 40 | ||
40 | class PlayListWidget : public QMainWindow { | 41 | class PlayListWidget : public QMainWindow { |
41 | Q_OBJECT | 42 | Q_OBJECT |
42 | public: | 43 | public: |
43 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 44 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
44 | ~PlayListWidget(); | 45 | ~PlayListWidget(); |
45 | QTabWidget * tabWidget; | 46 | QTabWidget * tabWidget; |
46 | QAction *fullScreenButton, *scaleButton; | 47 | QAction *fullScreenButton, *scaleButton; |
47 | DocLnkSet files; | 48 | DocLnkSet files; |
48 | DocLnkSet vFiles; | 49 | DocLnkSet vFiles; |
49 | QListView *audioView, *videoView, *playlistView; | 50 | QListView *audioView, *videoView, *playlistView; |
50 | QLabel *libString; | 51 | QLabel *libString; |
51 | bool fromSetDocument; | 52 | bool fromSetDocument; |
52 | bool insanityBool; | 53 | bool insanityBool; |
53 | QString setDocFileRef; | 54 | QString setDocFileRef, currentPlayList; |
54 | // retrieve the current playlist entry (media file link) | 55 | // retrieve the current playlist entry (media file link) |
55 | const DocLnk *current(); | 56 | const DocLnk *current(); |
56 | void useSelectedDocument(); | 57 | void useSelectedDocument(); |
57 | /* QTimer * menuTimer; */ | 58 | /* QTimer * menuTimer; */ |
58 | FileSelector* playLists; | 59 | FileSelector* playLists; |
59 | QPushButton *tbDeletePlaylist; | 60 | QPushButton *tbDeletePlaylist; |
60 | int fd, selected; | 61 | int fd, selected; |
61 | public slots: | 62 | public slots: |
62 | bool first(); | 63 | bool first(); |
63 | bool last(); | 64 | bool last(); |
64 | bool next(); | 65 | bool next(); |
65 | bool prev(); | 66 | bool prev(); |
@@ -76,25 +77,27 @@ private: | |||
76 | void doUnblank(); | 77 | void doUnblank(); |
77 | void readm3u(const QString &); | 78 | void readm3u(const QString &); |
78 | void readPls(const QString &); | 79 | void readPls(const QString &); |
79 | 80 | ||
80 | 81 | ||
81 | void initializeStates(); | 82 | void initializeStates(); |
82 | void readConfig( Config& cfg ); | 83 | void readConfig( Config& cfg ); |
83 | void writeConfig( Config& cfg ) const; | 84 | void writeConfig( Config& cfg ) const; |
84 | PlayListWidgetPrivate *d; // Private implementation data | 85 | PlayListWidgetPrivate *d; // Private implementation data |
85 | void populateAudioView(); | 86 | void populateAudioView(); |
86 | void populateVideoView(); | 87 | void populateVideoView(); |
87 | private slots: | 88 | private slots: |
89 | |||
88 | void writem3u(); | 90 | void writem3u(); |
91 | void writeCurrentM3u(); | ||
89 | void scanForAudio(); | 92 | void scanForAudio(); |
90 | void scanForVideo(); | 93 | void scanForVideo(); |
91 | void openFile(); | 94 | void openFile(); |
92 | void setDocument( const QString& fileref ); | 95 | void setDocument( const QString& fileref ); |
93 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 96 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
94 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 97 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
95 | void setActiveWindow(); // need to handle this to show the right view | 98 | void setActiveWindow(); // need to handle this to show the right view |
96 | void setPlaylist( bool ); // Show/Hide the playlist | 99 | void setPlaylist( bool ); // Show/Hide the playlist |
97 | void setView( char ); | 100 | void setView( char ); |
98 | void clearList(); | 101 | void clearList(); |
99 | void addAllToList(); | 102 | void addAllToList(); |
100 | void addAllMusicToList(); | 103 | void addAllMusicToList(); |