equal
deleted
inserted
replaced
28 #include <apgcli.h> |
28 #include <apgcli.h> |
29 |
29 |
30 #include "abstractplayer.h" |
30 #include "abstractplayer.h" |
31 #include "mmf_medianode.h" |
31 #include "mmf_medianode.h" |
32 #include "defs.h" |
32 #include "defs.h" |
33 #include "volumeobserver.h" |
|
34 |
33 |
35 QT_BEGIN_NAMESPACE |
34 QT_BEGIN_NAMESPACE |
36 |
35 |
37 namespace Phonon |
36 namespace Phonon |
38 { |
37 { |
44 /** |
43 /** |
45 * @short Facade class which wraps MMF client utility instance |
44 * @short Facade class which wraps MMF client utility instance |
46 */ |
45 */ |
47 class MediaObject : public MediaNode |
46 class MediaObject : public MediaNode |
48 , public MediaObjectInterface |
47 , public MediaObjectInterface |
49 , public VolumeObserver |
|
50 { |
48 { |
51 Q_OBJECT |
49 Q_OBJECT |
52 Q_INTERFACES(Phonon::MediaObjectInterface) |
50 Q_INTERFACES(Phonon::MediaObjectInterface) |
53 |
51 |
54 public: |
52 public: |
75 virtual qint32 prefinishMark() const; |
73 virtual qint32 prefinishMark() const; |
76 virtual void setPrefinishMark(qint32); |
74 virtual void setPrefinishMark(qint32); |
77 virtual qint32 transitionTime() const; |
75 virtual qint32 transitionTime() const; |
78 virtual void setTransitionTime(qint32); |
76 virtual void setTransitionTime(qint32); |
79 |
77 |
80 // VolumeObserver |
|
81 void volumeChanged(qreal volume); |
|
82 |
|
83 /** |
78 /** |
84 * This class owns the AbstractPlayer, and will delete it upon |
79 * This class owns the AbstractPlayer, and will delete it upon |
85 * destruction. |
80 * destruction. |
86 */ |
81 */ |
87 AbstractPlayer *abstractPlayer() const; |
82 AbstractPlayer *abstractPlayer() const; |
88 |
83 |
89 void setVideoOutput(VideoOutput* videoOutput); |
84 void setVideoOutput(VideoOutput* videoOutput); |
90 |
85 |
91 virtual bool activateOnMediaObject(MediaObject *); |
86 virtual bool activateOnMediaObject(MediaObject *); |
|
87 |
|
88 public Q_SLOTS: |
|
89 void volumeChanged(qreal volume); |
92 |
90 |
93 Q_SIGNALS: |
91 Q_SIGNALS: |
94 void totalTimeChanged(qint64 length); |
92 void totalTimeChanged(qint64 length); |
95 void hasVideoChanged(bool hasVideo); |
93 void hasVideoChanged(bool hasVideo); |
96 void seekableChanged(bool seekable); |
94 void seekableChanged(bool seekable); |