diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-02-07 22:49:35 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-02-07 23:48:43 +0100 |
commit | 9e27b9057eeeacb9b5f336fba3f469165b796774 (patch) | |
tree | 0eb25a1f16ed99aa2657a1db54616e6654841869 /sd/source/ui | |
parent | 994723a91ec6d35708c3172fd59cc72ec12295dd (diff) |
sdremote: More logging.
Change-Id: I5fe792ddfe1fac5166865c51014d87309d48bab2
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/Server.cxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index b9bf82561f04..f222628987b1 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -117,6 +117,7 @@ bool BluetoothServer::isDiscoverable() if ( aError != NULL ) { g_error_free (aError); + SAL_INFO( "sdremote.bluetooth", "did not get DBusGConnection" ); return false; } @@ -124,6 +125,7 @@ bool BluetoothServer::isDiscoverable() if ( aAdapter == NULL ) { dbus_g_connection_unref( aConnection ); + SAL_INFO( "sdremote.bluetooth", "did not get default adaptor" ); return false; } @@ -138,6 +140,7 @@ bool BluetoothServer::isDiscoverable() { if ( aError ) g_error_free( aError ); + SAL_INFO( "sdremote.bluetooth", "did not get properties" ); return false; } @@ -145,6 +148,8 @@ bool BluetoothServer::isDiscoverable() aProperties, "Discoverable" ) ); g_hash_table_unref( aProperties ); + + SAL_INFO( "sdremote.bluetooth", "BluetoothServer::isDiscoverable() returns " << static_cast< bool >( aIsDiscoverable ) ); return aIsDiscoverable; #else // defined(LINUX) && defined(ENABLE_DBUS) return false; diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx index 5ac55558796f..76b4dd7c1562 100644 --- a/sd/source/ui/remotecontrol/Server.cxx +++ b/sd/source/ui/remotecontrol/Server.cxx @@ -66,6 +66,7 @@ RemoteServer::RemoteServer() : mSocket(), mAvailableClients() { + SAL_INFO( "sdremote", "Instantiated RemoteServer" ); } RemoteServer::~RemoteServer() @@ -229,9 +230,13 @@ void RemoteServer::removeCommunicator( Communicator* mCommunicator ) std::vector<ClientInfo*> RemoteServer::getClients() { + SAL_INFO( "sdremote", "RemoteServer::getClients() called" ); std::vector<ClientInfo*> aClients; if ( !spServer ) + { + SAL_INFO( "sdremote", "No remote server instance => no clients" ); return aClients; + } MutexGuard aGuard( sDataMutex ); aClients.assign( spServer->mAvailableClients.begin(), |