diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-27 12:51:35 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-28 12:30:33 (GMT) |
commit | 76a7f0744cdfeb3ec25c77d4f237e60c74b7b141 (patch) | |
tree | 02a65a9bce2ff05ba363647b0e555531737920f2 /src/3rdparty/phonon/mmf/audiooutput.h | |
parent | 1a551b57e5c9738ba81200dae6aa33ac8b6d2b96 (diff) | |
download | Qt-76a7f0744cdfeb3ec25c77d4f237e60c74b7b141.zip Qt-76a7f0744cdfeb3ec25c77d4f237e60c74b7b141.tar.gz Qt-76a7f0744cdfeb3ec25c77d4f237e60c74b7b141.tar.bz2 |
Reformatted code to comply with Qt style
Diffstat (limited to 'src/3rdparty/phonon/mmf/audiooutput.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/audiooutput.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/src/3rdparty/phonon/mmf/audiooutput.h b/src/3rdparty/phonon/mmf/audiooutput.h index ab90c44..001190f 100644 --- a/src/3rdparty/phonon/mmf/audiooutput.h +++ b/src/3rdparty/phonon/mmf/audiooutput.h @@ -25,66 +25,66 @@ QT_BEGIN_NAMESPACE namespace Phonon { - namespace MMF - { - class Backend; - class VolumeObserver; - - /** - * @short AudioOutputInterface implementation for MMF. - * - * Forwards volume commands to the VolumeObserver instance, - * which is provided by the backend when MediaNode objects are - * connected. - * - * \section volume Volume - * - * Phonon's concept on volume is from 0.0 to 1.0, and from 1< it does - * voltage multiplication. CDrmPlayerUtility goes from 1 to - * CDrmPlayerUtility::MaxVolume(). We apply some basic math to convert - * between the two. - * - * @author Frans Englich<frans.englich@nokia.com> - */ - class AudioOutput : public QObject - , public AudioOutputInterface - { - Q_OBJECT - Q_INTERFACES(Phonon::AudioOutputInterface) - - public: - AudioOutput(Backend *backend, QObject *parent); - virtual qreal volume() const; - virtual void setVolume(qreal volume); - - virtual int outputDevice() const; - - /** - * Has no effect. - */ - virtual bool setOutputDevice(int); - - /** - * Has no effect. - */ - virtual bool setOutputDevice(const Phonon::AudioOutputDevice &); - - /** - * Called by backend when nodes are connected. - */ - void setVolumeObserver(VolumeObserver* observer); - - Q_SIGNALS: - void volumeChanged(qreal volume); - void audioDeviceFailed(); - - private: - qreal m_volume; - - // Not owned - VolumeObserver* m_observer; - }; - } +namespace MMF +{ +class Backend; +class VolumeObserver; + +/** + * @short AudioOutputInterface implementation for MMF. + * + * Forwards volume commands to the VolumeObserver instance, + * which is provided by the backend when MediaNode objects are + * connected. + * + * \section volume Volume + * + * Phonon's concept on volume is from 0.0 to 1.0, and from 1< it does + * voltage multiplication. CDrmPlayerUtility goes from 1 to + * CDrmPlayerUtility::MaxVolume(). We apply some basic math to convert + * between the two. + * + * @author Frans Englich<frans.englich@nokia.com> + */ +class AudioOutput : public QObject + , public AudioOutputInterface +{ + Q_OBJECT + Q_INTERFACES(Phonon::AudioOutputInterface) + +public: + AudioOutput(Backend *backend, QObject *parent); + virtual qreal volume() const; + virtual void setVolume(qreal volume); + + virtual int outputDevice() const; + + /** + * Has no effect. + */ + virtual bool setOutputDevice(int); + + /** + * Has no effect. + */ + virtual bool setOutputDevice(const Phonon::AudioOutputDevice &); + + /** + * Called by backend when nodes are connected. + */ + void setVolumeObserver(VolumeObserver* observer); + +Q_SIGNALS: + void volumeChanged(qreal volume); + void audioDeviceFailed(); + +private: + qreal m_volume; + + // Not owned + VolumeObserver* m_observer; +}; +} } QT_END_NAMESPACE |