24
|
1 |
// Copyright (c) 1997-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 |
/**
|
|
17 |
@file
|
|
18 |
@internalAll
|
|
19 |
*/
|
|
20 |
|
|
21 |
inline CMobilePhonebookStore& CATPhoneBookInfo::PhoneBook() const
|
|
22 |
{return *static_cast<CMobilePhonebookStore*>(iTelObject);}
|
|
23 |
|
|
24 |
inline void CATPhoneBookRead::SetPBData(TDes8* aPBData)
|
|
25 |
{
|
|
26 |
iPbBuffer->Set(aPBData);
|
|
27 |
}
|
|
28 |
|
|
29 |
inline void CATPhoneBookWrite::SetPBData(TDes8* aPBData)
|
|
30 |
{
|
|
31 |
iPbBuffer->Set(aPBData);
|
|
32 |
}
|
|
33 |
|
|
34 |
inline TInt CATPhoneBookWrite::Index() const
|
|
35 |
{return iIndex;}
|
|
36 |
|
|
37 |
inline TInt CATPhoneBookDelete::Index() const
|
|
38 |
{return iIndex;}
|
|
39 |
|
|
40 |
inline void CATPhoneBookInfo::MapClientIndexToPhoneIndex(TInt& aIndex) const
|
|
41 |
{aIndex+=iIndexOffset;}
|
|
42 |
|
|
43 |
inline void CATPhoneBookInfo::MapPhoneIndexToClientIndex(TInt& aIndex) const
|
|
44 |
{aIndex-=iIndexOffset;}
|
|
45 |
|
|
46 |
inline TBool CATPhoneBookInfo::IsValidPhoneIndex(TInt aIndex) const
|
|
47 |
{return ((aIndex>=iIndexOffset+1) && (aIndex<=(iIndexOffset+iPhbkInfo.iTotalEntries)));}
|
|
48 |
|
|
49 |
inline TInt CATPhoneBookInfo::UsedEntries() const
|
|
50 |
{return iPhbkInfo.iUsedEntries;}
|
|
51 |
|
|
52 |
inline TInt CATPhoneBookInfo::TotalEntries() const
|
|
53 |
{return iPhbkInfo.iTotalEntries;}
|
|
54 |
|
|
55 |
inline TBool CATPhoneBookInfo::Completed() const
|
|
56 |
{return iCompleted;}
|
|
57 |
|
|
58 |
|