author | chicken <chicken> | 2003-11-17 19:28:21 (UTC) |
---|---|---|
committer | chicken <chicken> | 2003-11-17 19:28:21 (UTC) |
commit | 56f2b27abab0cbae7548b43be4509965b37e3a92 (patch) (unidiff) | |
tree | 210dc84c5dbb1a93aaa5ae358a38a3de3510f493 /noncore/multimedia/opieplayer2/playlistwidget.h | |
parent | 8515000ba00ec666ee5e68fdd3c2786186093b93 (diff) | |
download | opie-56f2b27abab0cbae7548b43be4509965b37e3a92.zip opie-56f2b27abab0cbae7548b43be4509965b37e3a92.tar.gz opie-56f2b27abab0cbae7548b43be4509965b37e3a92.tar.bz2 |
merge branch with head
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index fc305cd..29f3e8d 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -42,16 +42,18 @@ | |||
42 | #include "playlistwidgetgui.h" | 42 | #include "playlistwidgetgui.h" |
43 | 43 | ||
44 | class Config; | 44 | class Config; |
45 | class QListViewItem; | 45 | class QListViewItem; |
46 | class QListView; | 46 | class QListView; |
47 | class QPoint; | 47 | class QPoint; |
48 | class QAction; | 48 | class QAction; |
49 | class QLabel; | 49 | class QLabel; |
50 | class MediaPlayerState; | ||
51 | class MediaPlayer; | ||
50 | 52 | ||
51 | class PlayListWidget : public PlayListWidgetGui { | 53 | class PlayListWidget : public PlayListWidgetGui { |
52 | Q_OBJECT | 54 | Q_OBJECT |
53 | public: | 55 | public: |
54 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists }; | 56 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists }; |
55 | enum { TabTypeCount = 4 }; | 57 | enum { TabTypeCount = 4 }; |
56 | 58 | ||
57 | struct Entry | 59 | struct Entry |
@@ -60,17 +62,18 @@ public: | |||
60 | : name( _name ), file( _fileName ) {} | 62 | : name( _name ), file( _fileName ) {} |
61 | Entry( const QString &_fileName ) | 63 | Entry( const QString &_fileName ) |
62 | : name( _fileName ), file( _fileName ) {} | 64 | : name( _fileName ), file( _fileName ) {} |
63 | 65 | ||
64 | QString name; | 66 | QString name; |
65 | QString file; | 67 | QString file; |
66 | }; | 68 | }; |
67 | 69 | ||
68 | PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 ); | 70 | static QString appName() { return QString::fromLatin1("opieplayer2"); } |
71 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags = 0 ); | ||
69 | ~PlayListWidget(); | 72 | ~PlayListWidget(); |
70 | 73 | ||
71 | // retrieve the current playlist entry (media file link) | 74 | // retrieve the current playlist entry (media file link) |
72 | const DocLnk *current() const; | 75 | const DocLnk *current() const; |
73 | void useSelectedDocument(); | 76 | void useSelectedDocument(); |
74 | TabType currentTab() const; | 77 | TabType currentTab() const; |
75 | 78 | ||
76 | Entry currentEntry() const; | 79 | Entry currentEntry() const; |
@@ -127,12 +130,14 @@ private slots: | |||
127 | void playSelected(); | 130 | void playSelected(); |
128 | 131 | ||
129 | private: | 132 | private: |
130 | bool fromSetDocument; | 133 | bool fromSetDocument; |
131 | bool insanityBool; | 134 | bool insanityBool; |
132 | QString setDocFileRef, currentPlayList; | 135 | QString setDocFileRef, currentPlayList; |
133 | int selected; | 136 | int selected; |
134 | QListView *currentFileListView; | 137 | QListView *currentFileListView; |
138 | |||
139 | MediaPlayer *m_mp; | ||
135 | }; | 140 | }; |
136 | 141 | ||
137 | #endif // PLAY_LIST_WIDGET_H | 142 | #endif // PLAY_LIST_WIDGET_H |
138 | 143 | ||