oopapidocs  2.0
playlistdb.h
00001 #ifndef PLAYLISTDB_H
00002 #define PLAYLISTDB_H
00003 
00004 #include <QObject>
00005 #include "sqlmdexport.h"
00006 class MetaDataTable;
00007 
00008 
00013 class SQLMDEXPORT PlayListDb : public QObject
00014 {
00015     Q_OBJECT
00016 public:
00017     static const QString TABLEPREFIX;
00018 
00020     QStringList playList(QString playListName);
00021 
00023     QStringList playLists() const;
00024 
00027     QString takeFirst(QString playListName);
00028 
00030     QString last(QString playListName);
00031 
00034     void loadAndStore(QString fileName, QString playListName);
00035 
00037     void rename (QString oldName, QString newName);
00038 
00040     static QString tableName(QString playListName);
00041 
00043     bool clear(QString playListName);
00044 
00045     void shuffle(QString playListName);
00046 
00047 
00048 public slots:
00055     bool addFile(QString playList, QString path, bool replace=false);
00057     bool removeFile(QString playList, QString path);
00058 
00060     bool removeEntry(QString playList, int pid);
00061 
00062 };
00063 
00064 #endif // PLAYLISTDB_H
 All Classes Namespaces Functions Enumerations