telephonyserverplugins/multimodetsy/Multimode/mphbkcom.inl
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/telephonyserverplugins/multimodetsy/Multimode/mphbkcom.inl	Tue Feb 02 01:41:59 2010 +0200
@@ -0,0 +1,58 @@
+// 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;}
+
+