summaryrefslogtreecommitdiffstats
path: root/src/imports/multimedia/qdeclarativeplaylist_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-12-15 17:24:21 +0100
committerLars Knoll <lars.knoll@qt.io>2021-01-20 15:11:26 +0000
commit3fcc619cb4300e2e07b3615b0b887938532c22cc (patch)
treec82b97737e9a6c141692744ec43c8763d8b8b461 /src/imports/multimedia/qdeclarativeplaylist_p.h
parent1aceb4feb8ffab96773d919fa49408af8dc24e12 (diff)
Clean up playlist handling
Remove the whole plugin infrastructure and all the complexity that came with it and some other architectural decisions. Change-Id: I86bc2f1a5bddf5ba90881990c5cf49463d12ed65 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/imports/multimedia/qdeclarativeplaylist_p.h')
-rw-r--r--src/imports/multimedia/qdeclarativeplaylist_p.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/imports/multimedia/qdeclarativeplaylist_p.h b/src/imports/multimedia/qdeclarativeplaylist_p.h
index d086f26b5..8c3cce300 100644
--- a/src/imports/multimedia/qdeclarativeplaylist_p.h
+++ b/src/imports/multimedia/qdeclarativeplaylist_p.h
@@ -81,7 +81,6 @@ class QDeclarativePlaylist : public QAbstractListModel, public QQmlParserStatus
Q_PROPERTY(QUrl currentItemSource READ currentItemSource NOTIFY currentItemSourceChanged)
Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
Q_PROPERTY(int itemCount READ itemCount NOTIFY itemCountChanged)
- Q_PROPERTY(bool readOnly READ readOnly NOTIFY readOnlyChanged)
Q_PROPERTY(Error error READ error NOTIFY errorChanged)
Q_PROPERTY(QString errorString READ errorString NOTIFY errorChanged)
Q_PROPERTY(QQmlListProperty<QDeclarativePlaylistItem> items READ items DESIGNABLE false)
@@ -97,7 +96,7 @@ public:
CurrentItemInLoop = QMediaPlaylist::CurrentItemInLoop,
Sequential = QMediaPlaylist::Sequential,
Loop = QMediaPlaylist::Loop,
- Random = QMediaPlaylist::Random
+// Random = QMediaPlaylist::Random
};
enum Error
{
@@ -121,7 +120,6 @@ public:
int currentIndex() const;
void setCurrentIndex(int currentIndex);
int itemCount() const;
- bool readOnly() const;
Error error() const;
QString errorString() const;
QMediaPlaylist *mediaPlaylist() const { return m_playlist; }
@@ -157,21 +155,20 @@ public Q_SLOTS:
void shuffle();
void load(const QUrl &location, const QString &format = QString());
bool save(const QUrl &location, const QString &format = QString());
- bool addItem(const QUrl &source);
- Q_REVISION(1) bool addItems(const QList<QUrl> &sources);
+ void addItem(const QUrl &source);
+ Q_REVISION(1) void addItems(const QList<QUrl> &sources);
bool insertItem(int index, const QUrl &source);
Q_REVISION(1) bool insertItems(int index, const QList<QUrl> &sources);
Q_REVISION(1) bool moveItem(int from, int to);
bool removeItem(int index);
Q_REVISION(1) bool removeItems(int start, int end);
- bool clear();
+ void clear();
Q_SIGNALS:
void playbackModeChanged();
void currentItemSourceChanged();
void currentIndexChanged();
void itemCountChanged();
- void readOnlyChanged();
void errorChanged();
void itemAboutToBeInserted(int start, int end);
@@ -198,7 +195,6 @@ private:
QMediaPlaylist *m_playlist;
QString m_errorString;
QMediaPlaylist::Error m_error;
- bool m_readOnly;
};
QT_END_NAMESPACE