62 EXPORT_C void CCaInnerEntry::ExternalizeL( RWriteStream& aStream ) const |
62 EXPORT_C void CCaInnerEntry::ExternalizeL( RWriteStream& aStream ) const |
63 { |
63 { |
64 aStream.WriteInt32L( iId ); |
64 aStream.WriteInt32L( iId ); |
65 aStream.WriteInt32L( iUid ); |
65 aStream.WriteInt32L( iUid ); |
66 aStream.WriteInt32L( iIcon.iId ); |
66 aStream.WriteInt32L( iIcon.iId ); |
67 aStream.WriteInt32L( iIcon.iBitmapId ); |
|
68 aStream.WriteInt32L( iIcon.iMaskId ); |
|
69 aStream.WriteInt32L( iIcon.iSkinMajorId ); |
|
70 aStream.WriteInt32L( iIcon.iSkinMinorId ); |
|
71 aStream.WriteUint32L( iIcon.iFileName.Length() ); |
67 aStream.WriteUint32L( iIcon.iFileName.Length() ); |
72 aStream.WriteL( iIcon.iFileName, iIcon.iFileName.Length() ); |
68 aStream.WriteL( iIcon.iFileName, iIcon.iFileName.Length() ); |
|
69 aStream.WriteUint32L( iIcon.iSkinId.Length() ); |
|
70 aStream.WriteL( iIcon.iSkinId, iIcon.iSkinId.Length() ); |
|
71 aStream.WriteUint32L( iIcon.iApplicationId.Length() ); |
|
72 aStream.WriteL( iIcon.iApplicationId, iIcon.iApplicationId.Length() ); |
73 aStream.WriteUint32L( iFlags ); |
73 aStream.WriteUint32L( iFlags ); |
74 aStream.WriteUint32L( iRole ); |
74 aStream.WriteUint32L( iRole ); |
75 aStream.WriteUint32L( iText.Length() ); |
75 aStream.WriteUint32L( iText.Length() ); |
76 aStream.WriteL( iText, iText.Length() ); |
76 aStream.WriteL( iText, iText.Length() ); |
77 aStream.WriteUint32L( iDescription.Length() ); |
77 aStream.WriteUint32L( iDescription.Length() ); |
89 EXPORT_C void CCaInnerEntry::InternalizeL( RReadStream& aStream ) |
89 EXPORT_C void CCaInnerEntry::InternalizeL( RReadStream& aStream ) |
90 { |
90 { |
91 iId = aStream.ReadInt32L(); |
91 iId = aStream.ReadInt32L(); |
92 iUid = aStream.ReadInt32L(); |
92 iUid = aStream.ReadInt32L(); |
93 iIcon.iId = aStream.ReadInt32L(); |
93 iIcon.iId = aStream.ReadInt32L(); |
94 iIcon.iBitmapId = aStream.ReadInt32L(); |
|
95 iIcon.iMaskId = aStream.ReadInt32L(); |
|
96 iIcon.iSkinMajorId = aStream.ReadInt32L(); |
|
97 iIcon.iSkinMinorId = aStream.ReadInt32L(); |
|
98 TUint length = aStream.ReadUint32L(); |
94 TUint length = aStream.ReadUint32L(); |
99 aStream.ReadL( iIcon.iFileName, length ); |
95 aStream.ReadL( iIcon.iFileName, length ); |
|
96 length = aStream.ReadUint32L(); |
|
97 aStream.ReadL( iIcon.iSkinId, length ); |
|
98 length = aStream.ReadUint32L(); |
|
99 aStream.ReadL( iIcon.iApplicationId, length ); |
100 iFlags = aStream.ReadUint32L(); |
100 iFlags = aStream.ReadUint32L(); |
101 iRole = aStream.ReadUint32L(); |
101 iRole = aStream.ReadUint32L(); |
102 length = aStream.ReadUint32L(); |
102 length = aStream.ReadUint32L(); |
103 iText.Close(); |
103 iText.Close(); |
104 iText.CreateL( length ); |
104 iText.CreateL( length ); |
264 |
264 |
265 // --------------------------------------------------------------------------- |
265 // --------------------------------------------------------------------------- |
266 // |
266 // |
267 // --------------------------------------------------------------------------- |
267 // --------------------------------------------------------------------------- |
268 // |
268 // |
269 EXPORT_C void CCaInnerEntry::SetIconDataL( TInt aBitmapId, TInt aMaskId, |
269 EXPORT_C void CCaInnerEntry::SetIconDataL( |
270 TInt aSkinMajorId, TInt aSkinMinorId, const TDesC& aFilename ) |
270 const TDesC& aFilename, const TDesC& aSkinId, const TDesC& aApplicationId ) |
271 { |
271 { |
272 iIcon.iBitmapId = aBitmapId; |
|
273 iIcon.iMaskId = aMaskId; |
|
274 iIcon.iSkinMajorId = aSkinMajorId; |
|
275 iIcon.iSkinMinorId = aSkinMinorId; |
|
276 |
|
277 iIcon.iFileName.Copy( aFilename ); |
272 iIcon.iFileName.Copy( aFilename ); |
|
273 iIcon.iSkinId.Copy( aSkinId ); |
|
274 iIcon.iApplicationId.Copy(aApplicationId); |
278 } |
275 } |
279 |
276 |
280 // --------------------------------------------------------------------------- |
277 // --------------------------------------------------------------------------- |
281 // |
278 // |
282 // --------------------------------------------------------------------------- |
279 // --------------------------------------------------------------------------- |