telephonyserverplugins/multimodetsy/Multimode/mphbkcom.inl
author arunabha
Fri, 29 Oct 2010 18:24:44 +0100
branchAT_Test_LTSY
changeset 84 e8b449273975
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
permissions -rw-r--r--
Packet Data working on winscw with wavecom modem

// 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
 @internalAll 
*/

inline CMobilePhonebookStore& CATPhoneBookInfo::PhoneBook() const
	{return *static_cast<CMobilePhonebookStore*>(iTelObject);}

inline void CATPhoneBookRead::SetPBData(TDes8* aPBData)
	{
	iPbBuffer->Set(aPBData);
	}

inline void CATPhoneBookWrite::SetPBData(TDes8* aPBData)
	{	
	iPbBuffer->Set(aPBData);
	}

inline TInt CATPhoneBookWrite::Index() const
	{return iIndex;}

inline TInt CATPhoneBookDelete::Index() const
	{return iIndex;}

inline void CATPhoneBookInfo::MapClientIndexToPhoneIndex(TInt& aIndex) const
	{aIndex+=iIndexOffset;}

inline void CATPhoneBookInfo::MapPhoneIndexToClientIndex(TInt& aIndex) const
	{aIndex-=iIndexOffset;}

inline TBool CATPhoneBookInfo::IsValidPhoneIndex(TInt aIndex) const
	{return ((aIndex>=iIndexOffset+1) && (aIndex<=(iIndexOffset+iPhbkInfo.iTotalEntries)));}

inline TInt CATPhoneBookInfo::UsedEntries() const
	{return iPhbkInfo.iUsedEntries;}

inline TInt CATPhoneBookInfo::TotalEntries() const
	{return iPhbkInfo.iTotalEntries;}

inline TBool CATPhoneBookInfo::Completed() const
	{return iCompleted;}