summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/audioplayer.h
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-27 13:51:35 +0100
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-28 13:30:33 +0100
commit76a7f0744cdfeb3ec25c77d4f237e60c74b7b141 (patch)
tree02a65a9bce2ff05ba363647b0e555531737920f2 /src/3rdparty/phonon/mmf/audioplayer.h
parent1a551b57e5c9738ba81200dae6aa33ac8b6d2b96 (diff)
Reformatted code to comply with Qt style
Diffstat (limited to 'src/3rdparty/phonon/mmf/audioplayer.h')
-rw-r--r--src/3rdparty/phonon/mmf/audioplayer.h114
1 files changed, 57 insertions, 57 deletions
diff --git a/src/3rdparty/phonon/mmf/audioplayer.h b/src/3rdparty/phonon/mmf/audioplayer.h
index cdb6cb96a9..424985c1b0 100644
--- a/src/3rdparty/phonon/mmf/audioplayer.h
+++ b/src/3rdparty/phonon/mmf/audioplayer.h
@@ -38,70 +38,70 @@ QT_BEGIN_NAMESPACE
namespace Phonon
{
- namespace MMF
- {
- /**
- * @short Wrapper over MMF audio client utility
- */
- class AudioPlayer : public AbstractMediaPlayer
- , public MPlayerObserverType // typedef
+namespace MMF
+{
+/**
+ * @short Wrapper over MMF audio client utility
+ */
+class AudioPlayer : public AbstractMediaPlayer
+ , public MPlayerObserverType // typedef
#ifdef QT_PHONON_MMF_AUDIO_DRM
- , public MAudioLoadingObserver
+ , public MAudioLoadingObserver
#endif
- {
- Q_OBJECT
-
- public:
- AudioPlayer();
- explicit AudioPlayer(const AbstractPlayer& player);
- virtual ~AudioPlayer();
-
- // AbstractMediaPlayer
- virtual void doPlay();
- virtual void doPause();
- virtual void doStop();
- virtual void doSeek(qint64 milliseconds);
- virtual int setDeviceVolume(int mmfVolume);
- virtual int openFile(RFile& file);
- virtual void close();
-
- // MediaObjectInterface
- virtual bool hasVideo() const;
- virtual qint64 currentTime() const;
- virtual qint64 totalTime() const;
+{
+ Q_OBJECT
+
+public:
+ AudioPlayer();
+ explicit AudioPlayer(const AbstractPlayer& player);
+ virtual ~AudioPlayer();
+
+ // AbstractMediaPlayer
+ virtual void doPlay();
+ virtual void doPause();
+ virtual void doStop();
+ virtual void doSeek(qint64 milliseconds);
+ virtual int setDeviceVolume(int mmfVolume);
+ virtual int openFile(RFile& file);
+ virtual void close();
+
+ // MediaObjectInterface
+ virtual bool hasVideo() const;
+ virtual qint64 currentTime() const;
+ virtual qint64 totalTime() const;
#ifdef QT_PHONON_MMF_AUDIO_DRM
- // MDrmAudioPlayerCallback
- virtual void MdapcInitComplete(TInt aError,
- const TTimeIntervalMicroSeconds &aDuration);
- virtual void MdapcPlayComplete(TInt aError);
-
- // MAudioLoadingObserver
- virtual void MaloLoadingStarted();
- virtual void MaloLoadingComplete();
+ // MDrmAudioPlayerCallback
+ virtual void MdapcInitComplete(TInt aError,
+ const TTimeIntervalMicroSeconds &aDuration);
+ virtual void MdapcPlayComplete(TInt aError);
+
+ // MAudioLoadingObserver
+ virtual void MaloLoadingStarted();
+ virtual void MaloLoadingComplete();
#else
- // MMdaAudioPlayerCallback
- virtual void MapcInitComplete(TInt aError,
- const TTimeIntervalMicroSeconds &aDuration);
- virtual void MapcPlayComplete(TInt aError);
+ // MMdaAudioPlayerCallback
+ virtual void MapcInitComplete(TInt aError,
+ const TTimeIntervalMicroSeconds &aDuration);
+ virtual void MapcPlayComplete(TInt aError);
#endif
- Q_SIGNALS:
- void totalTimeChanged(qint64 length);
- void finished();
-
- private:
- void construct();
-
- private:
- /**
- * Using CPlayerType typedef in order to be able to easily switch between
- * CMdaAudioPlayerUtility and CDrmPlayerUtility
- */
- CPlayerType* m_player;
-
- };
- }
+Q_SIGNALS:
+ void totalTimeChanged(qint64 length);
+ void finished();
+
+private:
+ void construct();
+
+private:
+ /**
+ * Using CPlayerType typedef in order to be able to easily switch between
+ * CMdaAudioPlayerUtility and CDrmPlayerUtility
+ */
+ CPlayerType* m_player;
+
+};
+}
}
QT_END_NAMESPACE