Update contrib.
1 // Copyright (c) 1998-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 inline TDbRecordId::TDbRecordId(TUint32 aValue)
20 inline TDbRecordId& TDbRecordId::operator=(TUint32 aValue)
21 {iValue=aValue;return *this;}
22 inline TBool TDbRecordId::operator==(TDbRecordId anId) const
23 {return iValue==anId.iValue;}
24 inline TBool TDbRecordId::operator!=(TDbRecordId anId) const
25 {return iValue!=anId.iValue;}
26 inline TUint32 TDbRecordId::Value() const
29 // Class CDbRecordBase
30 inline TBool CDbRecordBase::OpenL()
31 {return iFlags&(EOpen|EBroken) ? iFlags&EBroken : DoRestoreL();}
32 inline void CDbRecordBase::Abandon()
34 inline TBool CDbRecordBase::IsBroken() const
35 {return iFlags&EBroken;}
36 inline void CDbRecordBase::MarkIntact()
37 {iFlags=(iFlags&~EBroken)|EOpen;}
39 // Class CDbRecordIter
40 inline CDbRecordBase& CDbRecordIter::Host() const
42 inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId)
43 {return DoDeletedL(aPosition,aRecordId,0);}
44 inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId,const RDbTableRow& aRow)
45 {return DoDeletedL(aPosition,aRecordId,&aRow);}
48 inline TInt CDbBlobSpace::InlineLimit() const
49 {return iInlineLimit;}
50 inline void CDbBlobSpace::SetInlineLimit(TInt anInlineLimit)
51 {iInlineLimit=anInlineLimit;}