contentcontrolsrv/hscontentinfo/src/hscontentinfo.cpp
branchRCL_3
changeset 15 a0713522ab97
parent 3 ff572005ac23
equal deleted inserted replaced
14:15e4dd19031c 15:a0713522ab97
   318     aStream.WriteInt16L( PublisherUid().Size() );
   318     aStream.WriteInt16L( PublisherUid().Size() );
   319     aStream << PublisherUid();
   319     aStream << PublisherUid();
   320     
   320     
   321     // externalise iIsWrt
   321     // externalise iIsWrt
   322     aStream.WriteInt16L( iIsWrt );
   322     aStream.WriteInt16L( iIsWrt );
       
   323 
       
   324     // externalise iIsFull
       
   325     aStream.WriteInt16L( iIsFull );
   323 	}
   326 	}
   324 
   327 
   325 // -----------------------------------------------------------------------
   328 // -----------------------------------------------------------------------
   326 // CHsContentInfo::SetCanBeAdded()
   329 // CHsContentInfo::SetCanBeAdded()
   327 // -----------------------------------------------------------------------
   330 // -----------------------------------------------------------------------
   496     iPublisherUid = NULL;
   499     iPublisherUid = NULL;
   497     iPublisherUid = HBufC8::NewL( aStream, length );
   500     iPublisherUid = HBufC8::NewL( aStream, length );
   498     
   501     
   499     // internalize iIsWrt
   502     // internalize iIsWrt
   500     iIsWrt = aStream.ReadInt16L();
   503     iIsWrt = aStream.ReadInt16L();
       
   504 
       
   505     // internalize iIsFull
       
   506     iIsFull = aStream.ReadInt16L();
   501     }
   507     }
   502 
   508 
   503 // -----------------------------------------------------------------------
   509 // -----------------------------------------------------------------------
   504 // CHsContentInfo::Size()
   510 // CHsContentInfo::Size()
   505 // -----------------------------------------------------------------------
   511 // -----------------------------------------------------------------------
   519     size = size + sizeof( TInt16 );     // can be removed
   525     size = size + sizeof( TInt16 );     // can be removed
   520     size = size + sizeof( TUint32 );    // installation time low
   526     size = size + sizeof( TUint32 );    // installation time low
   521     size = size + sizeof( TUint32 );    // installation time high
   527     size = size + sizeof( TUint32 );    // installation time high
   522     size = size + PublisherUid().Size();// publisher uid
   528     size = size + PublisherUid().Size();// publisher uid
   523     size = size + sizeof( TInt16 );     // is wrt
   529     size = size + sizeof( TInt16 );     // is wrt
       
   530     size = size + sizeof( TInt16 );     // is full
   524     
   531     
   525     return size;
   532     return size;
   526     }   
   533     }   
   527 
   534 
   528 // -----------------------------------------------------------------------
   535 // -----------------------------------------------------------------------
   551 // -----------------------------------------------------------------------
   558 // -----------------------------------------------------------------------
   552 //   
   559 //   
   553 EXPORT_C void CHsContentInfo::SetIsWrt( TBool aIsWrt )    
   560 EXPORT_C void CHsContentInfo::SetIsWrt( TBool aIsWrt )    
   554     {
   561     {
   555     iIsWrt = aIsWrt;
   562     iIsWrt = aIsWrt;
       
   563     }
       
   564 
       
   565 // -----------------------------------------------------------------------
       
   566 // CHsContentInfo::IsFull()
       
   567 // -----------------------------------------------------------------------
       
   568 // 
       
   569 EXPORT_C TBool CHsContentInfo::IsFull() const
       
   570     {
       
   571     return iIsFull;
       
   572     }
       
   573 
       
   574 // -----------------------------------------------------------------------
       
   575 // CHsContentInfo::SetIsFull()
       
   576 // -----------------------------------------------------------------------
       
   577 //   
       
   578 EXPORT_C void CHsContentInfo::SetIsFull( TBool aIsFull )    
       
   579     {
       
   580     iIsFull = aIsFull;
   556     }
   581     }
   557 
   582 
   558 // -----------------------------------------------------------------------
   583 // -----------------------------------------------------------------------
   559 // CHsContentInfo::IsWrt()
   584 // CHsContentInfo::IsWrt()
   560 // -----------------------------------------------------------------------
   585 // -----------------------------------------------------------------------