diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-28 23:01:21 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-28 23:01:21 +0200 |
commit | c6df72ffb7fa549e817dc3d71d2762d8071eb0cb (patch) | |
tree | 8f57bc78ebc70e06a1676ec593521438c648fdf0 /qmafwwatchlet/qmafwwatchletplayer.cpp | |
parent | 3dc79838b5484aba0d805a3c5dac4c0e26503ac6 (diff) | |
download | sowatch-c6df72ffb7fa549e817dc3d71d2762d8071eb0cb.tar.gz sowatch-c6df72ffb7fa549e817dc3d71d2762d8071eb0cb.zip |
fixing a problem with the play/pause button
Diffstat (limited to 'qmafwwatchlet/qmafwwatchletplayer.cpp')
-rw-r--r-- | qmafwwatchlet/qmafwwatchletplayer.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qmafwwatchlet/qmafwwatchletplayer.cpp b/qmafwwatchlet/qmafwwatchletplayer.cpp index cc63508..8f51fbf 100644 --- a/qmafwwatchlet/qmafwwatchletplayer.cpp +++ b/qmafwwatchlet/qmafwwatchletplayer.cpp @@ -137,7 +137,8 @@ void QMafwWatchletPlayer::reconnect() this, SLOT(handleChangedMetadata(const QString&, const QList<QVariant>&))); connect(_renderer, SIGNAL(stateChanged(MafwRenderer::State)), this, SLOT(handleChangedState(MafwRenderer::State))); - _renderer->getCurrentMediaInfo(this, SLOT(handleMediaInfo(MafwMediaInfo))); + _renderer->getStatus(this, SLOT(handleStatusResults(QString,uint,int))); + _renderer->getCurrentMediaInfo(this, SLOT(handleMediaInfo(MafwMediaInfo))); } else if (_renderer) { disconnect(_renderer, 0, this, 0); } @@ -265,6 +266,13 @@ void QMafwWatchletPlayer::handleMediaInfo(const MafwMediaInfo &info) handleChangedMetadata(MAFW_METADATA_KEY_RENDERER_ART_URI, data[MAFW_METADATA_KEY_RENDERER_ART_URI]); } +void QMafwWatchletPlayer::handleStatusResults(const QString &playlistId, uint playbackIndex, int playbackState) +{ + Q_UNUSED(playlistId); + Q_UNUSED(playbackIndex); + _state = static_cast<MafwRenderer::State>(playbackState); +} + void QMafwWatchletPlayer::doVolumeUp(const QString& name, const QVariant& value) { _renderer->setMafwProperty(name, value.toUInt() + 10); |