summaryrefslogtreecommitdiff
path: root/qmafwwatchlet/qmafwwatchletplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'qmafwwatchlet/qmafwwatchletplayer.h')
-rw-r--r--qmafwwatchlet/qmafwwatchletplayer.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/qmafwwatchlet/qmafwwatchletplayer.h b/qmafwwatchlet/qmafwwatchletplayer.h
index d85f38c..4a587a6 100644
--- a/qmafwwatchlet/qmafwwatchletplayer.h
+++ b/qmafwwatchlet/qmafwwatchletplayer.h
@@ -7,6 +7,7 @@
#include <MafwRenderer.h>
#include <MafwMediaInfo.h>
+#include <MafwContent.h>
namespace sowatch
{
@@ -19,7 +20,7 @@ class QMafwWatchletPlayer : public QObject
Q_PROPERTY(QString title READ title NOTIFY titleChanged)
Q_PROPERTY(QString album READ album NOTIFY albumChanged)
Q_PROPERTY(QString artist READ artist NOTIFY artistChanged)
- Q_PROPERTY(QUrl imageUrl READ imageUrl NOTIFY imageUrlChanged)
+ Q_PROPERTY(QUrl mediaArt READ mediaArt NOTIFY mediaArtChanged)
public:
explicit QMafwWatchletPlayer(QMafwWatchlet* watchlet);
@@ -27,13 +28,13 @@ public:
QString title() const;
QString album() const;
QString artist() const;
- QUrl imageUrl() const;
+ QUrl mediaArt() const;
signals:
void titleChanged();
void albumChanged();
void artistChanged();
- void imageUrlChanged();
+ void mediaArtChanged();
public slots:
void activate();
@@ -56,13 +57,15 @@ private:
QString _title;
QString _album;
QString _artist;
- QUrl _imageUrl;
+ QString _rendererArt;
+ QUrl _mediaArt;
void setRenderer(MafwRenderer*);
void reconnect();
static QString stripAlbumArtComponent(const QString& component);
QString mediaArtPath() const;
+ void updateMediaArt();
private slots:
void handleChangedMetadata(const QString& s, const QList<QVariant>& l);