author | eilers <eilers> | 2004-08-29 12:38:28 (UTC) |
---|---|---|
committer | eilers <eilers> | 2004-08-29 12:38:28 (UTC) |
commit | 496157cb35b8f90e73770fc43c9a63534baebf33 (patch) (unidiff) | |
tree | 2322a2e34278cc9649b4522cd2c1cd4398a56a01 | |
parent | 2bc77ab7c6dd7310f95e70d46f4bfc55a84f32cf (diff) | |
download | opie-496157cb35b8f90e73770fc43c9a63534baebf33.zip opie-496157cb35b8f90e73770fc43c9a63534baebf33.tar.gz opie-496157cb35b8f90e73770fc43c9a63534baebf33.tar.bz2 |
Added #ifndef QT_NO_SOUND to compile correctly if sound is disabled..
(Important for MAC)
-rw-r--r-- | library/sound.cpp | 3 |
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 | |||
@@ -228,26 +228,27 @@ bool Sound::isFinished() const | |||
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 | */ |
232 | void Sound::soundAlarm() | 232 | void 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 | ||