multimediacommsengine/mmceshared/inc/mceserial.inl
branchrcs
changeset 49 64c62431ac08
parent 0 1bce908db942
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
   595     for( TUint i=0;i<codecCount;i++)
   595     for( TUint i=0;i<codecCount;i++)
   596         {
   596         {
   597         iVideoStream.Codecs()[i]->ExternalizeL( aSerCtx );
   597         iVideoStream.Codecs()[i]->ExternalizeL( aSerCtx );
   598         }
   598         }
   599     
   599     
   600     }
   600     }	
       
   601 
       
   602 // -----------------------------------------------------------------------------
       
   603 // TMceMEssageStreamSerializer::TMceMEssageStreamSerializer
       
   604 // -----------------------------------------------------------------------------
       
   605 //
       
   606 template <class T>
       
   607 inline TMceMessageStreamSerializer<T>::TMceMessageStreamSerializer( T& aStream )
       
   608   : iMessageStream( aStream )
       
   609     {
       
   610     }
       
   611 
       
   612 
       
   613 // -----------------------------------------------------------------------------
       
   614 // TMceMessageStreamSerializer::InternalizeL
       
   615 // -----------------------------------------------------------------------------
       
   616 //
       
   617 template <class T>
       
   618 inline void TMceMessageStreamSerializer<T>::InternalizeL( MMceComSerializationContext& aSerCtx )
       
   619     {
       
   620 
       
   621     RReadStream& readStream = aSerCtx.ReadStream();
       
   622     //codecs. presently the codec support for the message streams doesn't exist 
       
   623     TUint32 codecCount = readStream.ReadUint32L();
       
   624     for( TUint i=0;i<codecCount;i++)
       
   625         {
       
   626         // Presently there is no codec support for message streams
       
   627         iMessageStream.AddCodecL( 
       
   628             iMessageStream.BaseFactory().MessageCodecFactory().CreateLC( aSerCtx ) );
       
   629             
       
   630         CleanupStack::Pop();
       
   631         }
       
   632 
       
   633     }
       
   634     
       
   635 // -----------------------------------------------------------------------------
       
   636 // TMceMessageStreamSerializer::ExternalizeL
       
   637 // -----------------------------------------------------------------------------
       
   638 //
       
   639 template <class T>
       
   640 inline void TMceMessageStreamSerializer<T>::ExternalizeL( MMceComSerializationContext& aSerCtx )
       
   641     {
       
   642     RWriteStream& writeStream = aSerCtx.WriteStream();
       
   643     
       
   644     //codecs .. currently there is no codec support for Message type streams
       
   645     TUint32 codecCount = iMessageStream.Codecs().Count();
       
   646     writeStream.WriteUint32L( codecCount );
       
   647    // Presently the codec support for message streams doesn't exist in MCE/MCC 
       
   648    for( TUint i=0;i<codecCount;i++)
       
   649         {
       
   650         iMessageStream.Codecs()[i]->ExternalizeL( aSerCtx );
       
   651         }
       
   652     }