summaryrefslogtreecommitdiff
path: root/examples/opiecore/opcmciademo/main.cpp
Side-by-side diff
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 @@
#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 << "start" << oendl;
+ 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();
@@ -17,10 +22,10 @@ int main( int argc, char** argv )
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 << "end" << oendl;
+ odebug << "APP end" << oendl;
return 0;
}