diff options
-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 86a1fa5d8f52..8c695b694f99 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -109,6 +109,7 @@ bool BluetoothServer::isDiscoverable() if ( aError != NULL ) { g_error_free (aError); + SAL_INFO( "sdremote.bluetooth", "did not get DBusGConnection" ); return false; } @@ -116,6 +117,7 @@ bool BluetoothServer::isDiscoverable() if ( aAdapter == NULL ) { dbus_g_connection_unref( aConnection ); + SAL_INFO( "sdremote.bluetooth", "did not get default adaptor" ); return false; } @@ -130,6 +132,7 @@ bool BluetoothServer::isDiscoverable() { if ( aError ) g_error_free( aError ); + SAL_INFO( "sdremote.bluetooth", "did not get properties" ); return false; } @@ -137,6 +140,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 0fd3d491b781..1ebd92b6c2c7 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(), |