blob: a10c862cabe11849ecd9af25522e8a3e39c908e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <opie2/opcmciasystem.h>
#include <opie2/odebug.h>
using namespace Opie::Core;
#include <qmap.h>
#include <qtextstream.h>
#include <qdir.h>
#include <qfile.h>
int main( int argc, char** argv )
{
odebug << "APP start" << oendl;
OPcmciaSystem* sys = OPcmciaSystem::instance();
odebug << "number of detected sockets is = " << sys->count() << oendl;
odebug << "number of populated sockets is = " << sys->cardCount() << oendl;
OPcmciaSystem::CardIterator it = sys->iterator();
OPcmciaSocket* sock = 0;
while ( sock = it.current() )
{
odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl;
odebug << "card status is " << sock->status() << oendl;
odebug << "card function is " << sock->function() << oendl;
++it;
}
odebug << "APP end" << oendl;
return 0;
}
|