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/abstractplayer.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/abstractplayer.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractplayer.h | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractplayer.h b/src/3rdparty/phonon/mmf/abstractplayer.h index 399cd5d..da0fe51 100644 --- a/src/3rdparty/phonon/mmf/abstractplayer.h +++ b/src/3rdparty/phonon/mmf/abstractplayer.h @@ -34,77 +34,77 @@ QT_BEGIN_NAMESPACE namespace Phonon { - namespace MMF - { - class VideoOutput; - - /** - * @short Interface which abstracts from MediaObject the current - * media type - * - * This may be: - * - Nothing, in which case this interface is implemented by - * DummyPlayer - * - Audio, in which case the implementation is AudioPlayer - * - Video, in which case the implementation is VideoPlayer - */ - class AbstractPlayer : public QObject - , public VolumeObserver - { - // Required although this class has no signals or slots - // Without this, qobject_cast will fail - Q_OBJECT - - public: - AbstractPlayer(); - explicit AbstractPlayer(const AbstractPlayer& player); - - // MediaObjectInterface (implemented) - qint32 tickInterval() const; - void setTickInterval(qint32); - void setTransitionTime(qint32); - qint32 transitionTime() const; - void setPrefinishMark(qint32); - qint32 prefinishMark() const; - - // MediaObjectInterface (abstract) - virtual void play() = 0; - virtual void pause() = 0; - virtual void stop() = 0; - virtual void seek(qint64 milliseconds) = 0; - virtual bool hasVideo() const = 0; - virtual bool isSeekable() const = 0; - virtual qint64 currentTime() const = 0; - virtual Phonon::State state() const = 0; - virtual QString errorString() const = 0; - virtual Phonon::ErrorType errorType() const = 0; - virtual qint64 totalTime() const = 0; - virtual Phonon::MediaSource source() const = 0; - // This is a temporary hack to work around KErrInUse from MMF - // client utility OpenFileL calls - //virtual void setSource(const Phonon::MediaSource &) = 0; - virtual void setFileSource(const Phonon::MediaSource&, RFile&) = 0; - virtual void setNextSource(const Phonon::MediaSource &) = 0; - - void setVideoOutput(VideoOutput* videoOutput); - - protected: - virtual void videoOutputChanged(); - - private: - virtual void doSetTickInterval(qint32 interval) = 0; - - protected: - // Not owned - VideoOutput* m_videoOutput; - - private: - qint32 m_tickInterval; - qint32 m_transitionTime; - qint32 m_prefinishMark; - - }; - } +namespace MMF +{ +class VideoOutput; + +/** + * @short Interface which abstracts from MediaObject the current + * media type + * + * This may be: + * - Nothing, in which case this interface is implemented by + * DummyPlayer + * - Audio, in which case the implementation is AudioPlayer + * - Video, in which case the implementation is VideoPlayer + */ +class AbstractPlayer : public QObject + , public VolumeObserver +{ + // Required although this class has no signals or slots + // Without this, qobject_cast will fail + Q_OBJECT + +public: + AbstractPlayer(); + explicit AbstractPlayer(const AbstractPlayer& player); + + // MediaObjectInterface (implemented) + qint32 tickInterval() const; + void setTickInterval(qint32); + void setTransitionTime(qint32); + qint32 transitionTime() const; + void setPrefinishMark(qint32); + qint32 prefinishMark() const; + + // MediaObjectInterface (abstract) + virtual void play() = 0; + virtual void pause() = 0; + virtual void stop() = 0; + virtual void seek(qint64 milliseconds) = 0; + virtual bool hasVideo() const = 0; + virtual bool isSeekable() const = 0; + virtual qint64 currentTime() const = 0; + virtual Phonon::State state() const = 0; + virtual QString errorString() const = 0; + virtual Phonon::ErrorType errorType() const = 0; + virtual qint64 totalTime() const = 0; + virtual Phonon::MediaSource source() const = 0; + // This is a temporary hack to work around KErrInUse from MMF + // client utility OpenFileL calls + //virtual void setSource(const Phonon::MediaSource &) = 0; + virtual void setFileSource(const Phonon::MediaSource&, RFile&) = 0; + virtual void setNextSource(const Phonon::MediaSource &) = 0; + + void setVideoOutput(VideoOutput* videoOutput); + +protected: + virtual void videoOutputChanged(); + +private: + virtual void doSetTickInterval(qint32 interval) = 0; + +protected: + // Not owned + VideoOutput* m_videoOutput; + +private: + qint32 m_tickInterval; + qint32 m_transitionTime; + qint32 m_prefinishMark; + +}; +} } QT_END_NAMESPACE |