bluetoothmgmt/btmgr/BTManClient/BTManClient.cpp
changeset 51 20ac952a623c
parent 0 29b1cd4cb562
equal deleted inserted replaced
48:22de2e391156 51:20ac952a623c
   179 EXPORT_C void RBTManSubSession::CancelRequest(TRequestStatus& aStatus)
   179 EXPORT_C void RBTManSubSession::CancelRequest(TRequestStatus& aStatus)
   180 	{
   180 	{
   181 	LOG_FUNC
   181 	LOG_FUNC
   182 	if (SubSessionHandle())
   182 	if (SubSessionHandle())
   183 		{
   183 		{
   184 		SendReceive(EBTManCancelRequest, TIpcArgs(&aStatus));
   184 		IF_FLOGGING(TInt err = ) SendReceive(EBTManCancelRequest, TIpcArgs(&aStatus));
       
   185 		IF_FLOGGING(
       
   186 			if (err != KErrNone)
       
   187 				{
       
   188 				LOG1(_L("ALERT: Cancel request completed with %d"), err);
       
   189 				}
       
   190 			);
   185 		}
   191 		}
   186 	else
   192 	else
   187 		{
   193 		{
   188 		//Client has a bad handle therefore complete the call from here
   194 		//Client has a bad handle therefore complete the call from here
   189 		LocalComplete(aStatus, KErrBadHandle);
   195 		LocalComplete(aStatus, KErrBadHandle);
   305 EXPORT_C TInt RBTRegServ::ResourceCount()
   311 EXPORT_C TInt RBTRegServ::ResourceCount()
   306 	{
   312 	{
   307 	LOG_FUNC
   313 	LOG_FUNC
   308 	TInt count = 0;
   314 	TInt count = 0;
   309 	TPckg<TInt> pckg(count);
   315 	TPckg<TInt> pckg(count);
   310 	SendReceive(EBTManSubSessionCount, TIpcArgs(&pckg));
   316 	IF_FLOGGING(TInt err = ) SendReceive(EBTManSubSessionCount, TIpcArgs(&pckg));
       
   317 	IF_FLOGGING(
       
   318 		if (err != KErrNone)
       
   319 			{
       
   320 			LOG1(_L("ALERT: Subsession count completed with %d") , err);
       
   321 			}
       
   322 		);
   311 	return count;
   323 	return count;
   312 	}
   324 	}
   313 
   325 
   314 /**
   326 /**
   315 Default constructor for registry subsession
   327 Default constructor for registry subsession