author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Wed, 21 Apr 2010 20:15:53 +0300 | |
branch | RCL_3 |
changeset 14 | c0432d11811c |
parent 4 | 3b1da2848fc7 |
child 33 | 3e2da88830cd |
permissions | -rw-r--r-- |
0 | 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 |
||
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
34 |
MMF::DummyPlayer::DummyPlayer(const AbstractPlayer *player) |
0 | 35 |
: AbstractPlayer(player) |
36 |
{ |
|
37 |
||
38 |
} |
|
39 |
||
40 |
||
41 |
//----------------------------------------------------------------------------- |
|
42 |
// MediaObjectInterface |
|
43 |
//----------------------------------------------------------------------------- |
|
44 |
||
45 |
void MMF::DummyPlayer::play() |
|
46 |
{ |
|
47 |
||
48 |
} |
|
49 |
||
50 |
void MMF::DummyPlayer::pause() |
|
51 |
{ |
|
52 |
||
53 |
} |
|
54 |
||
55 |
void MMF::DummyPlayer::stop() |
|
56 |
{ |
|
57 |
||
58 |
} |
|
59 |
||
60 |
void MMF::DummyPlayer::seek(qint64) |
|
61 |
{ |
|
62 |
||
63 |
} |
|
64 |
||
65 |
bool MMF::DummyPlayer::hasVideo() const |
|
66 |
{ |
|
67 |
return false; |
|
68 |
} |
|
69 |
||
70 |
bool MMF::DummyPlayer::isSeekable() const |
|
71 |
{ |
|
72 |
return false; |
|
73 |
} |
|
74 |
||
75 |
Phonon::State MMF::DummyPlayer::state() const |
|
76 |
{ |
|
77 |
return Phonon::LoadingState; |
|
78 |
} |
|
79 |
||
80 |
qint64 MMF::DummyPlayer::currentTime() const |
|
81 |
{ |
|
82 |
return 0; |
|
83 |
} |
|
84 |
||
85 |
Phonon::ErrorType MMF::DummyPlayer::errorType() const |
|
86 |
{ |
|
87 |
return Phonon::NoError; |
|
88 |
} |
|
89 |
||
90 |
qint64 MMF::DummyPlayer::totalTime() const |
|
91 |
{ |
|
92 |
return 0; |
|
93 |
} |
|
94 |
||
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
95 |
void MMF::DummyPlayer::open(const Phonon::MediaSource &, RFile &) |
0 | 96 |
{ |
97 |
||
98 |
} |
|
99 |
||
100 |
||
101 |
//----------------------------------------------------------------------------- |
|
102 |
// AbstractPlayer |
|
103 |
//----------------------------------------------------------------------------- |
|
104 |
||
105 |
void MMF::DummyPlayer::doSetTickInterval(qint32) |
|
106 |
{ |
|
107 |
||
108 |
} |
|
109 |
||
110 |
QT_END_NAMESPACE |
|
111 |