1 /*
2     SPDX-FileCopyrightText: 2007 Pino Toscano <pino@kde.org>
3 
4     SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef _OKULAR_AUDIOPLAYER_P_H_
8 #define _OKULAR_AUDIOPLAYER_P_H_
9 
10 // qt/kde includes
11 #include <QHash>
12 #include <QUrl>
13 
14 class PlayData;
15 class SoundInfo;
16 
17 namespace Okular
18 {
19 class AudioPlayer;
20 
21 class AudioPlayerPrivate
22 {
23 public:
24     explicit AudioPlayerPrivate(AudioPlayer *qq);
25 
26     ~AudioPlayerPrivate();
27 
28     int newId() const;
29     bool play(const SoundInfo &si);
30     void stopPlayings();
31 
32     void finished(int);
33 
34     AudioPlayer *q;
35 
36     QHash<int, PlayData *> m_playing;
37     QUrl m_currentDocument;
38     AudioPlayer::State m_state;
39 };
40 
41 }
42 
43 #endif
44