equal
deleted
inserted
replaced
22 #include <phonon/phononnamespace.h> |
22 #include <phonon/phononnamespace.h> |
23 #include <phonon/mediasource.h> |
23 #include <phonon/mediasource.h> |
24 |
24 |
25 #include <QObject> |
25 #include <QObject> |
26 |
26 |
27 #include "videooutput.h" |
27 #include "abstractvideooutput.h" |
28 |
28 |
29 class RFile; |
29 class RFile; |
30 |
30 |
31 QT_BEGIN_NAMESPACE |
31 QT_BEGIN_NAMESPACE |
32 |
32 |
33 namespace Phonon |
33 namespace Phonon |
34 { |
34 { |
35 namespace MMF |
35 namespace MMF |
36 { |
36 { |
37 class VideoOutput; |
|
38 |
37 |
39 /** |
38 /** |
40 * @short Interface which abstracts from MediaObject the current |
39 * @short Interface which abstracts from MediaObject the current |
41 * media type |
40 * media type |
42 * |
41 * |
77 virtual QString errorString() const; |
76 virtual QString errorString() const; |
78 virtual qint64 totalTime() const = 0; |
77 virtual qint64 totalTime() const = 0; |
79 |
78 |
80 virtual void volumeChanged(qreal volume); |
79 virtual void volumeChanged(qreal volume); |
81 |
80 |
82 void setVideoOutput(VideoOutput* videoOutput); |
81 void setVideoOutput(AbstractVideoOutput *videoOutput); |
83 |
82 |
84 /** |
83 /** |
85 * Records error message and changes state to ErrorState |
84 * Records error message and changes state to ErrorState |
86 */ |
85 */ |
87 void setError(const QString &errorMessage); |
86 void setError(const QString &errorMessage); |
154 private: |
153 private: |
155 virtual void doSetTickInterval(qint32 interval) = 0; |
154 virtual void doSetTickInterval(qint32 interval) = 0; |
156 |
155 |
157 protected: |
156 protected: |
158 // Not owned |
157 // Not owned |
159 VideoOutput* m_videoOutput; |
158 AbstractVideoOutput* m_videoOutput; |
160 |
159 |
161 qreal m_volume; |
160 qreal m_volume; |
162 |
161 |
163 private: |
162 private: |
164 PrivateState m_state; |
163 PrivateState m_state; |