changeset 37 | fd64c38c277d |
parent 24 | 0ba2181d7c28 |
31:2a11b5b00470 | 37:fd64c38c277d |
---|---|
29 #include "cntprof.h" |
29 #include "cntprof.h" |
30 #include <cntfldst.h> |
30 #include <cntfldst.h> |
31 #include <cntfield.h> |
31 #include <cntfield.h> |
32 #include <cntdef.h> |
32 #include <cntdef.h> |
33 #include <cntitem.h> |
33 #include <cntitem.h> |
34 |
|
35 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
36 #include "cntconvertercallback.h" |
|
37 #endif |
|
34 |
38 |
35 |
39 |
36 |
40 |
37 /** |
41 /** |
38 * Imports one or more vCards from a read stream. The vCards are converted |
42 * Imports one or more vCards from a read stream. The vCards are converted |
181 { |
185 { |
182 //Add agents to contact item and if needed, merge agentcards with existing contacts |
186 //Add agents to contact item and if needed, merge agentcards with existing contacts |
183 HandleAgentsInVCardL(aConverter, agentPropertyList, *mainItem, aDb, aOption, aIncAccessCount, aDecAccessCount, aContactItems, EFalse); |
187 HandleAgentsInVCardL(aConverter, agentPropertyList, *mainItem, aDb, aOption, aIncAccessCount, aDecAccessCount, aContactItems, EFalse); |
184 } |
188 } |
185 |
189 |
186 if (mainItem->CardFields().Count()) /// checks vcard is not empty |
190 if (mainItem->CardFields().Count()) // checks vcard is not empty |
187 { |
191 { |
188 ModifyAccessCountL(*mainItem, aIncAccessCount, aDecAccessCount); |
192 ModifyAccessCountL(*mainItem, aIncAccessCount, aDecAccessCount); |
189 if (aOption & ENullTemplateId) |
193 if (aOption & ENullTemplateId) |
190 { |
194 { |
191 mainItem->SetTemplateRefId(KNullContactId); |
195 mainItem->SetTemplateRefId(KNullContactId); |