metadataengine/server/inc/mdsnamespacedef.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:13:20 +0200
changeset 1 acef663c1218
parent 0 c53acadfccc6
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 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:  Class to hold description about one namespace and every objects,
*                properties and events it holds.
*
*/


inline CMdsNamespaceDef::CMdsNamespaceDef( TDefId aId, TBool aReadOnly, TUint32 aVendorId )
   : iVendorId(aVendorId), iFlags(ENamespaceDefFlagsFirstRead)
   	{
   	SetId( aId );
   	if (aReadOnly)
   		{
   		iFlags |= ENamespaceDefFlagsReadOnly;
   		}
   	}

inline TBool CMdsNamespaceDef::GetReadOnly() const
	{
	return iFlags&ENamespaceDefFlagsReadOnly ? ETrue : EFalse;
	}

inline TBool CMdsNamespaceDef::GetFirstRead() const
	{
	return iFlags&ENamespaceDefFlagsFirstRead ? ETrue : EFalse;
	}

inline void CMdsNamespaceDef::UnsetFirstRead()
	{
	iFlags &= ~ENamespaceDefFlagsFirstRead;
	}

inline void CMdsNamespaceDef::SetBaseObject( CMdsObjectDef* const aBaseObject )
	{
	iBaseObject = aBaseObject;
	}

inline TInt32 CMdsNamespaceDef::GetVendorId() const
	{
	return iVendorId;
	}

inline void CMdsNamespaceDef::SetVendorId(TInt32 aVendorId)
	{
	iVendorId = aVendorId;
	}