diff options
Diffstat (limited to 'src/3rdparty/phonon/mmf/dummyplayer.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/dummyplayer.cpp | 60 |
1 files changed, 27 insertions, 33 deletions
diff --git a/src/3rdparty/phonon/mmf/dummyplayer.cpp b/src/3rdparty/phonon/mmf/dummyplayer.cpp index 26257c0..737af78 100644 --- a/src/3rdparty/phonon/mmf/dummyplayer.cpp +++ b/src/3rdparty/phonon/mmf/dummyplayer.cpp @@ -22,32 +22,43 @@ using namespace Phonon; using namespace Phonon::MMF; //----------------------------------------------------------------------------- -// Public functions (AbstractPlayer interface) +// Constructor / destructor //----------------------------------------------------------------------------- -void MMF::DummyPlayer::play() +MMF::DummyPlayer::DummyPlayer() { + } -void MMF::DummyPlayer::pause() +MMF::DummyPlayer::DummyPlayer(const AbstractPlayer& player) + : AbstractPlayer(player) { + } -void MMF::DummyPlayer::stop() + +//----------------------------------------------------------------------------- +// MediaObjectInterface +//----------------------------------------------------------------------------- + +void MMF::DummyPlayer::play() { + } -void MMF::DummyPlayer::seek(qint64) +void MMF::DummyPlayer::pause() { + } -qint32 MMF::DummyPlayer::tickInterval() const +void MMF::DummyPlayer::stop() { - return 0; + } -void MMF::DummyPlayer::setTickInterval(qint32) +void MMF::DummyPlayer::seek(qint64) { + } bool MMF::DummyPlayer::hasVideo() const @@ -90,46 +101,29 @@ MediaSource MMF::DummyPlayer::source() const return MediaSource(); } -/* -void MMF::DummyPlayer::setSource(const MediaSource &) +void MMF::DummyPlayer::setFileSource(const Phonon::MediaSource &, RFile &) { -} -*/ -void MMF::DummyPlayer::setNextSource(const MediaSource &) -{ } -qint32 MMF::DummyPlayer::prefinishMark() const +void MMF::DummyPlayer::setNextSource(const MediaSource &) { - return 0; -} -void MMF::DummyPlayer::setPrefinishMark(qint32) -{ } -qint32 MMF::DummyPlayer::transitionTime() const -{ - return 0; -} -void MMF::DummyPlayer::setTransitionTime(qint32) -{ -} +//----------------------------------------------------------------------------- +// AbstractPlayer +//----------------------------------------------------------------------------- -void MMF::DummyPlayer::setFileSource(const Phonon::MediaSource &, RFile &) +void MMF::DummyPlayer::doSetTickInterval(qint32) { -} -qreal MMF::DummyPlayer::volume() const -{ - return 0; } -bool MMF::DummyPlayer::setVolume(qreal) +bool MMF::DummyPlayer::doSetVolume(qreal) { - return true; + return true; } |