os/persistentdata/persistentstorage/dbms/pcdbms/inc/D32REC.INL
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/dbms/pcdbms/inc/D32REC.INL	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,51 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +// Class TDbRecordId
    1.20 +inline TDbRecordId::TDbRecordId(TUint32 aValue)
    1.21 +	: iValue(aValue)
    1.22 +	{}
    1.23 +inline TDbRecordId& TDbRecordId::operator=(TUint32 aValue)
    1.24 +	{iValue=aValue;return *this;}
    1.25 +inline TBool TDbRecordId::operator==(TDbRecordId anId) const
    1.26 +	{return iValue==anId.iValue;}
    1.27 +inline TBool TDbRecordId::operator!=(TDbRecordId anId) const
    1.28 +	{return iValue!=anId.iValue;}
    1.29 +inline TUint32 TDbRecordId::Value() const
    1.30 +	{return iValue;}
    1.31 +
    1.32 +// Class CDbRecordBase
    1.33 +inline TBool CDbRecordBase::OpenL()
    1.34 +	{return iFlags&(EOpen|EBroken) ? iFlags&EBroken : DoRestoreL();}
    1.35 +inline void CDbRecordBase::Abandon()
    1.36 +	{iFlags=0;}
    1.37 +inline TBool CDbRecordBase::IsBroken() const
    1.38 +	{return iFlags&EBroken;}
    1.39 +inline void CDbRecordBase::MarkIntact()
    1.40 +	{iFlags=(iFlags&~EBroken)|EOpen;}
    1.41 +
    1.42 +// Class CDbRecordIter
    1.43 +inline CDbRecordBase& CDbRecordIter::Host() const
    1.44 +	{return iHost;}
    1.45 +inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId)
    1.46 +	{return DoDeletedL(aPosition,aRecordId,0);}
    1.47 +inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId,const RDbTableRow& aRow)
    1.48 +	{return DoDeletedL(aPosition,aRecordId,&aRow);}
    1.49 +
    1.50 +// Class CDbBlobSpace
    1.51 +inline TInt CDbBlobSpace::InlineLimit() const
    1.52 +	{return iInlineLimit;}
    1.53 +inline void CDbBlobSpace::SetInlineLimit(TInt anInlineLimit)
    1.54 +	{iInlineLimit=anInlineLimit;}