summaryrefslogtreecommitdiff
path: root/examples
authormickeyl <mickeyl>2005-07-10 13:12:10 (UTC)
committer mickeyl <mickeyl>2005-07-10 13:12:10 (UTC)
commit779359497a582d510da0448f41a14e44db6b52af (patch) (unidiff)
treef0847f5705f0bfc82b1373d2270683d8c7cdf94e /examples
parent61fc6ad9e672f89e2c01f233056ab4869a180efd (diff)
downloadopie-779359497a582d510da0448f41a14e44db6b52af.zip
opie-779359497a582d510da0448f41a14e44db6b52af.tar.gz
opie-779359497a582d510da0448f41a14e44db6b52af.tar.bz2
opieshower: add BT device enumeration
Diffstat (limited to 'examples') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/opiebluez/oblueztest/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/opiebluez/oblueztest/main.cpp b/examples/opiebluez/oblueztest/main.cpp
index f50847e..35fd2d9 100644
--- a/examples/opiebluez/oblueztest/main.cpp
+++ b/examples/opiebluez/oblueztest/main.cpp
@@ -1,5 +1,21 @@
1#include <opie2/odebug.h>
2#include <opie2/obluetooth.h>
3#include <opie2/oinfrared.h>
4
5using namespace Opie::Core;
6using namespace Opie::Shower;
7
1int main( int argc, char** argv ) 8int main( int argc, char** argv )
2{ 9{
10 OBluetooth* sys = OBluetooth::instance();
11
12 OBluetooth::InterfaceIterator it = sys->iterator();
13
14 while( it.current() )
15 {
16 odebug << "APP: Bluetooth host controller interface '" << it.current()->name() << "' has MAC '" << it.current()->macAddress() << "'" << oendl;
17 ++it;
18 }
3 return 0; 19 return 0;
4} 20}
5 21