mmsengine/mmsmessage/src/mmsheaders.cpp
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 47 5b14749788d7
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
   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         if ( length > 0 )
   354         if ( length > 0 && iApplicationId )
   355             {
   355             {
   356             stream << iApplicationId->Des();
   356             stream << iApplicationId->Des();
   357             }
   357             }
   358         
   358         
   359         length = ReplyApplicId().Length();
   359         length = ReplyApplicId().Length();
   360         stream.WriteInt32L( length );
   360         stream.WriteInt32L( length );
   361         if ( length > 0 )
   361         if ( length > 0 && iReplyToApplicationId )
   362             {
   362             {
   363             stream << iReplyToApplicationId->Des();
   363             stream << iReplyToApplicationId->Des();
   364             }
   364             }
   365         
   365         
   366         length = AuxApplicInfo().Length();
   366         length = AuxApplicInfo().Length();
   367         stream.WriteInt32L( length );
   367         stream.WriteInt32L( length );
   368         if ( length > 0 )
   368         if ( length > 0 && iApplicationInfo )
   369             {
   369             {
   370             stream << iApplicationInfo->Des();
   370             stream << iApplicationInfo->Des();
   371             }
   371             }
   372         
   372         
   373         stream.CommitL();
   373         stream.CommitL();
   385         
   385         
   386         stream.WriteInt32L( iRecommendedRetrievalMode );
   386         stream.WriteInt32L( iRecommendedRetrievalMode );
   387 
   387 
   388         length = RecommendedRetrievalModeText().Length();
   388         length = RecommendedRetrievalModeText().Length();
   389         stream.WriteInt32L( length );
   389         stream.WriteInt32L( length );
   390         if ( length > 0 )
   390         if ( length > 0 && iRecommendedRetrievalModeText )
   391             {
   391             {
   392             stream << iRecommendedRetrievalModeText->Des();
   392             stream << iRecommendedRetrievalModeText->Des();
   393             }
   393             }
   394             
   394             
   395         length = ReplaceCancelId().Length();
   395         length = ReplaceCancelId().Length();
   396         stream.WriteInt32L( length );
   396         stream.WriteInt32L( length );
   397         if ( length > 0 )
   397         if ( length > 0 && iReplaceCancelId )
   398             {
   398             {
   399             stream << iReplaceCancelId->Des();
   399             stream << iReplaceCancelId->Des();
   400             }
   400             }
   401         
   401         
   402         stream.WriteInt32L( iCancelStatus );
   402         stream.WriteInt32L( iCancelStatus );