~daschuer/mixxx/features_setlog

« back to all changes in this revision

Viewing changes to mixxx/src/library/rhythmbox/rhythmboxtrackmodel.h

  • Committer: daschuer at gmx
  • Date: 2011-10-04 20:29:10 UTC
  • mfrom: (2840.1.15 mixxx-trunk)
  • Revision ID: daschuer@gmx.de-20111004202910-8pktjwu7f51xl515
merged with lp:mixxx

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <QtSql>
23
23
#include <QItemDelegate>
24
24
#include <QtCore>
 
25
 
25
26
#include "library/trackmodel.h"
26
27
#include "library/basesqltablemodel.h"
27
28
#include "library/librarytablemodel.h"
30
31
 
31
32
class TrackCollection;
32
33
 
33
 
class RhythmboxTrackModel : public BaseSqlTableModel, public virtual TrackModel
34
 
{
 
34
class RhythmboxTrackModel : public BaseSqlTableModel {
35
35
    Q_OBJECT
36
36
  public:
37
37
    RhythmboxTrackModel(QObject* parent, TrackCollection* pTrackCollection);
38
38
    virtual ~RhythmboxTrackModel();
39
39
 
40
40
    virtual TrackPointer getTrack(const QModelIndex& index) const;
41
 
    virtual QString getTrackLocation(const QModelIndex& index) const;
42
 
    virtual int getTrackId(const QModelIndex& index) const;
43
 
    virtual const QLinkedList<int> getTrackRows(int trackId) const;
44
41
    virtual void search(const QString& searchText);
45
 
    virtual const QString currentSearch();
46
42
    virtual bool isColumnInternal(int column);
47
43
    virtual bool isColumnHiddenByDefault(int column);
48
 
    virtual void removeTrack(const QModelIndex& index);
49
 
    virtual void removeTracks(const QModelIndexList& indices);
50
 
    virtual bool addTrack(const QModelIndex& index, QString location);
51
 
    virtual void moveTrack(const QModelIndex& sourceIndex, const QModelIndex& destIndex);
52
 
 
53
44
    virtual Qt::ItemFlags flags(const QModelIndex &index) const;
54
 
    QMimeData* mimeData(const QModelIndexList &indexes) const;
55
 
 
56
 
    QItemDelegate* delegateForColumn(const int i);
57
 
    TrackModel::CapabilitiesFlags getCapabilities() const;
58
45
 
59
46
  private slots:
60
47
    void slotSearch(const QString& searchText);