summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-02-07 22:49:35 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-02-08 12:02:37 +0000
commit1be74e0eebad58ebd9d20e6cf3f6c8dd6e4fce9a (patch)
treeb9640000a3fb33796f72f165d95d89fcc3871e1c /sd
parent2b2e4eea5d32baf961d0da049f72063b588e88a3 (diff)
sdremote: More logging.
Change-Id: I5fe792ddfe1fac5166865c51014d87309d48bab2 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx5
-rw-r--r--sd/source/ui/remotecontrol/Server.cxx5
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(),