sl@0: // Copyright (c) 2007-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: sl@0: sl@0: // INCLUDE FILES sl@0: #include sl@0: #include "featmgrfeatureentry.h" sl@0: sl@0: // ============================= LOCAL FUNCTIONS =============================== sl@0: sl@0: // ============================ MEMBER FUNCTIONS =============================== sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::TFeatureServerEntry() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TFeatureServerEntry::TFeatureServerEntry() : sl@0: iFeatureID( TUid::Uid(0) ), iFlags( 0 ), iData( 0 ) sl@0: { sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::TFeatureServerEntry() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TFeatureServerEntry::TFeatureServerEntry( TUid aFeature ) : sl@0: iFeatureID( aFeature ), iFlags( 0 ), iData( 0 ) sl@0: { sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::TFeatureServerEntry() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TFeatureServerEntry::TFeatureServerEntry( TUid aFeature, sl@0: TBitFlags32 aFlags, TUint32 aData ) : sl@0: iFeatureID( aFeature ), iFlags( aFlags ), iData( aData ) sl@0: { sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::TFeatureServerEntry() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TFeatureServerEntry::TFeatureServerEntry( TFeatureEntry& aFeature ) : sl@0: iFeatureID( aFeature.FeatureUid() ), sl@0: iFlags( aFeature.FeatureFlags() ), sl@0: iData( aFeature.FeatureData() ) sl@0: { sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::FeatureUid() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TUid TFeatureServerEntry::FeatureUid() const sl@0: { sl@0: return iFeatureID; sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::FeatureFlags() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TBitFlags32 TFeatureServerEntry::FeatureFlags() const sl@0: { sl@0: return iFlags; sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::FeatureData() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TUint32 TFeatureServerEntry::FeatureData() const sl@0: { sl@0: return iData; sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::InternalizeL() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: void TFeatureServerEntry::InternalizeL( RReadStream& aStream ) sl@0: { sl@0: iFeatureID = TUid::Uid( aStream.ReadUint32L() ); sl@0: iFlags = aStream.ReadUint32L(); sl@0: iData = aStream.ReadUint32L(); sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // TFeatureServerEntry::ExternalizeL() sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: void TFeatureServerEntry::ExternalizeL( RWriteStream& aStream ) const sl@0: { sl@0: aStream.WriteUint32L( iFeatureID.iUid ); sl@0: aStream.WriteUint32L( iFlags.iFlags ); sl@0: aStream.WriteUint32L( iData ); sl@0: } sl@0: sl@0: // End of File