Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 #include "featmgrfeatureentry.h"
22 // ============================= LOCAL FUNCTIONS ===============================
24 // ============================ MEMBER FUNCTIONS ===============================
26 // -----------------------------------------------------------------------------
27 // TFeatureServerEntry::TFeatureServerEntry()
28 // -----------------------------------------------------------------------------
30 TFeatureServerEntry::TFeatureServerEntry() :
31 iFeatureID( TUid::Uid(0) ), iFlags( 0 ), iData( 0 )
35 // -----------------------------------------------------------------------------
36 // TFeatureServerEntry::TFeatureServerEntry()
37 // -----------------------------------------------------------------------------
39 TFeatureServerEntry::TFeatureServerEntry( TUid aFeature ) :
40 iFeatureID( aFeature ), iFlags( 0 ), iData( 0 )
44 // -----------------------------------------------------------------------------
45 // TFeatureServerEntry::TFeatureServerEntry()
46 // -----------------------------------------------------------------------------
48 TFeatureServerEntry::TFeatureServerEntry( TUid aFeature,
49 TBitFlags32 aFlags, TUint32 aData ) :
50 iFeatureID( aFeature ), iFlags( aFlags ), iData( aData )
54 // -----------------------------------------------------------------------------
55 // TFeatureServerEntry::TFeatureServerEntry()
56 // -----------------------------------------------------------------------------
58 TFeatureServerEntry::TFeatureServerEntry( TFeatureEntry& aFeature ) :
59 iFeatureID( aFeature.FeatureUid() ),
60 iFlags( aFeature.FeatureFlags() ),
61 iData( aFeature.FeatureData() )
65 // -----------------------------------------------------------------------------
66 // TFeatureServerEntry::FeatureUid()
67 // -----------------------------------------------------------------------------
69 TUid TFeatureServerEntry::FeatureUid() const
74 // -----------------------------------------------------------------------------
75 // TFeatureServerEntry::FeatureFlags()
76 // -----------------------------------------------------------------------------
78 TBitFlags32 TFeatureServerEntry::FeatureFlags() const
83 // -----------------------------------------------------------------------------
84 // TFeatureServerEntry::FeatureData()
85 // -----------------------------------------------------------------------------
87 TUint32 TFeatureServerEntry::FeatureData() const
92 // -----------------------------------------------------------------------------
93 // TFeatureServerEntry::InternalizeL()
94 // -----------------------------------------------------------------------------
96 void TFeatureServerEntry::InternalizeL( RReadStream& aStream )
98 iFeatureID = TUid::Uid( aStream.ReadUint32L() );
99 iFlags = aStream.ReadUint32L();
100 iData = aStream.ReadUint32L();
103 // -----------------------------------------------------------------------------
104 // TFeatureServerEntry::ExternalizeL()
105 // -----------------------------------------------------------------------------
107 void TFeatureServerEntry::ExternalizeL( RWriteStream& aStream ) const
109 aStream.WriteUint32L( iFeatureID.iUid );
110 aStream.WriteUint32L( iFlags.iFlags );
111 aStream.WriteUint32L( iData );