--- a/contentstorage/cautils/src/cainnerentry.cpp Wed Oct 13 12:59:22 2010 +0300
+++ b/contentstorage/cautils/src/cainnerentry.cpp Mon Oct 18 10:44:15 2010 +0300
@@ -76,6 +76,11 @@
aStream.WriteUint32L( iDescriptionLocalized );
iAttributes.ExternalizeL( aStream );
iIcon->ExternalizeL( aStream );
+ aStream.WriteUint32L( iParentIds.Count() );
+ for( TInt i = 0; i < iParentIds.Count(); i++ )
+ {
+ aStream.WriteInt32L( iParentIds[i] );
+ }
aStream.CommitL();
}
@@ -105,6 +110,12 @@
iDescriptionLocalized = aStream.ReadUint32L();
iAttributes.InternalizeL( aStream );
iIcon->InternalizeL( aStream );
+ iParentIds.Close();
+ TInt count = aStream.ReadUint32L();
+ for( TInt i = 0; i < count; i++ )
+ {
+ iParentIds.AppendL( aStream.ReadInt32L() );
+ }
}
// ---------------------------------------------------------------------------
@@ -215,6 +226,16 @@
{
return iIcon->Id();
}
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+EXPORT_C const RArray<TInt>& CCaInnerEntry::GetParentIds() const
+ {
+ return iParentIds;
+ }
+
// SETTERS
// ---------------------------------------------------------------------------
@@ -358,6 +379,18 @@
//
// ---------------------------------------------------------------------------
//
+EXPORT_C void CCaInnerEntry::SetParentIdsL( const RArray<TInt>& aArray )
+ {
+ for( TInt i( 0 ); i < aArray.Count(); ++i )
+ {
+ iParentIds.AppendL( aArray[i] );
+ }
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
EXPORT_C TBool CCaInnerEntry::isLocalized(TLocalizedType aLocalized) const
{
if(aLocalized == EDescriptionLocalized)