diff options
author | Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> | 2013-10-10 15:22:57 +0200 |
---|---|---|
committer | Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> | 2013-10-10 15:22:57 +0200 |
commit | ed67f8e3a1cb0421126d51ce52134c9fb01a0fc6 (patch) | |
tree | 3d3a5b3b997300eaa51fa32d16d623d3c8bcd1a1 /PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp | |
parent | c928dd5b811cbc6475bb52eb0b9eb74f610a741c (diff) | |
download | audiomanager-ed67f8e3a1cb0421126d51ce52134c9fb01a0fc6.tar.gz |
* Typo: Dbus address fixed.
Diffstat (limited to 'PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp')
-rw-r--r-- | PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp b/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp index 1b99177..94b68a1 100644 --- a/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp +++ b/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp @@ -32,6 +32,7 @@ const char * CAmLookupData::BUS_NAME = "CAPIRoutingPlugin"; rs_lookupData_s::rs_lookupData_s(const std::shared_ptr<org::genivi::am::RoutingControlProxy<> > & aProxy):mSenderProxy(aProxy) { logInfo(__PRETTY_FUNCTION__); + mIsConnected = mSenderProxy->isAvailable(); mSubscription = mSenderProxy->getProxyStatusEvent().subscribe(std::bind(&rs_lookupData_s::onServiceStatusEvent,this,std::placeholders::_1)); } @@ -353,8 +354,7 @@ am_Error_e rs_lookupData_s::asyncSetSourceNotificationConfiguration(const am_Han void rs_lookupData_s::onServiceStatusEvent(const CommonAPI::AvailabilityStatus& serviceStatus) { - std::string serviceID; - logInfo(__PRETTY_FUNCTION__, serviceID, " status : ", (int)serviceStatus ); + logInfo(__PRETTY_FUNCTION__, " status : ", (int)serviceStatus ); mIsConnected = (serviceStatus==CommonAPI::AvailabilityStatus::AVAILABLE); } @@ -494,8 +494,11 @@ am_Error_e CAmLookupData::asyncConnect(const am_Handle_s handle, org::genivi::am::RoutingControlProxyBase::AsyncConnectAsyncCallback callback) { RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources); + logInfo(__PRETTY_FUNCTION__, " [sourceID:", sourceID, "]", "[sinkID:", sinkID, "]"); if(result) { + logInfo(" [isConnected:", result->isConnected(), "]", "[address:", result->getProxy()->getAddress(), "]"); + mMapConnections.insert(std::make_pair(connectionID, result)); mMapHandles.insert(std::make_pair(+handle.handle, result)); return result->asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat, callback); |