00001 #include <opie2/opcmciasystem.h> 00002 #include <opie2/odebug.h> 00003 using namespace Opie::Core; 00004 00005 #include <qmap.h> 00006 #include <qtextstream.h> 00007 #include <qdir.h> 00008 #include <qfile.h> 00009 00010 int main( int argc, char** argv ) 00011 { 00012 odebug << "APP start" << oendl; 00013 OPcmciaSystem* sys = OPcmciaSystem::instance(); 00014 00015 odebug << "number of detected sockets is = " << sys->count() << oendl; 00016 odebug << "number of populated sockets is = " << sys->cardCount() << oendl; 00017 00018 OPcmciaSystem::CardIterator it = sys->iterator(); 00019 OPcmciaSocket* sock = 0; 00020 while ( sock = it.current() ) 00021 { 00022 odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl; 00023 odebug << "card status is " << sock->status() << oendl; 00024 odebug << "card function is " << sock->function() << oendl; 00025 ++it; 00026 } 00027 00028 odebug << "APP end" << oendl; 00029 return 0; 00030 } 00031
1.4.2