datacommsserver/esockserver/inc/ss_roles.inl
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2004-2009 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 //
       
    15 
       
    16 inline CSockSessionProxy* CPlayer::CurrentSessionProxyL()
       
    17 	{
       
    18 	return static_cast<CSockSessionProxy*>(Den::CCommonPlayer::CurrentSessionProxyL());
       
    19 	}
       
    20 
       
    21 inline CSockManData* CPlayer::SockManGlobals() const
       
    22 	{
       
    23 	return WorkerThread().SockManGlobals();
       
    24 	}
       
    25 
       
    26 inline TBool CPlayer::HasDataPlane() const
       
    27 	{
       
    28 	return PlayerRole().HasRole(TCFPlayerRole::EDataPlane);
       
    29 	}
       
    30 
       
    31 inline TBool CPlayer::HasSubConnPlane() const
       
    32 	{
       
    33 	return PlayerRole().HasRole(TCFPlayerRole::ESubConnPlane);
       
    34 	}
       
    35 
       
    36 inline TBool CPlayer::HasConnPlane() const
       
    37 	{
       
    38 	return PlayerRole().HasRole(TCFPlayerRole::EConnPlane);
       
    39 	}
       
    40 
       
    41 inline TBool CPlayer::HasMetaConnPlane() const
       
    42 	{
       
    43 	return PlayerRole().HasRole(TCFPlayerRole::EMetaConnPlane);
       
    44 	}
       
    45 
       
    46 inline TBool CPlayer::HasTierMgrPlane() const
       
    47 	{
       
    48 	return PlayerRole().HasRole(TCFPlayerRole::ETierMgrPlane);
       
    49 	}
       
    50 
       
    51 inline TBool CPlayer::HasTierResolver() const
       
    52 	{
       
    53 	return PlayerRole().HasRole(TCFPlayerRole::ETierResolver);
       
    54 	}
       
    55 
       
    56 inline TBool CPitBoss::GetWorkerForPlayerRole(TUint aRoleId, CommsFW::TWorkerId& aWorker) const
       
    57 	{
       
    58 	return GetWorkerForProtocol(KPlayerRoleProxyAddrFam, KPlayerRoleProxySockType, aRoleId, aWorker);
       
    59 	}
       
    60 
       
    61 inline void CPitBoss::AddPlayerRolePairingL(TUint aRoleId, const TDesC& aRoleDesc, CommsFW::TWorkerId aWorker, TProtocolPairingOwner& aPairList)
       
    62 	{
       
    63 	AddProtocolToListL(KPlayerRoleProxyAddrFam, KPlayerRoleProxySockType, aRoleId, aRoleDesc, aWorker, aPairList);
       
    64 	}
       
    65 
       
    66 inline TBool CPitBoss::TierMappingsLoaded() const
       
    67 	{
       
    68 	return iLoadTierMappingPhase == EComplete;
       
    69 	}
       
    70 
       
    71 
       
    72