accessoryservices/remotecontrolfw/server/src/session.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1792 		TRAP(err, details->GetRemConInterfaceFeaturesL(aOperations));
  1792 		TRAP(err, details->GetRemConInterfaceFeaturesL(aOperations));
  1793 		}
  1793 		}
  1794 	return err;
  1794 	return err;
  1795 	}
  1795 	}
  1796 
  1796 
       
  1797 TBool CRemConSession::ClientAvailable() const
       
  1798 	{
       
  1799 	// Client is available as soon as it has registered the APIs
       
  1800 	// it is interested in.
       
  1801 	return !!iInterestedAPIs;
       
  1802 	}
       
  1803 
  1797 CRemConInterfaceDetails* CRemConSession::FindInterfaceByUid(TUid aUid) const
  1804 CRemConInterfaceDetails* CRemConSession::FindInterfaceByUid(TUid aUid) const
  1798 	{
  1805 	{
  1799 	LOG_FUNC
  1806 	LOG_FUNC
  1800 	ASSERT_DEBUG(iInterestedAPIs);
  1807 	ASSERT_DEBUG(iInterestedAPIs);
  1801 	TInt count = iInterestedAPIs->Array().Count();
  1808 	TInt count = iInterestedAPIs->Array().Count();