-rw-r--r-- | core/applets/cardmon/cardmon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index 367ef3b..583f2da 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp | |||
@@ -248,13 +248,13 @@ bool CardMonitor::getStatusPcmcia( int showPopUp ) { | |||
248 | popUp( text, "cardmon/" + cardInPcmcia1Type ); | 248 | popUp( text, "cardmon/" + cardInPcmcia1Type ); |
249 | } | 249 | } |
250 | QSound::play( Resource::findSound( "cardmon/card" + what) ); | 250 | QSound::play( Resource::findSound( "cardmon/card" + what) ); |
251 | } | 251 | } |
252 | } else { | 252 | } else { |
253 | // no file found | 253 | // no file found |
254 | qDebug("no file found"); | 254 | qDebug( "no file found" ); |
255 | cardInPcmcia0 = FALSE; | 255 | cardInPcmcia0 = FALSE; |
256 | cardInPcmcia1 = FALSE; | 256 | cardInPcmcia1 = FALSE; |
257 | } | 257 | } |
258 | return ( (cardWas0 == cardInPcmcia0 && cardWas1 == cardInPcmcia1 ) ? FALSE : TRUE ); | 258 | return ( (cardWas0 == cardInPcmcia0 && cardWas1 == cardInPcmcia1 ) ? FALSE : TRUE ); |
259 | } | 259 | } |
260 | 260 | ||
@@ -267,13 +267,13 @@ bool CardMonitor::getStatusSd( int showPopUp ) { | |||
267 | struct mntent *me; | 267 | struct mntent *me; |
268 | FILE *mntfp = setmntent( "/etc/mtab", "r" ); | 268 | FILE *mntfp = setmntent( "/etc/mtab", "r" ); |
269 | 269 | ||
270 | if ( mntfp ) { | 270 | if ( mntfp ) { |
271 | while ( ( me = getmntent( mntfp ) ) != 0 ) { | 271 | while ( ( me = getmntent( mntfp ) ) != 0 ) { |
272 | QString fs = me->mnt_fsname; | 272 | QString fs = me->mnt_fsname; |
273 | qDebug( fs ); | 273 | //qDebug( fs ); |
274 | if ( fs.left( 14 ) == "/dev/mmc/part1" || fs.left( 7 ) == "/dev/sd" || fs.left( 9 ) == "/dev/mmcd" ) { | 274 | if ( fs.left( 14 ) == "/dev/mmc/part1" || fs.left( 7 ) == "/dev/sd" || fs.left( 9 ) == "/dev/mmcd" ) { |
275 | cardInSd = TRUE; | 275 | cardInSd = TRUE; |
276 | show(); | 276 | show(); |
277 | } else { | 277 | } else { |
278 | cardInSd = FALSE; | 278 | cardInSd = FALSE; |
279 | } | 279 | } |
@@ -288,13 +288,13 @@ bool CardMonitor::getStatusSd( int showPopUp ) { | |||
288 | text += "SD Inserted"; | 288 | text += "SD Inserted"; |
289 | what = "on"; | 289 | what = "on"; |
290 | } else { | 290 | } else { |
291 | text += "SD Removed"; | 291 | text += "SD Removed"; |
292 | what = "off"; | 292 | what = "off"; |
293 | } | 293 | } |
294 | qDebug("TEXT: " + text ); | 294 | //qDebug("TEXT: " + text ); |
295 | QSound::play( Resource::findSound( "cardmon/card" + what ) ); | 295 | QSound::play( Resource::findSound( "cardmon/card" + what ) ); |
296 | popUp( text, "cardmon/ide" ); // XX add SD pic | 296 | popUp( text, "cardmon/ide" ); // XX add SD pic |
297 | } | 297 | } |
298 | #else | 298 | #else |
299 | #error "Not on Linux" | 299 | #error "Not on Linux" |
300 | #endif | 300 | #endif |