19 #ifndef MELTEDPLAYLISTMODEL_H 20 #define MELTEDPLAYLISTMODEL_H 22 #include <QAbstractTableModel> 24 #include <QStringList> 27 #include <mvcp_tokeniser.h> 29 class MeltedPlaylistModel :
public QAbstractTableModel
52 explicit MeltedPlaylistModel(QObject *parent = 0);
53 ~MeltedPlaylistModel();
55 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
56 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
57 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
58 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
59 Qt::DropActions supportedDropActions()
const;
60 bool insertRows(
int row,
int count,
const QModelIndex & parent = QModelIndex());
61 bool removeRows(
int row,
int count,
const QModelIndex & parent = QModelIndex());
62 Qt::ItemFlags flags(
const QModelIndex &index)
const;
63 QStringList mimeTypes()
const;
64 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent);
67 void append(
const QString& clip,
int in = -1,
int out = -1,
bool notify =
true);
68 void remove(
int row,
bool notify =
true);
69 void insert(
const QString& clip,
int row,
int in = -1,
int out = -1,
bool notify =
true);
70 void move(
int from,
int to,
bool notify =
true);
74 void play(
double speed);
77 void seek(
int position);
87 void dropped(QString clip,
int row);
88 void moveClip(
int from,
int to);
92 void onConnected(
const QString& address, quint16 port = 5250, quint8 unit = 0);
93 void onDisconnected();
95 void onUnitChanged(quint8 unit);
96 void onClipIndexChanged(quint8 unit,
int index);
97 void onGenerationChanged(quint8 unit);
109 QList<int> m_commands;
115 #endif // MELTEDPLAYLISTMODEL_H Definition: mvcp_tokeniser.h:32
Definition: mvcp_response.h:34