diff options
author | RJ Ryan <rryan@mixxx.org> | 2013-06-19 00:46:54 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2013-06-19 00:46:54 -0400 |
commit | 25d57b59dff3947212909634864dd82365c9606b (patch) | |
tree | f0d0f8a048f8ed2f45c5ff015fc96891662f72f1 /src/library/baseexternalplaylistmodel.h | |
parent | e50f9f168fa08f2be6d0f13e8a225bbcc9de09bb (diff) |
Moving mixxx/* to the root. A new era begins!
Diffstat (limited to 'src/library/baseexternalplaylistmodel.h')
-rw-r--r-- | src/library/baseexternalplaylistmodel.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/library/baseexternalplaylistmodel.h b/src/library/baseexternalplaylistmodel.h new file mode 100644 index 0000000000..a2b86059dd --- /dev/null +++ b/src/library/baseexternalplaylistmodel.h @@ -0,0 +1,36 @@ +#ifndef BASEEXTERNALPLAYLISTMODEL_H +#define BASEEXTERNALPLAYLISTMODEL_H + +#include <QtSql> +#include <QItemDelegate> +#include <QtCore> + +#include "library/trackmodel.h" +#include "library/basesqltablemodel.h" +#include "library/librarytablemodel.h" +#include "library/dao/playlistdao.h" +#include "library/dao/trackdao.h" + +class BaseExternalPlaylistModel : public BaseSqlTableModel { + Q_OBJECT + public: + BaseExternalPlaylistModel(QObject* pParent, TrackCollection* pTrackCollection, + QString settingsNamespace, QString playlistsTable, + QString playlistTracksTable, QString trackSource); + virtual ~BaseExternalPlaylistModel(); + + void setTableModel(int id=-1); + virtual TrackPointer getTrack(const QModelIndex& index) const; + bool isColumnInternal(int column); + bool isColumnHiddenByDefault(int column); + Qt::ItemFlags flags(const QModelIndex &index) const; + void setPlaylist(QString path_name); + TrackModel::CapabilitiesFlags getCapabilities() const; + + private: + QString m_playlistsTable; + QString m_playlistTracksTable; + QString m_trackSource; +}; + +#endif /* BASEEXTERNALPLAYLISTMODEL_H */ |