commsfwsupport/commselements/serverden/inc/sd_roles.inl
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2008-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 CCommonPitBoss& CCommonPlayer::PitBoss() const
       
    17 	{
       
    18 	return WorkerThread().PitBoss();
       
    19 	}
       
    20 
       
    21 inline CommsFW::TWorkerId CCommonPlayer::WorkerId() const
       
    22 	{
       
    23 	return WorkerThread().WorkerId();
       
    24 	}
       
    25 
       
    26 inline const RSafeMessage& CCommonPlayer::SafeMessage() const
       
    27 	{
       
    28 	return *iCurrentMessage;
       
    29 	}
       
    30 
       
    31 inline CWorkerSession* CCommonPlayer::Session() const
       
    32 	{
       
    33 	return iSession;
       
    34 	}
       
    35 
       
    36 inline CCommonPlayer::TSubSessionContainer& CCommonPlayer::SubSessions()
       
    37 	{
       
    38 	return iSubSessions;
       
    39 	}
       
    40 
       
    41 inline CCommonWorkerThread& CCommonPlayer::WorkerThread() const
       
    42 	{
       
    43 	return *iOwnerThread;
       
    44 	}
       
    45 
       
    46 inline CommsFW::CCommsTransport& CCommonPlayer::Transport() const
       
    47 	{
       
    48 	return *WorkerThread().Transport();
       
    49 	}
       
    50 
       
    51 
       
    52 inline TPlayerRole CCommonPlayer::PlayerRole() const
       
    53 	{
       
    54 	return iPlayerRole;
       
    55 	}
       
    56 
       
    57 inline CCommonWorkerThread& CCommonPitBoss::WorkerThread() const
       
    58 	{
       
    59 	return *iOwnerThread;
       
    60 	}
       
    61 
       
    62 inline TSubSessionUniqueId CCommonPitBoss::NextSubSessionUniqueId()
       
    63 	{
       
    64 	return static_cast<TSubSessionUniqueId>(iNextUniqueId++);
       
    65 	}
       
    66 
       
    67 inline TSessionUniqueId CCommonPitBoss::NextSessionUniqueId()
       
    68 	{
       
    69 	return static_cast<TSessionUniqueId>(iNextUniqueId++);
       
    70 	}
       
    71