-rw-r--r-- | library/sound.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/sound.h b/library/sound.h index 98fae34..9f35107 100644 --- a/library/sound.h +++ b/library/sound.h | |||
@@ -11,33 +11,35 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef SOUND_H | 20 | #ifndef SOUND_H |
21 | #define SOUND_H | 21 | #define SOUND_H |
22 | 22 | ||
23 | class QString; | 23 | class QString; |
24 | class SoundData; | 24 | class SoundData; |
25 | 25 | ||
26 | class Sound { | 26 | class Sound { |
27 | public: | 27 | public: |
28 | Sound(const QString& name); | 28 | Sound(const QString& name); |
29 | ~Sound(); | 29 | ~Sound(); |
30 | 30 | ||
31 | void play(); | 31 | void play(); |
32 | void playLoop(); | 32 | void playLoop(); |
33 | void stop(); | 33 | void stop(); |
34 | 34 | ||
35 | bool isFinished ( ) const; | ||
36 | |||
35 | static void soundAlarm(); | 37 | static void soundAlarm(); |
36 | //static void soundClick(); | 38 | //static void soundClick(); |
37 | //static void soundTap(); | 39 | //static void soundTap(); |
38 | 40 | ||
39 | private: | 41 | private: |
40 | SoundData* d; | 42 | SoundData* d; |
41 | }; | 43 | }; |
42 | 44 | ||
43 | #endif | 45 | #endif |