blob: cbbcf9cd59f5ecb7b00b610291a2cc339a875fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef LIBRARYTABLEMODEL_H
#define LIBRARYTABLEMODEL_H
#include "library/basesqltablemodel.h"
class LibraryTableModel : public BaseSqlTableModel {
Q_OBJECT
public:
LibraryTableModel(QObject* parent, TrackCollection* pTrackCollection,
const char* settingsNamespace);
~LibraryTableModel() override;
void setTableModel(int id =-1);
bool isColumnInternal(int column) final;
// Takes a list of locations and add the tracks to the library. Returns the
// number of successful additions.
int addTracks(const QModelIndex& index, const QList<QString>& locations) final;
TrackModel::CapabilitiesFlags getCapabilities() const final;
};
#endif
|