summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/sound.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/sound.cpp b/library/sound.cpp
index d1e2388..42f7698 100644
--- a/library/sound.cpp
+++ b/library/sound.cpp
@@ -204,50 +204,51 @@ void Sound::play()
204void Sound::playLoop() 204void Sound::playLoop()
205{ 205{
206#ifndef QT_NO_SOUND 206#ifndef QT_NO_SOUND
207 d->killTimers(); 207 d->killTimers();
208 d->playLoop(); 208 d->playLoop();
209#endif 209#endif
210} 210}
211 211
212/*! Do not repeat the sound after it finishes. This will end a playLoop() */ 212/*! Do not repeat the sound after it finishes. This will end a playLoop() */
213void Sound::stop() 213void Sound::stop()
214{ 214{
215#ifndef QT_NO_SOUND 215#ifndef QT_NO_SOUND
216 d->killTimers(); 216 d->killTimers();
217#endif 217#endif
218} 218}
219 219
220bool Sound::isFinished() const 220bool Sound::isFinished() const
221{ 221{
222#ifndef QT_NO_SOUND 222#ifndef QT_NO_SOUND
223 return d->isFinished(); 223 return d->isFinished();
224#else 224#else
225 return true; 225 return true;
226#endif 226#endif
227} 227}
228 228
229/*! Sounds the audible system alarm. This is used for applications such 229/*! Sounds the audible system alarm. This is used for applications such
230 as Calendar when it needs to alarm the user of an event. 230 as Calendar when it needs to alarm the user of an event.
231*/ 231*/
232void Sound::soundAlarm() 232void Sound::soundAlarm()
233{ 233{
234#ifndef QT_NO_COP 234#ifndef QT_NO_COP
235 QCopEnvelope( "QPE/TaskBar", "soundAlarm()" ); 235 QCopEnvelope( "QPE/TaskBar", "soundAlarm()" );
236#endif 236#endif
237} 237}
238 238
239 239
240/*! \class Sound 240/*! \class Sound
241 \brief The Sound class plays WAVE sound files and can invoke the audible alarm. 241 \brief The Sound class plays WAVE sound files and can invoke the audible alarm.
242 242
243 The Sound class is constructed with the .wav music file name. The Sound 243 The Sound class is constructed with the .wav music file name. The Sound
244 class retrieves the sound file from the shared Resource class. This class 244 class retrieves the sound file from the shared Resource class. This class
245 ties together QSound and the available sound resources. 245 ties together QSound and the available sound resources.
246 246
247 To sound an audible system alarm, call the static method soundAlarm() 247 To sound an audible system alarm, call the static method soundAlarm()
248 248
249 \ingroup qtopiaemb 249 \ingroup qtopiaemb
250*/ 250*/
251 251
252 252#ifndef QT_NO_SOUND
253#include "sound.moc" 253#include "sound.moc"
254#endif