summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/cardmon/cardmon.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp
index 583f2da..c0a936f 100644
--- a/core/applets/cardmon/cardmon.cpp
+++ b/core/applets/cardmon/cardmon.cpp
@@ -39,12 +39,14 @@
#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
#include <sys/vfs.h>
#include <mntent.h>
#endif
+using namespace Opie;
+
CardMonitor::CardMonitor( QWidget *parent ) : QWidget( parent ),
pm( Resource::loadPixmap( "cardmon/pcmcia" ) ) {
QCopChannel* pcmciaChannel = new QCopChannel( "QPE/Card", this );
connect( pcmciaChannel, SIGNAL( received( const QCString &, const QByteArray &) ),
this, SLOT( cardMessage( const QCString &, const QByteArray &) ) );
@@ -125,13 +127,13 @@ void CardMonitor::mousePressEvent( QMouseEvent * ) {
err = system( ( const char * ) cmd );
if ( ( err == 127 ) || ( err < 0 ) ) {
qDebug( "Could not execute `/sbin/cardctl eject 0'! err=%d", err );
popUp( tr( "CF/PCMCIA card eject failed!" ) );
}
} else if ( opt == 0 ) {
- if ( ODevice::inst()->system() == OSYSTEM_Familiar ) {
+ if ( ODevice::inst()->system() == System_Familiar ) {
cmd = "umount /dev/mmc/part1";
err = system( ( const char *) cmd );
if ( ( err != 0 ) ) {
popUp( tr("SD/MMC card eject failed!") );
}
} else {