mmsengine/mmsmessage/src/mmsheaders.cpp
branchRCL_3
changeset 57 ebe688cedc25
parent 2 0bf1d54f37d9
child 60 7fdbb852d323
equal deleted inserted replaced
54:fa1df4b99609 57:ebe688cedc25
   349         iApplicationInfo )
   349         iApplicationInfo )
   350         {
   350         {
   351         stream.AssignLC( aStore, KUidMmsApplicationInfoStream ); // pushes 'stream' to the stack
   351         stream.AssignLC( aStore, KUidMmsApplicationInfoStream ); // pushes 'stream' to the stack
   352         length = ApplicId().Length();
   352         length = ApplicId().Length();
   353         stream.WriteInt32L( length );
   353         stream.WriteInt32L( length );
   354         // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35556
       
   355         if ( length > 0 && iApplicationId )
   354         if ( length > 0 && iApplicationId )
   356             {
   355             {
   357             stream << iApplicationId->Des();
   356             stream << iApplicationId->Des();
   358             }
   357             }
   359         
   358         
   360         length = ReplyApplicId().Length();
   359         length = ReplyApplicId().Length();
   361         stream.WriteInt32L( length );
   360         stream.WriteInt32L( length );
   362         // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35559
       
   363         if ( length > 0 && iReplyToApplicationId )
   361         if ( length > 0 && iReplyToApplicationId )
   364             {
   362             {
   365             stream << iReplyToApplicationId->Des();
   363             stream << iReplyToApplicationId->Des();
   366             }
   364             }
   367         
   365         
   368         length = AuxApplicInfo().Length();
   366         length = AuxApplicInfo().Length();
   369         stream.WriteInt32L( length );
   367         stream.WriteInt32L( length );
   370         if ( length > 0 )
   368         if ( length > 0 && iApplicationInfo )
   371             {
   369             {
   372             stream << iApplicationInfo->Des();
   370             stream << iApplicationInfo->Des();
   373             }
   371             }
   374         
   372         
   375         stream.CommitL();
   373         stream.CommitL();
   387         
   385         
   388         stream.WriteInt32L( iRecommendedRetrievalMode );
   386         stream.WriteInt32L( iRecommendedRetrievalMode );
   389 
   387 
   390         length = RecommendedRetrievalModeText().Length();
   388         length = RecommendedRetrievalModeText().Length();
   391         stream.WriteInt32L( length );
   389         stream.WriteInt32L( length );
   392         // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35557
       
   393         if ( length > 0 && iRecommendedRetrievalModeText )
   390         if ( length > 0 && iRecommendedRetrievalModeText )
   394             {
   391             {
   395             stream << iRecommendedRetrievalModeText->Des();
   392             stream << iRecommendedRetrievalModeText->Des();
   396             }
   393             }
   397             
   394             
   398         length = ReplaceCancelId().Length();
   395         length = ReplaceCancelId().Length();
   399         stream.WriteInt32L( length );
   396         stream.WriteInt32L( length );
   400         // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35558
       
   401         if ( length > 0 && iReplaceCancelId )
   397         if ( length > 0 && iReplaceCancelId )
   402             {
   398             {
   403             stream << iReplaceCancelId->Des();
   399             stream << iReplaceCancelId->Des();
   404             }
   400             }
   405         
   401