equal
deleted
inserted
replaced
70 // create CCsConversationEntry |
70 // create CCsConversationEntry |
71 CCsConversationEntry *conversationEntry = CCsConversationEntry::NewL(); |
71 CCsConversationEntry *conversationEntry = CCsConversationEntry::NewL(); |
72 CleanupStack::PushL(conversationEntry); |
72 CleanupStack::PushL(conversationEntry); |
73 |
73 |
74 //set the values |
74 //set the values |
75 conversationEntry->SetContactL( *aContact ); |
75 if(aContact) |
|
76 conversationEntry->SetContactL( *aContact ); |
76 conversationEntry->SetEntryId( aEnryId ); |
77 conversationEntry->SetEntryId( aEnryId ); |
77 conversationEntry->SetTimeStampL( aTimeStamp ); |
78 conversationEntry->SetTimeStampL( aTimeStamp ); |
|
79 if (aDescription) { |
78 conversationEntry->SetDescriptionL( *aDescription ); |
80 conversationEntry->SetDescriptionL( *aDescription ); |
|
81 } |
79 conversationEntry->SetConversationDir( MapDirection( aDir ) ); |
82 conversationEntry->SetConversationDir( MapDirection( aDir ) ); |
80 conversationEntry->SetSendState( aSendState ); |
83 conversationEntry->SetSendState( aSendState ); |
81 conversationEntry->ChangeAttributes( aMsgAttribs, ECsAttributeNone ); |
84 conversationEntry->ChangeAttributes( aMsgAttribs, ECsAttributeNone ); |
82 conversationEntry->SetType(aCsType); |
85 conversationEntry->SetType(aCsType); |
83 |
86 |