source: trunk/src/3rdparty/phonon/mmf/dummyplayer.cpp

Last change on this file was 846, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1/* This file is part of the KDE project.
2
3Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4
5This library is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 2.1 or 3 of the License.
8
9This library is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU Lesser General Public License for more details.
13
14You should have received a copy of the GNU Lesser General Public License
15along with this library. If not, see <http://www.gnu.org/licenses/>.
16
17*/
18
19#include "dummyplayer.h"
20
21QT_BEGIN_NAMESPACE
22
23using namespace Phonon;
24using namespace Phonon::MMF;
25
26/*! \class MMF::DummyPlayer
27 \internal
28*/
29
30//-----------------------------------------------------------------------------
31// Constructor / destructor
32//-----------------------------------------------------------------------------
33
34MMF::DummyPlayer::DummyPlayer(const AbstractPlayer *player)
35 : AbstractPlayer(player)
36{
37
38}
39
40
41//-----------------------------------------------------------------------------
42// MediaObjectInterface
43//-----------------------------------------------------------------------------
44
45void MMF::DummyPlayer::play()
46{
47
48}
49
50void MMF::DummyPlayer::pause()
51{
52
53}
54
55void MMF::DummyPlayer::stop()
56{
57
58}
59
60void MMF::DummyPlayer::seek(qint64)
61{
62
63}
64
65bool MMF::DummyPlayer::hasVideo() const
66{
67 return false;
68}
69
70bool MMF::DummyPlayer::isSeekable() const
71{
72 return false;
73}
74
75Phonon::State MMF::DummyPlayer::state() const
76{
77 return Phonon::LoadingState;
78}
79
80qint64 MMF::DummyPlayer::currentTime() const
81{
82 return 0;
83}
84
85Phonon::ErrorType MMF::DummyPlayer::errorType() const
86{
87 return Phonon::NoError;
88}
89
90qint64 MMF::DummyPlayer::totalTime() const
91{
92 return 0;
93}
94
95void MMF::DummyPlayer::open()
96{
97
98}
99
100void MMF::DummyPlayer::close()
101{
102
103}
104
105//-----------------------------------------------------------------------------
106// AbstractPlayer
107//-----------------------------------------------------------------------------
108
109void MMF::DummyPlayer::doSetTickInterval(qint32)
110{
111
112}
113
114QT_END_NAMESPACE
115
Note: See TracBrowser for help on using the repository browser.