author | mickeyl <mickeyl> | 2005-07-14 10:34:55 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-07-14 10:34:55 (UTC) |
commit | 237cf3ec5134e299a9da0ce7deb533383f3d11f0 (patch) (side-by-side diff) | |
tree | 299215ea1616d3625b7294744ecfebbb2b0b1d7e /examples/opiebluez | |
parent | 27646acf1280d2644b740d0fea03723030aa19cf (diff) | |
download | opie-237cf3ec5134e299a9da0ce7deb533383f3d11f0.zip opie-237cf3ec5134e299a9da0ce7deb533383f3d11f0.tar.gz opie-237cf3ec5134e299a9da0ce7deb533383f3d11f0.tar.bz2 |
- add bool OBluetoothInterface::setUp( bool )
- add void OBluetoothInterface::isUp() const
-rw-r--r-- | examples/opiebluez/oblueztest/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ -10,11 +10,14 @@ int main( int argc, char** argv ) OBluetooth::InterfaceIterator it = sys->iterator(); 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; } |