telephonyserver/etelserverandcore/INC/ET_PHONE.INL
author ivan.fildichev@opencode.com
Thu, 18 Nov 2010 15:42:16 +0200
branchopencode
changeset 88 5e27cc612ac7
parent 24 6638e7f4bd8f
permissions -rw-r--r--
Latest bug-fixes with added tests.

// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @publishedPartner
 @released
*/
inline void CPhoneFactoryBase::Inc()
	{
	CObject::Inc();
	}

inline TVersion CPhoneFactoryBase::TsyVersionNumber() const
	{
	return iVersion;
	}

inline void CSubSessionExtBase::Inc()
	{
	CObject::Inc();
	}

inline TBool CBuffer::OverFlow() const
	{
	return iOverFlow;
	}

inline TBool CBuffer::BufferFull() const
	{
	return iBufferFull;
	}


inline void CReqEntry::operator delete(TAny* aPtr, TLeave )
//
// overloaded delete - to prevent warning
//
    {
    operator delete(aPtr);
    }

inline void CReqEntry::operator delete(TAny* aPtr, RHeap *)
//
// overloaded delete - to prevent warning
//
    {
    operator delete(aPtr);
    }

inline void CReqEntry::operator delete(TAny* aPtr, TUint )
//
// overloaded delete - to prevent warning
//
    {
    operator delete(aPtr);
    }


inline void CBuffer::operator delete(TAny* aPtr, TLeave )
//
// overloaded delete - to prevent warning
//
    {
    operator delete(aPtr);
    }

inline void CBuffer::operator delete(TAny* aPtr, RHeap *)
//
// overloaded delete - to prevent warning
//
    {
    operator delete(aPtr);
    }

inline void CBuffer::operator delete(TAny* aPtr, TUint )
//
// overloaded delete - to prevent warning
//
    {
    operator delete(aPtr);
    }

inline TPhoneClientId::TPhoneClientId() : iSessionId(0), iSubSessionId(0)
	{
	}

inline TPhoneClientId::TPhoneClientId(TInt aSessionId, TInt aSubSessionId)
	: iSessionId(aSessionId), iSubSessionId(aSubSessionId)
	{
	}
		
inline TBool TPhoneClientId::operator == (const TPhoneClientId& aClientId) const
	{
	return (iSessionId == aClientId.iSessionId &&
			iSubSessionId == aClientId.iSubSessionId);
	}

inline TBool TPhoneClientId::operator != (const TPhoneClientId& aClientId) const
	{
	return !(*this == aClientId);
	}

inline TPhoneClientId& TPhoneClientId::operator = (const TPhoneClientId& aClientId)
	{
	if (this != &aClientId)
		{
		iSessionId = aClientId.iSessionId;
		iSubSessionId = aClientId.iSubSessionId;
		}
	return *this;
	}