diff -r 000000000000 -r c53acadfccc6 metadataengine/server/inc/mdsnamespacedef.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/metadataengine/server/inc/mdsnamespacedef.inl Mon Jan 18 20:34:07 2010 +0200 @@ -0,0 +1,58 @@ +/* +* 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; + }