| 1 | #ifndef PLAYLISTBROWSER_H |
| 2 | #define PLAYLISTBROWSER_H |
| 3 | |
| 4 | #include "playlistwidget.h" |
| 5 | |
| 6 | #include <QWidget> |
| 7 | #include <QtGui> |
| 8 | |
| 9 | class QPushButton; |
| 10 | class Track; |
| 11 | |
| 12 | class PlaylistBrowser : public QWidget |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | explicit PlaylistBrowser(QWidget *parent = 0); |
| 17 | ~PlaylistBrowser(); |
| 18 | QList<Track*> readFileList(QString filename); |
| 19 | QPair<int, int> readFileValues(QString filename); |
| 20 | QList<Track*> selectedTracks(); |
| 21 | |
| 22 | signals: |
| 23 | void selectionStarted(QList<Track*>); |
| 24 | void selectionChanged(QList<Track*>); |
| 25 | void savePlaylists(QString); |
| 26 | void storePlaylists(QString); |
| 27 | |
| 28 | public slots: |
| 29 | void loadDatabaseList(); |
| 30 | void loadFileList(); |
| 31 | void playDatabaseList(); |
| 32 | void playFileList(); |
| 33 | void removeFileList(); |
| 34 | void removeDatabaseList(); |
| 35 | void onSelectionChanged(PlaylistWidget* item); |
| 36 | void onPushSave(); |
| 37 | void updateLists(); |
| 38 | |
| 39 | private: |
| 40 | class PlaylistBrowsertPrivate *p; |
| 41 | |
| 42 | }; |
| 43 | |
| 44 | #endif // PLAYLISTBROWSER_H |