Diffstat (limited to 'examples/opiecore/opcmciademo/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/opiecore/opcmciademo/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/opiecore/opcmciademo/main.cpp b/examples/opiecore/opcmciademo/main.cpp index dfc4287..a10c862 100644 --- a/examples/opiecore/opcmciademo/main.cpp +++ b/examples/opiecore/opcmciademo/main.cpp | |||
@@ -1,26 +1,31 @@ | |||
1 | #include <opie2/opcmciasystem.h> | 1 | #include <opie2/opcmciasystem.h> |
2 | #include <opie2/odebug.h> | 2 | #include <opie2/odebug.h> |
3 | using namespace Opie::Core; | 3 | using namespace Opie::Core; |
4 | 4 | ||
5 | #include <qmap.h> | ||
6 | #include <qtextstream.h> | ||
7 | #include <qdir.h> | ||
8 | #include <qfile.h> | ||
9 | |||
5 | int main( int argc, char** argv ) | 10 | int main( int argc, char** argv ) |
6 | { | 11 | { |
7 | odebug << "start" << oendl; | 12 | odebug << "APP start" << oendl; |
8 | OPcmciaSystem* sys = OPcmciaSystem::instance(); | 13 | OPcmciaSystem* sys = OPcmciaSystem::instance(); |
9 | 14 | ||
10 | odebug << "number of detected sockets is = " << sys->count() << oendl; | 15 | odebug << "number of detected sockets is = " << sys->count() << oendl; |
11 | odebug << "number of populated sockets is = " << sys->cardCount() << oendl; | 16 | odebug << "number of populated sockets is = " << sys->cardCount() << oendl; |
12 | 17 | ||
13 | OPcmciaSystem::CardIterator it = sys->iterator(); | 18 | OPcmciaSystem::CardIterator it = sys->iterator(); |
14 | OPcmciaSocket* sock = 0; | 19 | OPcmciaSocket* sock = 0; |
15 | while ( sock = it.current() ) | 20 | while ( sock = it.current() ) |
16 | { | 21 | { |
17 | odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl; | 22 | odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl; |
18 | odebug << "card status is " << sock->status() << oendl; | 23 | odebug << "card status is " << sock->status() << oendl; |
19 | odebug << "card function is " << sock->function() << oendl; | 24 | odebug << "card function is " << sock->function() << oendl; |
20 | ++it; | 25 | ++it; |
21 | } | 26 | } |
22 | 27 | ||
23 | odebug << "end" << oendl; | 28 | odebug << "APP end" << oendl; |
24 | return 0; | 29 | return 0; |
25 | } | 30 | } |
26 | 31 | ||