Miam-Player  0.8.0
A nice music player
playlistmanager.h
Go to the documentation of this file.
1 #ifndef PLAYLISTMANAGER_H
2 #define PLAYLISTMANAGER_H
3 
4 #include <QObject>
5 #include <QFileInfo>
7 
9 class TabPlaylist;
10 class Playlist;
11 
18 {
19  Q_OBJECT
20 private:
21  TabPlaylist *_tabPlaylists;
22 
23 public:
24  explicit PlaylistManager(TabPlaylist *parent);
25 
26  bool loadPlaylist(Playlist *p, const QFileInfo &fileInfo);
27 
28 public slots:
29  bool deletePlaylist(uint playlistId);
30 
31  uint savePlaylist(Playlist *p, bool isOverwriting, bool isExiting);
32 
33  void saveAndRemovePlaylist(Playlist *p, int index, bool isOverwriting = false);
34 
35 signals:
36  void aboutToRemovePlaylist(int);
37 };
38 
39 #endif // PLAYLISTMANAGER_H
unsigned int uint
Definition: taglib.h:68
The Playlist class is used to display tracks in the MainWindow class.
Definition: playlist.h:21
The TabPlaylist class is used to manage mutiple playlists in the MainWindow class.
Definition: tabplaylist.h:20
The PlaylistManager class is used to Create/Read/Update/Delete playlists in SQLite DB...
Definition: playlistmanager.h:17
#define MIAMTABPLAYLISTS_LIBRARY
Definition: miamtabplaylists_global.hpp:8