Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index fa2837a..3f52e63 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -48,49 +48,49 @@ | |||
48 | class Config; | 48 | class Config; |
49 | class QListViewItem; | 49 | class QListViewItem; |
50 | class QListView; | 50 | class QListView; |
51 | class QPoint; | 51 | class QPoint; |
52 | class QAction; | 52 | class QAction; |
53 | class QLabel; | 53 | class QLabel; |
54 | 54 | ||
55 | class PlayListWidget : public PlayListWidgetGui { | 55 | class PlayListWidget : public PlayListWidgetGui { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | public: | 57 | public: |
58 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists }; | 58 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists }; |
59 | enum { TabTypeCount = 4 }; | 59 | enum { TabTypeCount = 4 }; |
60 | 60 | ||
61 | struct Entry | 61 | struct Entry |
62 | { | 62 | { |
63 | Entry( const QString &_name, const QString &_fileName ) | 63 | Entry( const QString &_name, const QString &_fileName ) |
64 | : name( _name ), file( _fileName ) {} | 64 | : name( _name ), file( _fileName ) {} |
65 | Entry( const QString &_fileName ) | 65 | Entry( const QString &_fileName ) |
66 | : name( _fileName ), file( _fileName ) {} | 66 | : name( _fileName ), file( _fileName ) {} |
67 | 67 | ||
68 | QString name; | 68 | QString name; |
69 | QString file; | 69 | QString file; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 72 | PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 ); |
73 | ~PlayListWidget(); | 73 | ~PlayListWidget(); |
74 | DocLnkSet files; | 74 | DocLnkSet files; |
75 | DocLnkSet vFiles; | 75 | DocLnkSet vFiles; |
76 | bool fromSetDocument; | 76 | bool fromSetDocument; |
77 | bool insanityBool; | 77 | bool insanityBool; |
78 | QString setDocFileRef, currentPlayList; | 78 | QString setDocFileRef, currentPlayList; |
79 | // retrieve the current playlist entry (media file link) | 79 | // retrieve the current playlist entry (media file link) |
80 | const DocLnk *current() const; | 80 | const DocLnk *current() const; |
81 | void useSelectedDocument(); | 81 | void useSelectedDocument(); |
82 | int selected; | 82 | int selected; |
83 | TabType currentTab() const; | 83 | TabType currentTab() const; |
84 | 84 | ||
85 | Entry currentEntry() const; | 85 | Entry currentEntry() const; |
86 | 86 | ||
87 | public slots: | 87 | public slots: |
88 | bool first(); | 88 | bool first(); |
89 | bool last(); | 89 | bool last(); |
90 | bool next(); | 90 | bool next(); |
91 | bool prev(); | 91 | bool prev(); |
92 | void writeDefaultPlaylist( ); | 92 | void writeDefaultPlaylist( ); |
93 | QString currentFileListPathName() const; | 93 | QString currentFileListPathName() const; |
94 | protected: | 94 | protected: |
95 | void keyReleaseEvent( QKeyEvent *e); | 95 | void keyReleaseEvent( QKeyEvent *e); |
96 | 96 | ||
@@ -113,28 +113,29 @@ private slots: | |||
113 | void pmViewActivated(int); | 113 | void pmViewActivated(int); |
114 | void writem3u(); | 114 | void writem3u(); |
115 | void writeCurrentM3u(); | 115 | void writeCurrentM3u(); |
116 | void scanForAudio(); | 116 | void scanForAudio(); |
117 | void scanForVideo(); | 117 | void scanForVideo(); |
118 | void openFile(); | 118 | void openFile(); |
119 | void setDocument( const QString& fileref ); | 119 | void setDocument( const QString& fileref ); |
120 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 120 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
121 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 121 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
122 | void clearList(); | 122 | void clearList(); |
123 | void addAllToList(); | 123 | void addAllToList(); |
124 | void addAllMusicToList(); | 124 | void addAllMusicToList(); |
125 | void addAllVideoToList(); | 125 | void addAllVideoToList(); |
126 | void saveList(); // Save the playlist | 126 | void saveList(); // Save the playlist |
127 | void loadList( const DocLnk &); // Load a playlist | 127 | void loadList( const DocLnk &); // Load a playlist |
128 | void playIt( QListViewItem *); | 128 | void playIt( QListViewItem *); |
129 | void btnPlay(bool); | 129 | void btnPlay(bool); |
130 | void deletePlaylist(); | 130 | void deletePlaylist(); |
131 | void addSelected(); | 131 | void addSelected(); |
132 | void removeSelected(); | 132 | void removeSelected(); |
133 | void tabChanged(QWidget*); | 133 | void tabChanged(QWidget*); |
134 | void viewPressed( int, QListViewItem *, const QPoint&, int); | 134 | void viewPressed( int, QListViewItem *, const QPoint&, int); |
135 | void playlistViewPressed( int, QListViewItem *, const QPoint&, int); | 135 | void playlistViewPressed( int, QListViewItem *, const QPoint&, int); |
136 | void playSelected(); | 136 | void playSelected(); |
137 | |||
137 | }; | 138 | }; |
138 | 139 | ||
139 | #endif // PLAY_LIST_WIDGET_H | 140 | #endif // PLAY_LIST_WIDGET_H |
140 | 141 | ||