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