accessoryservices/remotecontrolfw/server/inc/targetclientprocess.inl
changeset 70 653a8b91b95e
equal deleted inserted replaced
64:61992147389a 70:653a8b91b95e
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Server-side representation of a target client, which may have multiple 
       
    15 // sessions associated with it.
       
    16 // 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 
       
    24 inline TRemConClientId CRemConTargetClientProcess::Id() const
       
    25 	{
       
    26 	return iClientId;
       
    27 	}
       
    28 
       
    29 inline TClientInfo& CRemConTargetClientProcess::ClientInfo()
       
    30 	{	
       
    31 	return iClientInfo;
       
    32 	}
       
    33 
       
    34 inline const TClientInfo& CRemConTargetClientProcess::ClientInfo() const
       
    35 	{	
       
    36 	return iClientInfo;
       
    37 	}
       
    38 
       
    39 inline TBool CRemConTargetClientProcess::IsClient(const TClientInfo& aClientInfo) const
       
    40 	{
       
    41 	return (iClientInfo.ProcessId() == aClientInfo.ProcessId() && iClientInfo.SecureId() == aClientInfo.SecureId());
       
    42 	}
       
    43 
       
    44 inline TBool CRemConTargetClientProcess::ClientAvailable() const
       
    45 	{
       
    46 	return iClientAvailable;
       
    47 	}
       
    48 
       
    49 inline TInt CRemConTargetClientProcess::TargetSessionCount() const
       
    50 	{
       
    51 	return iTargetSessions.Count();
       
    52 	}
       
    53 
       
    54 inline TBool CRemConTargetClientProcess::HasPlayerInformation() const
       
    55 	{
       
    56 	return iPlayerInfoSet;
       
    57 	}
       
    58 
       
    59 inline TPlayerType CRemConTargetClientProcess::PlayerType() const
       
    60 	{
       
    61 	return iPlayerType.iPlayerType;
       
    62 	}
       
    63 
       
    64 inline TPlayerSubType CRemConTargetClientProcess::PlayerSubType() const
       
    65 	{
       
    66 	return iPlayerType.iPlayerSubType;
       
    67 	}
       
    68 
       
    69 inline const TDesC8& CRemConTargetClientProcess::Name() const
       
    70 	{
       
    71 	return iPlayerName;
       
    72 	}
       
    73 
       
    74 inline TBool CRemConTargetClientProcess::PlayerInformationMatches(const TPlayerTypeInformation& aPlayerType, const TDesC8& aPlayerName) const
       
    75 	{
       
    76 	return (aPlayerType.iPlayerType == PlayerType() && aPlayerType.iPlayerSubType == PlayerSubType() && aPlayerName == Name());
       
    77 	}