sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: // Class TDbRecordId sl@0: inline TDbRecordId::TDbRecordId(TUint32 aValue) sl@0: : iValue(aValue) sl@0: {} sl@0: inline TDbRecordId& TDbRecordId::operator=(TUint32 aValue) sl@0: {iValue=aValue;return *this;} sl@0: inline TBool TDbRecordId::operator==(TDbRecordId anId) const sl@0: {return iValue==anId.iValue;} sl@0: inline TBool TDbRecordId::operator!=(TDbRecordId anId) const sl@0: {return iValue!=anId.iValue;} sl@0: inline TUint32 TDbRecordId::Value() const sl@0: {return iValue;} sl@0: sl@0: // Class CDbRecordBase sl@0: inline TBool CDbRecordBase::OpenL() sl@0: {return iFlags&(EOpen|EBroken) ? iFlags&EBroken : DoRestoreL();} sl@0: inline void CDbRecordBase::Abandon() sl@0: {iFlags=0;} sl@0: inline TBool CDbRecordBase::IsBroken() const sl@0: {return iFlags&EBroken;} sl@0: inline void CDbRecordBase::MarkIntact() sl@0: {iFlags=(iFlags&~EBroken)|EOpen;} sl@0: sl@0: // Class CDbRecordIter sl@0: inline CDbRecordBase& CDbRecordIter::Host() const sl@0: {return iHost;} sl@0: inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId) sl@0: {return DoDeletedL(aPosition,aRecordId,0);} sl@0: inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId,const RDbTableRow& aRow) sl@0: {return DoDeletedL(aPosition,aRecordId,&aRow);} sl@0: sl@0: // Class CDbBlobSpace sl@0: inline TInt CDbBlobSpace::InlineLimit() const sl@0: {return iInlineLimit;} sl@0: inline void CDbBlobSpace::SetInlineLimit(TInt anInlineLimit) sl@0: {iInlineLimit=anInlineLimit;}