diff -r 000000000000 -r bde4ae8d615e os/persistentdata/featuremgmt/featuremgr/src/shared/featurecmn.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/persistentdata/featuremgmt/featuremgr/src/shared/featurecmn.cpp Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,80 @@ +// Copyright (c) 2007-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: +// + + + +// INCLUDE FILES +#include + +// ============================= LOCAL FUNCTIONS =============================== + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// TFeatureEntry::TFeatureEntry() +// ----------------------------------------------------------------------------- +// +EXPORT_C TFeatureEntry::TFeatureEntry() : + iFeatureID( TUid::Uid(0) ), iFlags( 0 ), iData( 0 ), iReserved ( 0 ) + { + } + +// ----------------------------------------------------------------------------- +// TFeatureEntry::TFeatureEntry() +// ----------------------------------------------------------------------------- +// +EXPORT_C TFeatureEntry::TFeatureEntry( TUid aFeature ) : + iFeatureID( aFeature ), iFlags( 0 ), iData( 0 ), iReserved ( 0 ) + { + } + +// ----------------------------------------------------------------------------- +// TFeatureEntry::TFeatureEntry() +// ----------------------------------------------------------------------------- +// +EXPORT_C TFeatureEntry::TFeatureEntry( TUid aFeature, TBitFlags32 aFlags, TUint32 aData ) : + iFeatureID( aFeature ), iFlags( aFlags ), iData( aData ), iReserved ( 0 ) + { + } + +// ----------------------------------------------------------------------------- +// TFeatureEntry::FeatureUid() +// ----------------------------------------------------------------------------- +// +EXPORT_C TUid TFeatureEntry::FeatureUid() const + { + return iFeatureID; + } + +// ----------------------------------------------------------------------------- +// TFeatureEntry::FeatureFlags() +// ----------------------------------------------------------------------------- +// +EXPORT_C TBitFlags32 TFeatureEntry::FeatureFlags() const + { + return iFlags; + } + +// ----------------------------------------------------------------------------- +// TFeatureEntry::FeatureData() +// ----------------------------------------------------------------------------- +// +EXPORT_C TUint32 TFeatureEntry::FeatureData() const + { + return iData; + } + + +// End of File