summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/playlistwidget.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.h b/core/multimedia/opieplayer/playlistwidget.h
index 0c0e367..6e9acc0 100644
--- a/core/multimedia/opieplayer/playlistwidget.h
+++ b/core/multimedia/opieplayer/playlistwidget.h
@@ -8,131 +8,135 @@
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 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. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
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 <qpe/qcopenvelope_qws.h> 29#include <qpe/qcopenvelope_qws.h>
30 30
31#include "om3u.h" 31#include "om3u.h"
32#include "rssparser.h"
32/* #include <qtimer.h> */ 33/* #include <qtimer.h> */
33 34
34 35
35class PlayListWidgetPrivate; 36class PlayListWidgetPrivate;
36class Config; 37class Config;
37class QListViewItem; 38class QListViewItem;
38class QListView; 39class QListView;
39class QPoint; 40class QPoint;
40class QAction; 41class QAction;
41class QLabel; 42class QLabel;
42class QPopupMenu; 43class QPopupMenu;
43 44
44class PlayListWidget : public QMainWindow { 45class PlayListWidget : public QMainWindow {
45 Q_OBJECT 46 Q_OBJECT
46public: 47public:
47 PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); 48 PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 );
48 ~PlayListWidget(); 49 ~PlayListWidget();
49 QTabWidget * tabWidget; 50 QTabWidget * tabWidget;
50 QAction *fullScreenButton, *scaleButton; 51 QAction *fullScreenButton, *scaleButton;
51 DocLnkSet files; 52 DocLnkSet files;
52 DocLnkSet vFiles; 53 DocLnkSet vFiles;
53 QListView *audioView, *videoView, *playlistView; 54 QListView *audioView, *videoView, *playlistView;
54 QLabel *libString; 55 QLabel *libString;
55 bool fromSetDocument; 56 bool fromSetDocument;
56 bool insanityBool; 57 bool insanityBool;
57 QString setDocFileRef, currentPlayList; 58 QString setDocFileRef, currentPlayList;
58 // retrieve the current playlist entry (media file link) 59 // retrieve the current playlist entry (media file link)
59 const DocLnk *current(); 60 const DocLnk *current();
60 void useSelectedDocument(); 61 void useSelectedDocument();
61/* QTimer * menuTimer; */ 62/* QTimer * menuTimer; */
62 FileSelector* playLists; 63 FileSelector* playLists;
63 QPushButton *tbDeletePlaylist; 64 QPushButton *tbDeletePlaylist;
64 int fd, selected; 65 int fd, selected;
65public slots: 66public slots:
66 bool first(); 67 bool first();
67 bool last(); 68 bool last();
68 bool next(); 69 bool next();
69 bool prev(); 70 bool prev();
70/* void setFullScreen(); */ 71/* void setFullScreen(); */
71/* void setScaled(); */ 72/* void setScaled(); */
72protected: 73protected:
73 QCopChannel * channel; 74 QCopChannel * channel;
74 QPopupMenu *skinsMenu; 75 QPopupMenu *skinsMenu;
75/* void contentsMousePressEvent( QMouseEvent * e ); */ 76/* void contentsMousePressEvent( QMouseEvent * e ); */
76/* void contentsMouseReleaseEvent( QMouseEvent * e ); */ 77/* void contentsMouseReleaseEvent( QMouseEvent * e ); */
77void keyReleaseEvent( QKeyEvent *e); 78 void keyReleaseEvent( QKeyEvent *e);
78void keyPressEvent( QKeyEvent *e); 79 void keyPressEvent( QKeyEvent *e);
79private: 80private:
81 RssParser rssHandler;
80 int defaultSkinIndex; 82 int defaultSkinIndex;
81 bool audioScan, videoScan; 83 bool audioScan, videoScan;
82 void doBlank(); 84 void doBlank();
83 void doUnblank(); 85 void doUnblank();
84 void readm3u(const QString &); 86 void readm3u(const QString &);
85 void readPls(const QString &); 87 void readPls(const QString &);
86 88 bool readpodcast(const QString&);
87 89
88 void initializeStates(); 90 void initializeStates();
89 void readConfig( Config& cfg ); 91 void readConfig( Config& cfg );
90 void writeConfig( Config& cfg ) const; 92 void writeConfig( Config& cfg ) const;
91 PlayListWidgetPrivate *d; // Private implementation data 93 PlayListWidgetPrivate *d; // Private implementation data
92 void populateAudioView(); 94 void populateAudioView();
93 void populateVideoView(); 95 void populateVideoView();
94private slots: 96private slots:
95 97
96 void qcopReceive(const QCString&, const QByteArray&); 98 void qcopReceive(const QCString&, const QByteArray&);
97 void populateSkinsMenu(); 99 void populateSkinsMenu();
98 void skinsMenuActivated(int); 100 void skinsMenuActivated(int);
99 void writem3u(); 101 void writem3u();
100 void writeCurrentM3u(); 102 void writeCurrentM3u();
101 void scanForAudio(); 103 void scanForAudio();
102 void scanForVideo(); 104 void scanForVideo();
103 void openFile(); 105 void openFile();
104 void setDocument( const QString& fileref ); 106 void setDocument( const QString& fileref );
105 void setDocumentEx( const QString& fileref ); 107 void setDocumentEx( const QString& fileref );
106 void addToSelection( const DocLnk& ); // Add a media file to the playlist 108 void addToSelection( const DocLnk& ); // Add a media file to the playlist
107 void addToSelection( QListViewItem* ); // Add a media file to the playlist 109 void addToSelection( QListViewItem* ); // Add a media file to the playlist
108 void setActiveWindow(); // need to handle this to show the right view 110 void setActiveWindow(); // need to handle this to show the right view
109 void setPlaylist( bool ); // Show/Hide the playlist 111 void setPlaylist( bool ); // Show/Hide the playlist
110 void setView( char ); 112 void setView( char );
111 void clearList(); 113 void clearList();
112 void addAllToList(); 114 void addAllToList();
113 void addAllMusicToList(); 115 void addAllMusicToList();
114 void addAllVideoToList(); 116 void addAllVideoToList();
115 void saveList(); // Save the playlist 117 void saveList(); // Save the playlist
116 void loadList( const DocLnk &); // Load a playlist 118 void loadList( const DocLnk &); // Load a playlist
117 void playIt( QListViewItem *); 119 void playIt( QListViewItem *);
118 120
119 void btnPlay(bool); 121 void btnPlay(bool);
120 void deletePlaylist(); 122 void deletePlaylist();
121 void addSelected(); 123 void addSelected();
122 void removeSelected(); 124 void removeSelected();
123 void tabChanged(QWidget*); 125 void tabChanged(QWidget*);
124 void viewPressed( int, QListViewItem *, const QPoint&, int); 126 void viewPressed( int, QListViewItem *, const QPoint&, int);
125 void playlistViewPressed( int, QListViewItem *, const QPoint&, int); 127 void playlistViewPressed( int, QListViewItem *, const QPoint&, int);
126 void playSelected(); 128 void playSelected();
127 void listDelete(); 129 void listDelete();
130
131 bool downloadPodcast(const QString &);
128 132
129protected slots: 133protected slots:
130/* void cancelMenuTimer(); */ 134/* void cancelMenuTimer(); */
131/* void showFileMenu(); */ 135/* void showFileMenu(); */
132 136
133 137
134}; 138};
135 139
136 140
137#endif // PLAY_LIST_WIDGET_H 141#endif // PLAY_LIST_WIDGET_H
138 142