-rw-r--r-- | noncore/applets/pcmcia/pcmcia.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/noncore/applets/pcmcia/pcmcia.cpp b/noncore/applets/pcmcia/pcmcia.cpp index fac7065..aea699f 100644 --- a/noncore/applets/pcmcia/pcmcia.cpp +++ b/noncore/applets/pcmcia/pcmcia.cpp | |||
@@ -185,4 +185,4 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & ) | |||
185 | { | 185 | { |
186 | OPcmciaSocket* theCard = it.current(); | 186 | theCard = it.current(); |
187 | QString cardName = theCard->identity(); | 187 | QString cardName = theCard->productIdentity().join( " " ); |
188 | for ( int i = 0; i < nCards; ++i ) | 188 | for ( int i = 0; i < nCards; ++i ) |
@@ -206,3 +206,3 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & ) | |||
206 | cfg.setGroup( QString( "Card_%1" ).arg( nCards ) ); | 206 | cfg.setGroup( QString( "Card_%1" ).arg( nCards ) ); |
207 | cfg.writeEntry( "name", theCard->identity() ); | 207 | cfg.writeEntry( "name", theCard->productIdentity().join( " " ) ); |
208 | cfg.writeEntry( "insert", "suspend" ); | 208 | cfg.writeEntry( "insert", "suspend" ); |
@@ -214,3 +214,3 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & ) | |||
214 | tr( "PCMCIA/CF Subsystem" ), | 214 | tr( "PCMCIA/CF Subsystem" ), |
215 | tr( "You have inserted a new card:\n%1\nDo you want to configure?" ).arg( theCard->identity() ), | 215 | tr( "You have inserted a new card:\n%1\nDo you want to configure?" ).arg( theCard->productIdentity().join( " " ) ), |
216 | tr( "Yes" ), tr( "No" ), 0, 0, 1 ); | 216 | tr( "Yes" ), tr( "No" ), 0, 0, 1 ); |
@@ -223,3 +223,3 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & ) | |||
223 | { | 223 | { |
224 | odebug << "pcmcia: user doesn't want to configure " << theCard->identity() << " now." << oendl; | 224 | odebug << "pcmcia: user doesn't want to configure " << theCard->productIdentity().join( " " ) << " now." << oendl; |
225 | } | 225 | } |
@@ -265,2 +265,3 @@ void PcmciaManager::userCardAction( int action ) | |||
265 | int what = action % 100; | 265 | int what = action % 100; |
266 | bool success = false; | ||
266 | 267 | ||
@@ -268,5 +269,16 @@ void PcmciaManager::userCardAction( int action ) | |||
268 | { | 269 | { |
269 | case CONFIGURE: configure( OPcmciaSystem::instance()->socket( socket ) ); break; | 270 | case CONFIGURE: configure( OPcmciaSystem::instance()->socket( socket ) ); success = true; break; |
270 | default: odebug << "not yet implemented"; | 271 | case EJECT: success = OPcmciaSystem::instance()->socket( socket )->eject(); break; |
272 | case INSERT: success = OPcmciaSystem::instance()->socket( socket )->insert(); break; | ||
273 | case SUSPEND: success = OPcmciaSystem::instance()->socket( socket )->suspend(); break; | ||
274 | case RESUME: success = OPcmciaSystem::instance()->socket( socket )->resume(); break; | ||
275 | case RESET: success = OPcmciaSystem::instance()->socket( socket )->reset(); break; | ||
276 | default: odebug << "not yet implemented" << oendl; | ||
271 | } | 277 | } |
278 | |||
279 | if ( !success ) | ||
280 | { | ||
281 | owarn << "couldn't perform user action" << oendl; | ||
282 | } | ||
283 | |||
272 | } | 284 | } |