diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-21 10:39:36 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-21 10:39:36 (GMT) |
commit | 3f39d630d3dcc161c4a85127129274ca7ea857a2 (patch) | |
tree | ba726756cfdd87883fd546ff2f0e5c2b20e64eac /src/3rdparty/phonon/mmf/mediaobject.h | |
parent | 932c48658656fa328507b16e39c3a6cc820ef15e (diff) | |
download | Qt-3f39d630d3dcc161c4a85127129274ca7ea857a2.zip Qt-3f39d630d3dcc161c4a85127129274ca7ea857a2.tar.gz Qt-3f39d630d3dcc161c4a85127129274ca7ea857a2.tar.bz2 |
Further tidied up volume handling
Diffstat (limited to 'src/3rdparty/phonon/mmf/mediaobject.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/mediaobject.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/3rdparty/phonon/mmf/mediaobject.h b/src/3rdparty/phonon/mmf/mediaobject.h index a6d932d..2e12b72 100644 --- a/src/3rdparty/phonon/mmf/mediaobject.h +++ b/src/3rdparty/phonon/mmf/mediaobject.h @@ -27,7 +27,7 @@ along with this library. If not, see <http://www.gnu.org/licenses/>. // For recognizer #include <apgcli.h> -#include "volumecontrolinterface.h" +#include "volumeobserver.h" namespace Phonon { @@ -35,13 +35,13 @@ namespace Phonon { class AbstractPlayer; class AudioOutput; - + /** * @short Facade class which wraps MMF client utility instance */ class MediaObject : public QObject , public MediaObjectInterface - , public VolumeControlInterface + , public VolumeObserver { Q_OBJECT Q_INTERFACES(Phonon::MediaObjectInterface) @@ -71,10 +71,9 @@ namespace Phonon virtual void setPrefinishMark(qint32); virtual qint32 transitionTime() const; virtual void setTransitionTime(qint32); - - // VolumeControlInterface - qreal volume() const; - bool setVolume(qreal volume); + + // VolumeObserver + void volumeChanged(qreal volume); Q_SIGNALS: void totalTimeChanged(); @@ -97,15 +96,16 @@ namespace Phonon private: // Audio / video media type recognition - bool m_recognizerOpened; - RApaLsSession m_recognizer; - RFs m_fileServer; + bool m_recognizerOpened; + RApaLsSession m_recognizer; + RFs m_fileServer; // Storing the file handle here to work around KErrInUse error // from MMF player utility OpenFileL functions - RFile m_file; + RFile m_file; - QScopedPointer<AbstractPlayer> m_player; + QScopedPointer<AbstractPlayer> m_player; + }; } } |