okular
audioplayer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _OKULAR_AUDIOPLAYER_H_
00011 #define _OKULAR_AUDIOPLAYER_H_
00012
00013 #include <okular/core/okular_export.h>
00014
00015 #include <QtCore/QObject>
00016
00017 namespace Okular {
00018
00019 class AudioPlayerPrivate;
00020 class Document;
00021 class Sound;
00022 class SoundAction;
00023
00030 class OKULAR_EXPORT AudioPlayer : public QObject
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 ~AudioPlayer();
00036
00040 static AudioPlayer * instance();
00041
00046 void playSound( const Sound * sound, const SoundAction * linksound = 0 );
00047
00051 void stopPlaybacks();
00052
00053 private:
00054 AudioPlayer();
00055
00056 friend class AudioPlayerPrivate;
00057 AudioPlayerPrivate * const d;
00058 friend class Document;
00059
00060 Q_DISABLE_COPY( AudioPlayer )
00061 Q_PRIVATE_SLOT( d, void finished( int ) )
00062 };
00063
00064 }
00065
00066 #endif