compile
[kdegraphics.git] / okular / core / audioplayer_p.h
blobc6d43cf3cbedebf4b78fb1e88e310924b9a5883e
1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_AUDIOPLAYER_P_H_
11 #define _OKULAR_AUDIOPLAYER_P_H_
13 // qt/kde includes
14 #include <qhash.h>
15 #include <qsignalmapper.h>
16 #include <kurl.h>
18 class QBuffer;
19 class PlayData;
20 class SoundInfo;
22 namespace Okular {
24 class AudioPlayer;
26 class AudioPlayerPrivate
28 public:
29 AudioPlayerPrivate( AudioPlayer * qq );
31 ~AudioPlayerPrivate();
33 int newId() const;
34 bool play( const SoundInfo& si );
35 void stopPlayings();
37 // private slots
38 void finished( int );
40 AudioPlayer * q;
42 QHash< int, PlayData * > m_playing;
43 QSignalMapper m_mapper;
44 KUrl m_currentDocument;
49 #endif