summaryrefslogtreecommitdiff
path: root/examples/opiecore/opcmciademo/main.cpp
Unidiff
Diffstat (limited to 'examples/opiecore/opcmciademo/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r--examples/opiecore/opcmciademo/main.cpp9
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,13 +1,18 @@
1#include <opie2/opcmciasystem.h> 1#include <opie2/opcmciasystem.h>
2#include <opie2/odebug.h> 2#include <opie2/odebug.h>
3using namespace Opie::Core; 3using namespace Opie::Core;
4 4
5#include <qmap.h>
6#include <qtextstream.h>
7#include <qdir.h>
8#include <qfile.h>
9
5int main( int argc, char** argv ) 10int 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();
@@ -17,10 +22,10 @@ int main( int argc, char** argv )
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