From 237cf3ec5134e299a9da0ce7deb533383f3d11f0 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Thu, 14 Jul 2005 10:34:55 +0000 Subject: - add bool OBluetoothInterface::setUp( bool ) - add void OBluetoothInterface::isUp() const --- (limited to 'examples') diff --git a/examples/opiebluez/oblueztest/main.cpp b/examples/opiebluez/oblueztest/main.cpp index 2e66d9a..361dbd8 100644 --- a/examples/opiebluez/oblueztest/main.cpp +++ b/examples/opiebluez/oblueztest/main.cpp @@ -13,6 +13,9 @@ int main( int argc, char** argv ) while( it.current() ) { odebug << "APP: Bluetooth host controller interface '" << it.current()->name() << "' has MAC '" << it.current()->macAddress() << "'" << oendl; + odebug << "APP: Interface is " << ( it.current()->isUp() ? "UP" : "DOWN" ) << ". Trying to toggle state..." << oendl; + it.current()->setUp( !it.current()->isUp() ); + odebug << "APP: Interface is " << ( it.current()->isUp() ? "UP" : "DOWN" ) << "." << oendl; ++it; } return 0; -- cgit v0.9.0.2