Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index 2e2ff89..511a192 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -58,6 +58,17 @@ 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 | ||
62 | { | ||
63 | Entry( const QString &_name, const QString &_fileName ) | ||
64 | : name( _name ), file( _fileName ) {} | ||
65 | Entry( const QString &_fileName ) | ||
66 | : name( _fileName ), file( _fileName ) {} | ||
67 | |||
68 | QString name; | ||
69 | QString file; | ||
70 | }; | ||
71 | |||
61 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 72 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
62 | ~PlayListWidget(); | 73 | ~PlayListWidget(); |
63 | DocLnkSet files; | 74 | DocLnkSet files; |
@@ -66,11 +77,13 @@ public: | |||
66 | bool insanityBool; | 77 | bool insanityBool; |
67 | QString setDocFileRef, currentPlayList; | 78 | QString setDocFileRef, currentPlayList; |
68 | // retrieve the current playlist entry (media file link) | 79 | // retrieve the current playlist entry (media file link) |
69 | const DocLnk *current(); | 80 | const DocLnk *current() const; |
70 | void useSelectedDocument(); | 81 | void useSelectedDocument(); |
71 | int selected; | 82 | int selected; |
72 | TabType currentTab() const; | 83 | TabType currentTab() const; |
73 | 84 | ||
85 | Entry currentEntry() const; | ||
86 | |||
74 | public slots: | 87 | public slots: |
75 | bool first(); | 88 | bool first(); |
76 | bool last(); | 89 | bool last(); |